From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id do08yunPUw9i for ; Thu, 25 Oct 2012 12:15:43 +0200 (CEST) Received: from mail-ee0-f50.google.com (mail-ee0-f50.google.com [74.125.83.50]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Thu, 25 Oct 2012 12:15:43 +0200 (CEST) Received: by mail-ee0-f50.google.com with SMTP id c41so651107eek.37 for ; Thu, 25 Oct 2012 03:15:43 -0700 (PDT) Message-ID: <5089114B.8050106@gmail.com> Date: Thu, 25 Oct 2012 12:15:39 +0200 From: Milan Broz MIME-Version: 1.0 References: <50862339.6060201@dennis.birkholz.biz> In-Reply-To: <50862339.6060201@dennis.birkholz.biz> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] Toggle read-only status of mapping List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Dennis Birkholz Cc: dm-crypt@saout.de 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