diff options
author | Dave Wysochanski <dwysocha@redhat.com> | 2007-09-20 21:39:08 +0000 |
---|---|---|
committer | Dave Wysochanski <dwysocha@redhat.com> | 2007-09-20 21:39:08 +0000 |
commit | dfef7f6942cc1b2988e73cb2e7086a452bee6516 (patch) | |
tree | 2f966ad8925af4a2a11a4c841528392a61a4727c /lib/misc/util.h | |
parent | d6e11b43fd608b1c071e2eb13a557fa0e2f0e58c (diff) | |
download | lvm2-dfef7f6942cc1b2988e73cb2e7086a452bee6516.tar.gz |
Add %PVS extents option to lvresize, lvextend, and lvcreate.
Diffstat (limited to 'lib/misc/util.h')
-rw-r--r-- | lib/misc/util.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/misc/util.h b/lib/misc/util.h index a178e036a..694864cbc 100644 --- a/lib/misc/util.h +++ b/lib/misc/util.h @@ -15,6 +15,16 @@ #ifndef _LVM_UTIL_H #define _LVM_UTIL_H +#define min(a, b) ({ typeof(a) _a = (a); \ + typeof(b) _b = (b); \ + (void) (&_a == &_b); \ + _a < _b ? _a : _b; }) + +#define max(a, b) ({ typeof(a) _a = (a); \ + typeof(b) _b = (b); \ + (void) (&_a == &_b); \ + _a > _b ? _a : _b; }) + char *last_path_component(char const *name); #endif |