* File-on-file mounting of directories
@ 1994-10-05 16:06 Malcolm Beattie
0 siblings, 0 replies; only message in thread
From: Malcolm Beattie @ 1994-10-05 16:06 UTC (permalink / raw)
Under OSF/1 3.0, I've been looking at the file-on-file filesystem.
Mounting files on top of files works OK (i.e. "mount -t ffm foo bar"
for files foo and bar) but trying to mount a directory onto a
mount point (file or directory) fails. For example, given a directory
foo and a file bar as mount point:
% cd /tmp
% ls -ld foo bar
-rw-r--r-- 1 mbeattie xzdg 0 Oct 5 16:58 bar
drwxr-xr-x 2 mbeattie xzdg 512 Oct 5 16:57 foo
trying to use mount(8) to mount foo on bar gives:
% mount -t ffm foo bar
foo on /tmp/bar: No valid filesystem exists on this partition
In case this was a problem with mount(8) and not mount(2), I coded
up a little C program using mount(2) and the mount attempt returns
EINVAL (whether the mount point bar is a file or a directory).
Now the man page for mount(2) says:
For file-on-file mounting, the mount() function mounts a file specified by
the data parameter onto another file specified by the mnt-path parameter.
Either file may be of any type, but mnt-path cannot already have a file
system or another file mounted on it.
The phrase "Either file may be of any type" suggests to me that mounting
a directory should work, unless it's just referring to ordinay files,
device specials and so on (which *do* work OK). Does anyone know
whether this should/will work?
--Malcolm
--
Malcolm Beattie <mbeattie@sable.ox.ac.uk> (note new address)
Oxford University Computing Services
"Widget. It's got a widget. A lovely widget. A widget it has got." --Jack Dee
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1994-10-05 16:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-10-05 16:06 File-on-file mounting of directories Malcolm Beattie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox