Re: a conceptual confusion -- loop device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



El Fri, Mar 05, 2010 at 05:07:52PM +0530 nidhi mittal hada ha dit:

>    I created a loop device
>    /dev/loop0 ------------>with the image file ---------->file.img
>    then
>    mkfs and
>    mount /dev/loop0 to /mnt
> 
>    cd /mnt
>    created files a.c , b.c
>    rm file.img  ------- removed file.img
> 
>    cd /mnt
>    still i am able to see a.c b.c here
>    How are these files present here ?
>    they should have been deleted as underlying storage file is no where
>    present !!

by deleting the file you only remove its meta-information stored in
an inode of the file system, but you don't erase the data blocks the
inode is pointing to.

best regards

-- 
Matthias Kaehlcke
Embedded Linux Developer
Barcelona

                Don't walk behind me, I may not lead
             Don't walk in front of me, I may not follow
                Just walk beside me and be my friend
                          (Albert Camus)
                                                                 .''`.
    using free software / Debian GNU/Linux | http://debian.org  : :'  :
                                                                `. `'`
gpg --keyserver pgp.mit.edu --recv-keys 47D8E5D4                  `-

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux