El Wednesday 14 May 2008 05:42:23 vàreu escriure:
> I guess that the size of your fs-image file is not rounded-up by block
> size, and the access may beyond the EOF.
> Will you try adjusting the st_size for regular files?
>
> Also I made a simple test for two block devices by ulobdev, and it
> succeeds.

Hello Junjiro,

yes, ulobdev works well with block devices,
also my tests have shown that when mounting four or five block devices.

the problems arise with files, specially with the little ones.

rounding the files to 4096 bytes has no effect, because the sizes are multiple 
of that, 
but when rounding to 256K then the mount command also hungs and the assert 
message is not shown. It makes me think that the problem is in another part 
of the code.

Another thing,
Attached is my little collaboration to uloop, two little commands to mount and 
umount with easy.

Example:
to mount the cdrom device /dev/hda with uloop cache we issue the command

mount-uloop /dev/hda
the program searches for a free loop device and sets the cache files, then 
answers:
Successfully mounted /dev/hda in /tmp/hda using /dev/loop3

We can unmount that using any of the commands:
umount-uloop /dev/hda
umount-uloop /tmp/hda
umount-uloop /dev/loop3

If you like them, you can include it in uloop

Regards,

Jordi Pujol

Attachment: uloop-mount-umount.tar.bz2
Description: application/tbz

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

Reply via email to