From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [BUG] remount ro on loopback mount leaves unmountable filesystem behind Date: Tue, 13 May 2008 08:42:03 -0400 Message-ID: <20080513124203.GA4806@infradead.org> References: <20080513085047.GY155679365@sgi.com> <20080513102340.GA15112@infradead.org> <20080513120710.GA155679365@sgi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Christoph Hellwig , lkml , linux-fsdevel , util-linux-ng-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: David Chinner Return-path: Content-Disposition: inline In-Reply-To: <20080513120710.GA155679365-sJ/iWh9BUns@public.gmane.org> Sender: util-linux-ng-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-fsdevel.vger.kernel.org On Tue, May 13, 2008 at 10:07:10PM +1000, David Chinner wrote: > Anyway, I'll hard code loop device numbers into the script so > I can just forget about this problem. Thanks, Christoph. hardcoding them is a little dangerous because a system might aswell have them in use already, e.g. for CD images. Just use losetup -f to find the first free one and keep it in a shell variable. -- To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html