diff options
author | Joe Thornber <thornber@redhat.com> | 2002-07-11 14:21:49 +0000 |
---|---|---|
committer | Joe Thornber <thornber@redhat.com> | 2002-07-11 14:21:49 +0000 |
commit | 097d49e73dff0fdf6eb942164b307693f906d155 (patch) | |
tree | 9d568e98a34bd1b9cbd3d38a873aab55849b148e /tools/lvscan.c | |
parent | 407332cb9a7a9df128433a32812944840be623b3 (diff) | |
download | lvm2-097d49e73dff0fdf6eb942164b307693f906d155.tar.gz |
i) There's now a seperate field in struct logical_volume that stores the
allocation policy. This can currently take one of three values:
typedef enum {
ALLOC_NEXT_FREE,
ALLOC_STRICT,
ALLOC_CONTIGUOUS
} alloc_policy_t;
Notice that 'SIMPLE' has turned into the slightly more meaningful NEXT_FREE.
ii) Put code into display.[hc] for converting one of these enums to a
text representation and back again.
ii) Updated the text format so this also has the alloc_policy field.
Diffstat (limited to 'tools/lvscan.c')
-rw-r--r-- | tools/lvscan.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/lvscan.c b/tools/lvscan.c index a571e6c45..044e2e6ba 100644 --- a/tools/lvscan.c +++ b/tools/lvscan.c @@ -86,10 +86,9 @@ static int lvscan_single(struct cmd_context *cmd, struct logical_volume *lv) ***********/ dummy = display_size(lv->size / 2, SIZE_SHORT); - log_print("%s%s '%s%s/%s' [%s]%s%s", active_str, snapshot_str, + log_print("%s%s '%s%s/%s' [%s]%s", active_str, snapshot_str, cmd->dev_dir, lv->vg->name, lv->name, dummy, - (lv->status & ALLOC_STRICT) ? " strict" : "", - (lv->status & ALLOC_CONTIGUOUS) ? " contiguous" : ""); + get_alloc_string(lv->alloc)); dbg_free(dummy); |