From: Milan Broz <mbroz@redhat.com>
To: Lukas Czerner <lczerner@redhat.com>
Cc: Jeff Moyer <jmoyer@redhat.com>,
linux-kernel@vger.kernel.org, achender@linux.vnet.ibm.com,
Jens Axboe <jaxboe@fusionio.com>,
linux-fsdevel <linux-fsdevel@vger.kernel.org>
Subject: Re: [PATCH] loop: add discard support for loop devices
Date: Thu, 18 Aug 2011 20:59:25 +0200 [thread overview]
Message-ID: <4E4D610D.9010701@redhat.com> (raw)
In-Reply-To: <alpine.LFD.2.00.1108181743440.3957@dhcp-27-109.brq.redhat.com>
On 08/18/2011 05:49 PM, Lukas Czerner wrote:
> On Thu, 18 Aug 2011, Jeff Moyer wrote:
>> Seems you missed the bizarre case of configuring a loop device over top
>> of a block device.
>
> Wow, that is a bizarre case I did not think about at all. But since it
> is so bizarre, do we even care ? The thing is that the only case where
> it would make a difference is if the loop device is put on top of block
> device which actually supports discard.
>
> In order to fix that I would need to dig out the actual limits for that
> device and set that appropriately for the loop device. Is that worth it
> ? It is not like someone will ever do that (or should) :).
It is bizarre (and being device-mapper developer I surely know better way :-)
but people are still using that.
Historically one of the use of underlying block device was cryptoloop, but here
I think it should be completely deprecated (cryptsetup can handle all old loop
modes as well and default modes for cryptoloop are not safe).
[Can we finally remove crypto loop option it from kernel? ... ok, just tried:)]
There is also out of tree loop-aes based on heavily patched loop device
which usually uses block device underneath
(cryptsetup already can handle all loop-aes modes as well).
Sometimes it is used with --offset parameter for some reason
(like linear device-mapper mapping).
So I do not care if you do not support discard here but please do not break
support for block device mapped through loop.
Thanks,
Milan
next prev parent reply other threads:[~2011-08-18 18:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1313063143-14473-1-git-send-email-lczerner@redhat.com>
2011-08-17 13:13 ` [PATCH] loop: add discard support for loop devices Lukas Czerner
2011-08-18 15:33 ` Jeff Moyer
2011-08-18 15:49 ` Lukas Czerner
2011-08-18 18:59 ` Milan Broz [this message]
2011-08-18 19:08 ` Lukas Czerner
2011-08-18 19:12 ` Jens Axboe
2011-08-18 19:20 ` Lukas Czerner
2011-08-18 19:24 ` Jens Axboe
2011-08-18 19:23 ` Jeff Moyer
2011-08-18 19:26 ` Jens Axboe
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=4E4D610D.9010701@redhat.com \
--to=mbroz@redhat.com \
--cc=achender@linux.vnet.ibm.com \
--cc=jaxboe@fusionio.com \
--cc=jmoyer@redhat.com \
--cc=lczerner@redhat.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).