Andrew Gabriel <Andrew.Gabriel at sun.com> wrote:
> A couple of questions...
>
> Will the old 2 stage method using lofiadm(1M) still work unchanged?
>
> Prior to lofi/lofiadm, there was the fbk driver by J?rg Schilling
> which was used to mount an image from a file. This provided a one
> stage mount which could be included in /etc/vfstab. Just wondering
> if the team looked to see how that worked in case it might be
> useful? (My memory of it is now very hazy, but I think it used the
> backfsmount trick which was also used by cachefs.) It might be that
> it did what you are now proposing anyway.
fbk (initially written 1988) comes with a mount program that pretends that
there is a "fbk" filesystem type.
The fbk mount program does the equivalent to lofiadm and the fbk driver
"unmounts" the <file> at the last close(2). If there was an ioctl() to the lofi
driver that allows to tell lofi to auto-destroy file name asociations at the
last close(2), you only need a small "mount" program that does the lofiadm
task.
J?rg
--
EMail:joerg at schily.isdn.cs.tu-berlin.de (home) J?rg Schilling D-13353 Berlin
js at cs.tu-berlin.de (uni)
schilling at fokus.fraunhofer.de (work) Blog:
http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily