From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,f2b0951dcb7c9a5f,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-10-05 13:25:27 PST Newsgroups: comp.unix.osf.osf1 Path: bga.com!news.sprintlink.net!howland.reston.ans.net!swiss.ans.net!news.dfn.de!Germany.EU.net!EU.net!uknet!comlab.ox.ac.uk!sable.ox.ac.uk!mbeattie From: mbeattie@sable.ox.ac.uk (Malcolm Beattie) Subject: File-on-file mounting of directories Message-ID: <1994Oct5.170603.27999@inca.comlab.ox.ac.uk> Keywords: FFM file-on-file Organization: Oxford University Computing Service, 13 Banbury Rd, Oxford, UK Date: Wed, 5 Oct 94 17:06:03 BST 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 (note new address) Oxford University Computing Services "Widget. It's got a widget. A lovely widget. A widget it has got." --Jack Dee