From: Milan Broz <gmazyland@gmail.com>
To: Dennis Birkholz <dm-crypt@dennis.birkholz.biz>
Cc: dm-crypt@saout.de
Subject: Re: [dm-crypt] Toggle read-only status of mapping
Date: Thu, 25 Oct 2012 12:15:39 +0200 [thread overview]
Message-ID: <5089114B.8050106@gmail.com> (raw)
In-Reply-To: <50862339.6060201@dennis.birkholz.biz>
On 10/23/2012 06:55 AM, Dennis Birkholz wrote:
> currently it is possible to create a read-only mapping, but to me it
> seems not possible to switch a rw mapping to a ro mapping or vice versa.
> I use Software-RAID5->Luks->Ext4, do switch everything to read-only I
> have to unmount, remove crypt mapping, create ro crypt mapping, mount
> ro, switch raid to ro but it would be very nice if I only can switch
> everything to ro.
Hm. What is the reason for this exercise?
Switching to read only of top layer is not enough?
Anyway, I think we can add this option to "resize" command perhaps.
(Resize reloads mapping, so it can switch read-only flag as well.)
But it can be dangerous in some situations...
(And you can do it already using dmsetup but that's quite complicated.)
Milan
next prev parent reply other threads:[~2012-10-25 10:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-23 4:55 [dm-crypt] Toggle read-only status of mapping Dennis Birkholz
2012-10-25 10:15 ` Milan Broz [this message]
2012-10-25 14:50 ` Dennis Birkholz
2012-10-25 15:20 ` Milan Broz
2012-10-25 17:10 ` Dennis Birkholz
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=5089114B.8050106@gmail.com \
--to=gmazyland@gmail.com \
--cc=dm-crypt@dennis.birkholz.biz \
--cc=dm-crypt@saout.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.