loopback on block device

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

 



Hello,

Here is a question for loopback device. As far as I understand, the loopback device is used to mount files as if they were block devices.

Then Why I could do "losetup -e XOR /dev/loop0 /dev/ram0" ? Notice that ram0 is not mounted anywhere and does not have a filesystem on it. I've tried that command and there seems to be no error. I got confused and looked into loop.c, it seems to me that a loopback device should be associated with a "backing file", why would it work on a block device anyway?

I'd appreciate your comments greatly!

Good night,
Lei


-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: 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