One practical usage is while using Linux USB file-storage gadget driver.
When you want to access data
written by USB host on regular file on gadget itself, you can do losetup on
the regular file. After associating
loop device to regular file, the device becomes valid block device allowing
you to perform mount, unmount, read ,
write etc. operations.
Reference:
http://www.linux-usb.org/gadget/file_storage.html

I don't know exactly, but another usage of it is in while creating iso image
of data.

--
Kalpesh

On Mon, Oct 20, 2008 at 3:41 PM, Sandeep K Sinha <[EMAIL PROTECTED]>wrote:

> Hi Rishi,
>
> You can now  do a mkfs on that particular file, mount it and do
> whatever you can do with a normal block device.
>
> Read more about "loopback devices".
>
>
>
> On Mon, Oct 20, 2008 at 3:28 PM, rishi agrawal <[EMAIL PROTECTED]>
> wrote:
> >
> > Hello Everyone,
> >
> > I would like to know about the use of "losetup".
> >
>
> Also, try googling for "Hari Paranjape + Device Mappers".
>
> > By use I want mean that in what all situations will I use losetup. Its
> > okay that it attaches a loop device to any regular file but how do we
> >
> Attaching here is not a simple attaching, remember that. The actual
> mechanism lies here only.
>
> > use this feature.
> >
> >
> >
> > --
> > Regards,
> > Rishi B. Agrawal
> >
>
>
>
> --
> Regards,
> Sandeep.
>
>
>
>
>
>
> "To learn is to change. Education is a process that changes the learner."
>
> --
> 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