From owner-freebsd-current Fri Dec 18 23:04:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA04330 for freebsd-current-outgoing; Fri, 18 Dec 1998 23:04:31 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from zippy.cdrom.com (zippy.cdrom.com [204.216.27.228]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA04324 for ; Fri, 18 Dec 1998 23:04:28 -0800 (PST) (envelope-from jkh@zippy.cdrom.com) Received: from zippy.cdrom.com (jkh@localhost.cdrom.com [127.0.0.1]) by zippy.cdrom.com (8.9.1/8.9.1) with ESMTP id XAA65270 for ; Fri, 18 Dec 1998 23:04:27 -0800 (PST) To: current@FreeBSD.ORG Subject: I almost hate to suggest this... Date: Fri, 18 Dec 1998 23:04:26 -0800 Message-ID: <65265.914051066@zippy.cdrom.com> From: "Jordan K. Hubbard" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Because if phk's well-described "bike shelter effect" takes place here, where the smallest most inconsequential changes generate the largest number of flames and general commentary, we're in for a very rough ride indeed over the following suggestion: Index: Makefile =================================================================== RCS file: /home/ncvs/src/sbin/mount/Makefile,v retrieving revision 1.7 diff -u -u -r1.7 Makefile --- Makefile 1998/03/08 14:50:00 1.7 +++ Makefile 1998/12/19 06:58:21 @@ -6,6 +6,8 @@ MAN8= mount.8 # We do NOT install the getmntopts.3 man page. +LINKS= ${BINDIR}/mount ${BINDIR}/mount_ufs + # We support the ROOTSLICE_HUNT hack CFLAGS+=-DROOTSLICE_HUNT The idea here is that there's a mount_foo for every value of foo EXCEPT for ufs, an omission which has always bugged me. It makes the shell script writer's job harder since you can't just cons together "mount_", an fs type and some device/mountpoint args to build a mount command for any arbitrary fs type - you have to special-case UFS just for lack of this one silly link and plus it just looks less orthogonal to have a single exception. Not that this is the poor-man's work-around. A more proper fix would entail hacking mount(8) to recognise the argv(0) == "mount_ufs" case and spit out a usage message in the event that you just say "mount_ufs" without args, just as the other mount_foo options do. As a symlink, it still functions properly as mount_ufs but the default argless behavior is to show the list of mounted filesystems, as one would expect with an unmodified mount(8). Let the flames begin! :-) - Jordan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message