Hi

On Sun, Jan 4, 2009 at 8:09 PM, Paraneetharan Chandrasekaran
<[email protected]> wrote:
> Hi All,
>         I created a file of 10 MB from /dev/zero using dd command.
> Then i associated /dev/loop0 to that file using losetup command. Then
> i created an ext2 filesystem above /dev/loop0 using mke2fs command.
> Then i mounted the that loop device in a mount point. I entered the
> monted directiry and created on file and entered some contents to that
> file. Then i came out of the directory. Then i deleted the file i
> associated. Then If i go inside the mounted directory, i was able
> change the directory and the file was there with the contents i put.
>
> how is that possible when deleted the file itself inside which i
> created the ext2 filesystem..?  I was previously thinking that the VFS
> reads from the file itself for files and directory info. is it not
> like that..? I have even cleared the buffers after i deleted the
> file(using sync).

Perhaps to make things clearer, could you show us step by step what
commands you have executed?

NB: usually i directly use mount -o loop instead of first associating
a file with loop device then mount it.

regards,

Mulyadi.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to