From mboxrd@z Thu Jan 1 00:00:00 1970 From: Harald Hoyer Subject: Re: [PATCH] add readonly overlay support for dmsquash Date: Thu, 04 Mar 2010 14:07:49 +0100 Message-ID: <4B8FB0A5.2090309@redhat.com> References: <1267195469-32522-1-git-send-email-jboggs@redhat.com> <20100226202326.GG8702@nb.net.home> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20100226202326.GG8702-sHeGUpI7y9L/9pzu0YdTqQ@public.gmane.org> Sender: initramfs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Karel Zak Cc: Joey Boggs , initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On 02/26/2010 09:23 PM, Karel Zak wrote: > On Fri, Feb 26, 2010 at 09:44:29AM -0500, Joey Boggs wrote: >> # set up the snapshot >> - echo 0 `blockdev --getsize $BASE_LOOPDEV` snapshot $BASE_LOOPDEV $OVERLAY_LOOPDEV p 8 | dmsetup create live-rw >> + echo 0 `blockdev --getsize $BASE_LOOPDEV` snapshot $BASE_LOOPDEV $OVERLAY_LOOPDEV p 8 | dmsetup create $readonly_overlay live-rw > ^^^^^^^^^^^^^^^^^ > > Don't use --getsize, this option is deprecated and it's based > on BLKGETSIZE ioctl that returns *32-bit* sector count (= 2TiB only). > > Please, use --getsz. For more details see blockdev(8) man page. > > Karel > patched to use --getsize64