From: Karel Zak <kzak@redhat.com>
To: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Cc: util-linux <util-linux@vger.kernel.org>
Subject: Re: fdisk: off-by-one issue in (n)new command
Date: Tue, 17 Jan 2012 11:07:56 +0100 [thread overview]
Message-ID: <20120117100756.GA12310@x2.net.home> (raw)
In-Reply-To: <4F14A512.2030904@yahoo.com.ar>
On Mon, Jan 16, 2012 at 07:30:42PM -0300, Gerardo Exequiel Pozzi wrote:
> Last sector, +sectors or +size{K,M,G} (2048-524287, default 524287): +255M
> Value out of range.
The size of the device is 268435456 bytes,
+255M is relative to the begin of the partition, it means
(2048 * 512) + (255 * 1024 * 1024) = 268435456 bytes
but the begin of the last sector (in bytes) is
268435456 - 512 = 268434944 bytes (LBA sector 524287)
Right?
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
next prev parent reply other threads:[~2012-01-17 10:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4F0E167A.9090205@yahoo.com.ar>
[not found] ` <CAMFXF50uHCU4yhwe3byAsTKvPpi8F63mR9O4TfKhuANiEL_v0Q@mail.gmail.com>
2012-01-16 21:54 ` fdisk: off-by-one issue in (n)new command Gerardo Exequiel Pozzi
2012-01-16 22:30 ` Gerardo Exequiel Pozzi
2012-01-17 10:07 ` Karel Zak [this message]
2012-01-17 14:55 ` Gerardo Exequiel Pozzi
2012-01-20 14:21 ` Francesco Cosoleto
2012-01-22 1:37 ` Gerardo Exequiel Pozzi
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=20120117100756.GA12310@x2.net.home \
--to=kzak@redhat.com \
--cc=util-linux@vger.kernel.org \
--cc=vmlinuz386@yahoo.com.ar \
/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.