summaryrefslogtreecommitdiffstats
path: root/lib/commands/toolcontext.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2011-04-28 17:33:34 +0000
committerAlasdair Kergon <agk@redhat.com>2011-04-28 17:33:34 +0000
commit2c56f60db49d6af15c0f51d735d4047d8ce254ff (patch)
treed2cdaf8fa4c388733aa7e98f6588ffcda7cc37f0 /lib/commands/toolcontext.c
parent86ba564a9e4e176d68eb0afa2ef4efa171512965 (diff)
downloadlvm2-2c56f60db49d6af15c0f51d735d4047d8ce254ff.tar.gz
lvm2-2c56f60db49d6af15c0f51d735d4047d8ce254ff.tar.xz
lvm2-2c56f60db49d6af15c0f51d735d4047d8ce254ff.zip
Set pv_min_size to 2048KB to exclude floppy drives.
Previously was 512.
Diffstat (limited to 'lib/commands/toolcontext.c')
-rw-r--r--lib/commands/toolcontext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/commands/toolcontext.c b/lib/commands/toolcontext.c
index 67a7771c..8b020d1a 100644
--- a/lib/commands/toolcontext.c
+++ b/lib/commands/toolcontext.c
@@ -325,7 +325,7 @@ static int _process_config(struct cmd_context *cmd)
pv_min_kb, DEFAULT_PV_MIN_SIZE_KB);
pv_min_kb = DEFAULT_PV_MIN_SIZE_KB;
}
- /* lvm internally works with device size in 512b sectors */
+ /* LVM stores sizes internally in units of 512-byte sectors. */
init_pv_min_size((uint64_t)pv_min_kb * (1024 >> SECTOR_SHIFT));
return 1;