Util-Linux package development
 help / color / mirror / Atom feed
From: Forest Bond <forest@alittletooquiet.net>
To: "Przemysław 'Przemoc' Pawełczyk" <przemoc@gmail.com>
Cc: util-linux@vger.kernel.org
Subject: Re: sfdisk enhancement proposal - offset/shift support
Date: Fri, 14 Jan 2011 09:20:12 -0500	[thread overview]
Message-ID: <20110114142012.GA26786@alittletooquiet.net> (raw)
In-Reply-To: <AANLkTimJJDm-9vu_xcMjh0uQSghZE44Miz1XaHcx=p7j@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 762 bytes --]

Hi,

On Fri, Jan 14, 2011 at 02:31:55PM +0100, Przemysław 'Przemoc' Pawełczyk wrote:
> I have following suggestion for sfdisk:
> - adding offset/shift support for cumbersome raw disk images (like
> fixed-size VDI), that don't start at the beginning of the file.
> 
> Required changes?
> IMO straightforward way is just adding another option (below is an
> example), global variable (e.g. shift) and fixing sseek() code and
> R.total_size in get_geometry() to take it into account.
> 
>     -t# [or --offset #]  ignore the number of bytes at the beginning

Isn't this something you can just use a loopback device for?

  losetup -f -o $offset $image

Thanks,
Forest
-- 
Forest Bond
http://www.alittletooquiet.net
http://www.pytagsfs.org

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2011-01-14 14:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-14 13:31 sfdisk enhancement proposal - offset/shift support Przemysław 'Przemoc' Pawełczyk
2011-01-14 14:20 ` Forest Bond [this message]
2011-01-14 15:45   ` Przemysław 'Przemoc' Pawełczyk

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=20110114142012.GA26786@alittletooquiet.net \
    --to=forest@alittletooquiet.net \
    --cc=przemoc@gmail.com \
    --cc=util-linux@vger.kernel.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