Date: Fri, 18 Dec 1998 23:04:26 -0800 From: "Jordan K. Hubbard" <jkh@zippy.cdrom.com> To: current@FreeBSD.ORG Subject: I almost hate to suggest this... Message-ID: <65265.914051066@zippy.cdrom.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?65265.914051066>