lkml.org 
[lkml]   [2004]   [Oct]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: loopback on block device
On Wed, Oct 27, 2004 at 01:29:54PM -0500, Lei Yang wrote:
> >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?

Because block device is a file.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:07    [W:2.145 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site