From owner-cvs-sbin Sun Jan 11 23:59:14 1998 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA13186 for cvs-sbin-outgoing; Sun, 11 Jan 1998 23:59:14 -0800 (PST) (envelope-from owner-cvs-sbin) 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 XAA13096; Sun, 11 Jan 1998 23:58:40 -0800 (PST) (envelope-from charnier@FreeBSD.org) From: Philippe Charnier Received: (from charnier@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id XAA07787; Sun, 11 Jan 1998 23:57:58 -0800 (PST) Date: Sun, 11 Jan 1998 23:57:58 -0800 (PST) Message-Id: <199801120757.XAA07787@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sbin@FreeBSD.ORG Subject: cvs commit: src/sbin/scsi scsi.c Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk charnier 1998/01/11 23:57:58 PST Modified files: sbin/scsi scsi.c Log: Use err(3). Change exit(-1), and make exit values equal to 1 when errors. Remove unused #includes. Revision Changes Path 1.17 +52 -84 src/sbin/scsi/scsi.c From owner-cvs-sbin Mon Jan 19 08:30:23 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA12453 for cvs-sbin-outgoing; Mon, 19 Jan 1998 08:30:23 -0800 (PST) (envelope-from owner-cvs-sbin) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA12255; Mon, 19 Jan 1998 08:29:19 -0800 (PST) (envelope-from bde@FreeBSD.org) From: Bruce Evans Received: (from bde@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id IAA19962; Mon, 19 Jan 1998 08:28:29 -0800 (PST) Date: Mon, 19 Jan 1998 08:28:29 -0800 (PST) Message-Id: <199801191628.IAA19962@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sbin@FreeBSD.ORG Subject: cvs commit: src/sbin/fsck setup.c Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 1998/01/19 08:28:29 PST Modified files: sbin/fsck setup.c Log: Guard against a block size of 0 in the label. When the first superblock is invalid, fsck looks at the label to help guess where the next superblock should be. If the partition type is 4.2BSD, fsck assumed that the block size was valid and divided by it, so it dumped core if the size was 0. Initialization of the label was broken almost 3 years ago in rev.1.9 of newfs/newfs.c. Newfs does not change the label at all, so there is no problem (except the breakage of the automatic search for backup superblocks) unless something else sets the partition type to 4.2BSD. However, it is too easy to set partition types to 4.2.BSD by copying an old label or by using a disktab entry to create the label. PR: 2537 Revision Changes Path 1.8 +5 -0 src/sbin/fsck/setup.c From owner-cvs-sbin Mon Jan 19 08:58:12 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA15231 for cvs-sbin-outgoing; Mon, 19 Jan 1998 08:58:12 -0800 (PST) (envelope-from owner-cvs-sbin) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA15107; Mon, 19 Jan 1998 08:56:17 -0800 (PST) (envelope-from bde@FreeBSD.org) From: Bruce Evans Received: (from bde@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id IAA20093; Mon, 19 Jan 1998 08:55:27 -0800 (PST) Date: Mon, 19 Jan 1998 08:55:27 -0800 (PST) Message-Id: <199801191655.IAA20093@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sbin@FreeBSD.ORG Subject: cvs commit: src/sbin/newfs mkfs.c Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 1998/01/19 08:55:27 PST Modified files: sbin/newfs mkfs.c Log: Don't create superblocks with size larger than SBSIZE (8192). The size was rounded up to a multiple of the fragment size, but this gave invalid file systems when the fragment size was > SBSIZE (fsck aborts early on them). Now a fragment size of 32768 seems to work (too-simple tests with fsck and iozone worked). Revision Changes Path 1.21 +4 -0 src/sbin/newfs/mkfs.c From owner-cvs-sbin Mon Jan 19 10:50:03 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA05053 for cvs-sbin-outgoing; Mon, 19 Jan 1998 10:50:03 -0800 (PST) (envelope-from owner-cvs-sbin) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA04943; Mon, 19 Jan 1998 10:49:31 -0800 (PST) (envelope-from bde@FreeBSD.org) From: Bruce Evans Received: (from bde@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id KAA20494; Mon, 19 Jan 1998 10:48:38 -0800 (PST) Date: Mon, 19 Jan 1998 10:48:38 -0800 (PST) Message-Id: <199801191848.KAA20494@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sbin@FreeBSD.ORG Subject: cvs commit: src/sbin/umount umount.c Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 1998/01/19 10:48:37 PST Modified files: sbin/umount umount.c Log: mount(8) only uses realpath() for the mountpoint, so don't look up the real path here for the mount device (or path). This fixes difficulties unmounting devices that are actually symlinks to real devices. Also, print the original path instead of the real path in early error messages. nfs path handling and later error messages may still be wrong, probably only in silly cases where the original path is both a symlink and a remote path. PR: 5208 Revision Changes Path 1.12 +6 -6 src/sbin/umount/umount.c From owner-cvs-sbin Tue Jan 20 02:41:57 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA24381 for cvs-sbin-outgoing; Tue, 20 Jan 1998 02:41:57 -0800 (PST) (envelope-from owner-cvs-sbin) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA24300; Tue, 20 Jan 1998 02:41:15 -0800 (PST) (envelope-from bde@FreeBSD.org) From: Bruce Evans Received: (from bde@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id CAA01544; Tue, 20 Jan 1998 02:40:19 -0800 (PST) Date: Tue, 20 Jan 1998 02:40:19 -0800 (PST) Message-Id: <199801201040.CAA01544@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-bin@FreeBSD.ORG, cvs-sbin@FreeBSD.ORG, cvs-usrbin@FreeBSD.ORG, cvs-usrsbin@FreeBSD.ORG Subject: cvs commit: src/bin/df Makefile src/sbin/i386/mount_msdos Makefile src/sbin/init Makefile src/sbin/mount Makefile src/sbin/mount_cd9660 Makefile src/sbin/mount_ext2fs Makefile src/sbin/mount_lfs Makefile src/sbin/mount_nfs Makefile ... Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 1998/01/20 02:40:18 PST Modified files: bin/df Makefile sbin/i386/mount_msdos Makefile sbin/init Makefile sbin/mount Makefile sbin/mount_cd9660 Makefile sbin/mount_ext2fs Makefile sbin/mount_lfs Makefile sbin/mount_nfs Makefile sbin/mount_null Makefile sbin/mount_portal Makefile sbin/mount_std Makefile sbin/mount_umap Makefile sbin/mount_union Makefile sbin/mountd Makefile sbin/newfs Makefile sbin/nfsd Makefile sbin/nfsiod Makefile sbin/umount Makefile usr.bin/find Makefile usr.sbin/amd/amd Makefile Log: Removed definition of _NEW_VFSCONF. The new vfsconf interface is now the default. Revision Changes Path 1.7 +2 -2 src/bin/df/Makefile 1.7 +1 -2 src/sbin/i386/mount_msdos/Makefile 1.15 +2 -2 src/sbin/init/Makefile 1.6 +1 -2 src/sbin/mount/Makefile 1.4 +0 -1 src/sbin/mount_cd9660/Makefile 1.3 +0 -1 src/sbin/mount_ext2fs/Makefile 1.4 +0 -1 src/sbin/mount_lfs/Makefile 1.6 +0 -1 src/sbin/mount_nfs/Makefile 1.5 +0 -1 src/sbin/mount_null/Makefile 1.8 +1 -2 src/sbin/mount_portal/Makefile 1.4 +0 -1 src/sbin/mount_std/Makefile 1.6 +0 -1 src/sbin/mount_umap/Makefile 1.6 +0 -1 src/sbin/mount_union/Makefile 1.8 +1 -2 src/sbin/mountd/Makefile 1.6 +0 -1 src/sbin/newfs/Makefile 1.9 +0 -1 src/sbin/nfsd/Makefile 1.4 +0 -1 src/sbin/nfsiod/Makefile 1.5 +0 -2 src/sbin/umount/Makefile 1.3 +0 -1 src/usr.bin/find/Makefile 1.10 +0 -1 src/usr.sbin/amd/amd/Makefile From owner-cvs-sbin Tue Jan 20 07:39:47 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA10535 for cvs-sbin-outgoing; Tue, 20 Jan 1998 07:39:47 -0800 (PST) (envelope-from owner-cvs-sbin) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA10478; Tue, 20 Jan 1998 07:38:41 -0800 (PST) (envelope-from bde@FreeBSD.org) From: Bruce Evans Received: (from bde@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id HAA03868; Tue, 20 Jan 1998 07:22:29 -0800 (PST) Date: Tue, 20 Jan 1998 07:22:29 -0800 (PST) Message-Id: <199801201522.HAA03868@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sbin@FreeBSD.ORG Subject: cvs commit: src/sbin/mountd mountd.c Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 1998/01/20 07:22:28 PST Modified files: sbin/mountd mountd.c Log: Converted to Lite2 mount interface - use vfc_typenum from the already looked up vfsconf struct for nfs instead of MOUNT_NFS. Removed related FreeBSD ifdefs. Revision Changes Path 1.28 +3 -9 src/sbin/mountd/mountd.c