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
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 <sandeepksinha@xxxxxxxxx> 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".
> Hello Everyone,Also, try googling for "Hari Paranjape + Device Mappers".
>
> I would like to know about the use of "losetup".
>
Attaching here is not a simple attaching, remember that. The actual
> 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
>
mechanism lies here only.
Regards,
> use this feature.
>
>
>
> --
> Regards,
> Rishi B. Agrawal
>
--
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 ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ