Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Dec 1998 01:55:09 -0800 (PST)
From:      Matthew Dillon <dillon@apollo.backplane.com>
To:        "Jordan K. Hubbard" <jkh@zippy.cdrom.com>
Cc:        current@FreeBSD.ORG
Subject:   Re: I almost hate to suggest this...
Message-ID:  <199812190955.BAA07155@apollo.backplane.com>
References:   <65265.914051066@zippy.cdrom.com>

next in thread | previous in thread | raw e-mail | index | archive | help

: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.
    <dillon@backplane.com> (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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812190955.BAA07155>