From owner-cvs-sys Sat Sep 27 06:46:01 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA23651 for cvs-sys-outgoing; Sat, 27 Sep 1997 06:46:01 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id GAA23614; Sat, 27 Sep 1997 06:45:27 -0700 (PDT) From: KATO Takenori Received: (from kato@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id GAA29012; Sat, 27 Sep 1997 06:40:22 -0700 (PDT) Date: Sat, 27 Sep 1997 06:40:22 -0700 (PDT) Message-Id: <199709271340.GAA29012@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG Subject: cvs commit: src/sys/dev/vn vn.c src/sys/gnu/ext2fs ext2_extern.h ext2_readwrite.c ext2_vfsops.c ext2_vnops.c src/sys/isofs/cd9660 cd9660_vfsops.c cd9660_vnops.c src/sys/kern kern_conf.c vfs_syscalls.c src/sys/miscfs/specfs spec_vnops.c ... Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk kato 1997/09/27 06:40:22 PDT Modified files: sys/dev/vn vn.c sys/gnu/ext2fs ext2_extern.h ext2_readwrite.c ext2_vfsops.c ext2_vnops.c sys/isofs/cd9660 cd9660_vfsops.c cd9660_vnops.c sys/kern kern_conf.c vfs_syscalls.c sys/miscfs/specfs spec_vnops.c sys/miscfs/union union_vfsops.c sys/sys conf.h mount.h sys/ufs/ffs ffs_extern.h ffs_vfsops.c ffs_vnops.c sys/ufs/ufs ufs_readwrite.c Log: Clustered read and write are switched at mount-option level. 1. Clustered I/O is switched by the MNT_NOCLUSTERR and MNT_NOCLUSTERW bits of the mnt_flag. The sysctl variables, vfs.foo.doclusterread and vfs.foo.doclusterwrite are deleted. Only mount option can control clustered I/O from userland. 2. When foofs_mount mounts block device, foofs_mount checks D_CLUSTERR and D_CLUSTERW bits of the d_flags member in the block device switch table. If D_NOCLUSTERR / D_NOCLUSTERW are set, MNT_NOCLUSTERR / MNT_NOCLUSTERW bits will be set. In this case, MNT_NOCLUSTERR and MNT_NOCLUSTERW cannot be cleared from userland. 3. Vnode driver disables both clustered read and write. 4. Union filesystem disables clutered write. Reviewed by: bde Revision Changes Path 1.50 +3 -3 src/sys/dev/vn/vn.c 1.15 +0 -13 src/sys/gnu/ext2fs/ext2_extern.h 1.10 +2 -2 src/sys/gnu/ext2fs/ext2_readwrite.c 1.17 +16 -2 src/sys/gnu/ext2fs/ext2_vfsops.c 1.16 +0 -11 src/sys/gnu/ext2fs/ext2_vnops.c 1.29 +13 -5 src/sys/isofs/cd9660/cd9660_vfsops.c 1.40 +2 -18 src/sys/isofs/cd9660/cd9660_vnops.c 1.22 +5 -3 src/sys/kern/kern_conf.c 1.74 +4 -3 src/sys/kern/vfs_syscalls.c 1.43 +7 -4 src/sys/miscfs/specfs/spec_vnops.c 1.20 +6 -1 src/sys/miscfs/union/union_vfsops.c 1.36 +11 -2 src/sys/sys/conf.h 1.47 +7 -4 src/sys/sys/mount.h 1.17 +3 -5 src/sys/ufs/ffs/ffs_extern.h 1.56 +17 -4 src/sys/ufs/ffs/ffs_vfsops.c 1.30 +1 -11 src/sys/ufs/ffs/ffs_vnops.c 1.31 +3 -3 src/sys/ufs/ufs/ufs_readwrite.c