On Sat, 2006-02-11 at 15:01 -0500, Josef Sipek wrote:
> On Sat, Feb 11, 2006 at 09:43:47AM +0100, Philipp Börker wrote:
> > I am hacking around with a portable linux media-player. This 
> > media-player uses a compressed ramdisk (cramfs) to hold its mini-linux 
> > distribution which therefore can't be modified by a user as the cramfs 
> > is read-only. I already added unionfs to the firmware and specify the 
> > directories in this order: /opt=ro:/progfs/unionfs/opt=rw
> 
> Branches are accessed left to right, so I think you want:
> 
> /progfs/unionfs/opt=rw:/opt=ro
> 
> > There is now a major change in behaviour of the media-player, the
> > harddisk doesn't spin down anymore or more precisely it spins down
> > just to spin up again immediately.
> 
> Try to mount the union the other way around (see above).
> 
> > Will unionfs always access all directories specified for a union
> > upon a read operation and therefore make the harddisk spin up?
> 
> It shouldn't do that, my guess it that unionfs is a little confused
> because the branches are in the "wrong" order.
Philipp,

You should flip the branches around like Jeff suggested.

After you do that, when Unionfs first looks for a file, it will always
access the rw branch first to check if the file exists.  After the first
access to the file, Unionfs caches where the file was found and will not
access the rw branch first.

Charles

_______________________________________________
unionfs mailing list
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs

Reply via email to