bin/84298: [patch] allow mount(8) to recognize relative
pathnames as mountpoints
Mikolaj Rydzewski
miki at ma.krakow.pl
Fri Jul 29 21:40:30 GMT 2005
The following reply was made to PR bin/84298; it has been noted by GNATS.
From: Mikolaj Rydzewski <miki at ma.krakow.pl>
To: Brooks Davis <brooks at one-eyed-alien.net>
Cc: FreeBSD-gnats-submit at freebsd.org
Subject: Re: bin/84298: [patch] allow mount(8) to recognize relative pathnames
as mountpoints
Date: Fri, 29 Jul 2005 23:36:33 +0200 (CEST)
On Fri, 29 Jul 2005, Brooks Davis wrote:
>> Current version of mount(8) requires to specify absolute mountpoint
>> pathname. Let's assume one has some mountpoints located in /mnt:
>> /mnt/cdrom, /mnt/floppy, /mnt/usb
>> It should be possible to call mount(8) like this:
>> mount cdrom (assuming the current directory is /mnt). It has
>> more practical impact when system is configured to allow non-root
>> users to mount (cdroms, usb sticks) to mountpoints in their home
>> directories. It's much more flexible to run mount ~/usb than
>> mount /home/<username>/usb.
>
> Not really an objection, but this last example is bogus. As the example
> below shows, tcsh, bash, sh, and csh all make this work since ~expansion
> happens before the command is run by the shell:
Yes, you're right, thanks for pointing this.
But the problem with mount ignoring relative mountpoint pathnames still
exists.
Regards
--
Mikolaj Rydzewski <miki at ma.krakow.pl> PGP KeyID: 8b12ab02
More information about the freebsd-bugs
mailing list