diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2011-02-18 14:11:22 +0000 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2011-02-18 14:11:22 +0000 |
commit | 794e94fe163a9f1ce0974a4a76e96927222f909c (patch) | |
tree | e7129650cc2efab5e27fa0e65924c2bd59ea4bbb /lib/metadata/metadata.h | |
parent | 9dd091e4f4cfa577bf6ee69089a7dfaea1cd2dc4 (diff) | |
download | lvm2-794e94fe163a9f1ce0974a4a76e96927222f909c.tar.gz lvm2-794e94fe163a9f1ce0974a4a76e96927222f909c.tar.xz lvm2-794e94fe163a9f1ce0974a4a76e96927222f909c.zip |
Replace PV_MIN_SIZE with function pv_min_size()
Add configurable option to define minimal size of
of block device usable as a PV.
pv_min_size() is added to lvm-globals and it's being
initialized through _process_config.
Macro PV_MIN_SIZE is unused and removed.
New define DEFAULT_PV_MIN_SIZE_KB is added to lvm-global
and unlike PV_MIN_SIZE it uses KB units.
Should help users with various slow devices attached to the system,
which cannot be easily filtered out (like FDD on /dev/sdX):
https://bugzilla.redhat.com/show_bug.cgi?id=644578
Diffstat (limited to 'lib/metadata/metadata.h')
-rw-r--r-- | lib/metadata/metadata.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/metadata/metadata.h b/lib/metadata/metadata.h index c0f9148e..3d51c5b8 100644 --- a/lib/metadata/metadata.h +++ b/lib/metadata/metadata.h @@ -32,7 +32,6 @@ //#define STRIPE_SIZE_MIN ( (unsigned) lvm_getpagesize() >> SECTOR_SHIFT) /* PAGESIZE in sectors */ //#define STRIPE_SIZE_MAX ( 512L * 1024L >> SECTOR_SHIFT) /* 512 KB in sectors */ //#define STRIPE_SIZE_LIMIT ((UINT_MAX >> 2) + 1) -//#define PV_MIN_SIZE ( 512L * 1024L >> SECTOR_SHIFT) /* 512 KB in sectors */ //#define MAX_RESTRICTED_LVS 255 /* Used by FMT_RESTRICTED_LVIDS */ #define MIRROR_LOG_OFFSET 2 /* sectors */ #define VG_MEMPOOL_CHUNK 10240 /* in bytes, hint only */ |