From owner-freebsd-current Sat Dec 19 01:55:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA19190 for freebsd-current-outgoing; Sat, 19 Dec 1998 01:55:12 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from apollo.backplane.com (apollo.backplane.com [209.157.86.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA19185 for ; Sat, 19 Dec 1998 01:55:11 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.9.1/8.9.1) id BAA07155; Sat, 19 Dec 1998 01:55:09 -0800 (PST) (envelope-from dillon) Date: Sat, 19 Dec 1998 01:55:09 -0800 (PST) From: Matthew Dillon Message-Id: <199812190955.BAA07155@apollo.backplane.com> To: "Jordan K. Hubbard" Cc: current@FreeBSD.ORG Subject: Re: I almost hate to suggest this... References: <65265.914051066@zippy.cdrom.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG :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 When someone has time available, making a separate mount_ufs and rewriting mount itself to always exec a sub-mount binary would be even better. But as a poor-man's fix the above would work fine. -Matt :To Unsubscribe: send mail to majordomo@FreeBSD.org :with "unsubscribe freebsd-current" in the body of the message : Matthew Dillon Engineering, HiWay Technologies, Inc. & BEST Internet Communications & God knows what else. (Please include original email in any response) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message