Re: Talking about loop devices
- To: debian-user <debian-user@lists.debian.org>
- Subject: Re: Talking about loop devices
- From: David <bouncingcats@gmail.com>
- Date: Fri, 1 Feb 2019 16:20:42 +1100
- Message-id: <[🔎] CAMPXz=qL-0tsq0p-P23_-a0X9o2Nav4dY688is8cJ+zPefK47A@mail.gmail.com>
- In-reply-to: <b4f11460-d737-2ffa-675b-e81e17376b43@plouf.fr.eu.org>
- References: <a755a3bc-6974-5df6-ff6d-a9e1e67787a1@cloud85.net> <14bcfc5d-0fd6-6252-8eb9-79fdbbc7e447@earthlink.net> <ed3927a9-2f0b-e748-103e-1908105ba851@cloud85.net> <20190127212636.rupd3htzfp47ylwc@wren.corp> <af8bc157-c3fc-55f5-7341-3b19fd017817@cloud85.net> <0eba5fe1-949e-61d2-3719-d45ca587f88d@plouf.fr.eu.org> <d0a374c5-fa82-0488-152e-8aa8efabb4a1@cloud85.net> <8e5a3d77-4988-0e4a-849d-4b5bf73bd5cd@plouf.fr.eu.org> <7e3bf6d2-6e1b-ab57-896c-49432ea4634e@cloud85.net> <20190130155231.GE27239@tuxteam.de> <CAMPXz=ocw_m_Q7Eio8XUbrq2FXwGXURB9n_WeutRWyTygRdpsg@mail.gmail.com> <b4f11460-d737-2ffa-675b-e81e17376b43@plouf.fr.eu.org>
On Fri, 1 Feb 2019 at 05:50, Pascal Hambourg <pascal@plouf.fr.eu.org> wrote:
>
> Le 31/01/2019 à 02:15, David a écrit :
> >
> > A *loop* device is a *filesystem* technique to make a file
> > accessible as a block device.
>
> I do not think that loop devices have anything to do with filesystems.
> The losetup(8) manpage states :
>
> losetup is used to associate loop devices with regular files or
> *block devices* (...)
>
> A use case for a loop device based on another block device is to create
> a partitionable block device when the underlying block device contains a
> raw disk image but is not partitionable (e.g. partition or logical volume).
>
> > ----- begin quote -----
> > The loop devices are used to mount filesystems not
> > associated with block devices.
> > ----- end quote -----
>
> There are other uses. In addition to the use case I mentionned above, a
> loop device can also be used as a swap device when the filesystem does
> not support swap files (e.g. btrfs).
Thanks for clarifying my imprecise language, and adding extra info.
Reply to: