1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-11-08 00:23:49 +03:00

Set pv_min_size to 2048KB to exclude floppy drives.

Previously was 512.
This commit is contained in:
Alasdair Kergon
2011-04-28 17:33:34 +00:00
parent 86ba564a9e
commit 2c56f60db4
4 changed files with 13 additions and 7 deletions

View File

@@ -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;