tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: mount_mfs: why chdir?
mouse%Rodents-Montreal.ORG@localhost (Mouse) writes:
>> mount does a realpath() to resolve relative mount paths, not sure
>> since when..
>You're talking about mount(8), not mount(2), right? Arguably mount_mfs
>should do the same, for consistency if nothing else.
mount(8) and the various mount_xxx programs like mount_mfs(8).
# uname -r
10.1
# pwd
/tmp/foo/bar
# mkdir baz && mount_mfs -s 8192 swap baz
mount_mfs: "baz" is a relative path.
mount_mfs: using "/tmp/foo/bar/baz" instead.
# df baz
Filesystem 1K-blocks Used Avail %Cap Mounted on
mfs:14404 3791 0 3601 0% /tmp/foo/bar/baz
# umount baz
# rmdir baz
# mkdir baz && mount -t mfs -o -s=8192 swap baz
# df baz
Filesystem 1K-blocks Used Avail %Cap Mounted on
mfs:14401 3791 0 3601 0% /tmp/foo/bar/baz
# pgrep mount_mfs
14401
# umount baz
# pgrep mount_mfs
#
I had aligned something in that area for netbsd-10, but IIRC mount_mfs
behaved as expected earlier.
Home |
Main Index |
Thread Index |
Old Index