public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
To: Lei Yang <lya755@ece.northwestern.edu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: loopback on block device
Date: Thu, 28 Oct 2004 01:31:29 +0100	[thread overview]
Message-ID: <20041028003129.GL24336@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <417FE922.7080009@ece.northwestern.edu>

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.

  reply	other threads:[~2004-10-28  0:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-27 18:20 loopback on block device Lei Yang
2004-10-27 18:29 ` Lei Yang
2004-10-28  0:31   ` Al Viro [this message]
2004-10-27 18:58 ` linux-os
2004-10-27 19:42   ` Lei Yang
2004-10-28  9:48     ` Helge Hafting

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041028003129.GL24336@parcelfarce.linux.theplanet.co.uk \
    --to=viro@parcelfarce.linux.theplanet.co.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lya755@ece.northwestern.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox