From: mbeattie@sable.ox.ac.uk (Malcolm Beattie)
Subject: File-on-file mounting of directories
Date: Wed, 5 Oct 94 17:06:03 BST [thread overview]
Message-ID: <1994Oct5.170603.27999@inca.comlab.ox.ac.uk> (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
reply other threads:[~1994-10-05 16:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox