From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: "initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Cc: Joey Boggs <jboggs-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Subject: Re: [PATCH] add readonly overlay support for dmsquash
Date: Thu, 04 Mar 2010 15:28:03 +0100 [thread overview]
Message-ID: <4B8FC373.5040900@redhat.com> (raw)
In-Reply-To: <20100304141633.GA18077-sHeGUpI7y9L/9pzu0YdTqQ@public.gmane.org>
On 03/04/2010 03:16 PM, Karel Zak wrote:
> On Thu, Mar 04, 2010 at 02:07:49PM +0100, Harald Hoyer wrote:
>> 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
>
> That's wrong solution. The --getsize64 option returns size in bytes,
> but you need size in 512-byte sectors. Use --getsz, read "man
> blockdev" ;-)
>
> Karel
>
doh :) stupid me
next prev parent reply other threads:[~2010-03-04 14:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-26 14:44 [PATCH] add readonly overlay support for dmsquash Joey Boggs
[not found] ` <1267195469-32522-1-git-send-email-jboggs-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-02-26 20:23 ` Karel Zak
[not found] ` <20100226202326.GG8702-sHeGUpI7y9L/9pzu0YdTqQ@public.gmane.org>
2010-03-04 13:07 ` Harald Hoyer
[not found] ` <4B8FB0A5.2090309-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-03-04 14:16 ` Karel Zak
[not found] ` <20100304141633.GA18077-sHeGUpI7y9L/9pzu0YdTqQ@public.gmane.org>
2010-03-04 14:28 ` Harald Hoyer [this message]
2010-03-04 13:07 ` Harald Hoyer
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=4B8FC373.5040900@redhat.com \
--to=harald-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=jboggs-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.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