[lvm-devel] [PATCH - v2] LVM: New flag, LV_REBUILD
Zdenek Kabelac
zkabelac at redhat.com
Wed Nov 16 20:06:28 UTC 2011
Dne 14.11.2011 19:06, Jonathan Brassow napsal(a):
> Changes from previous:
> - New rebuild flag is now written to on-disk LVM metadata
> - An additional metadata write/commit is necessary to clear the flag
> after a proper resume
> - flags.c file updated
>
> brassow
>
> Add new flag, LV_REBUILD.
>
> Until now, I had been using the LV_NOTSYNCED as a flag to indicate that RAID
> sub-LVs needed to be rebuilt. (The 'rebuild' parameter is then specified in
> the DM CTR table.) However, I don't want to use a flag that gets written to
> the LVM metadata... and the LV_NOTSYNCED flag's original meaning does not
> suite the purpose adequately.
>
> This patch proposes and uses a new flag, LV_REBUILD.
Hmm so now - when it's written to disk - it looks like LV_REBUILD and
LV_NOTSYNCED is mostly the same meaning - except one is used in raid
and original in mirror ?
So I think it's easier to keep just one flag ?
(Well the bit field space is somewhat limited)
Zdenek
More information about the lvm-devel
mailing list