[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is there a way to specify all blocks in the block list syntax?
From: |
Andrei Borzenkov |
Subject: |
Re: Is there a way to specify all blocks in the block list syntax? |
Date: |
Tue, 2 Feb 2016 12:43:28 +0300 |
On Tue, Feb 2, 2016 at 6:20 AM, Alan Perry <address@hidden> wrote:
>
> Is there a way in the blocklist syntax (e.g., "(hd0)0+100" to specify blocks
> 0-99 of hd0) to specify all blocks? It looks like the offset is optional,
> but the length is required.
>
Yes, looks like it.
> Is there some other way to specify the entire contents of a device to
> commands that take a file argument?
>
I can think of two ways to get it
- allow ($hdd) syntax without filename to mean "full device"
- extend probe command to query device size, so you could do
probe --size --set size $hdd
whatever ($hdd)+$size
I prefer the latter. Patches are welcome :) But please explain your
use case if submitting.