diff options
author | Alasdair G Kergon <agk@redhat.com> | 2014-08-15 13:45:55 +0100 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2014-08-15 13:45:55 +0100 |
commit | 8a7682cbc982004e880a740d61ca5d12f0caf769 (patch) | |
tree | 867742e816ad8460071c87b5b9c3b287e4f87cf9 /libdm/misc | |
parent | 8740ecfa6492d149637a2f23d3bd7328863f0a78 (diff) | |
download | lvm2-8a7682cbc982004e880a740d61ca5d12f0caf769.tar.gz |
libdm: Add DM_DEFERRED_REMOVE to dm-ioctl.h.
Diffstat (limited to 'libdm/misc')
-rw-r--r-- | libdm/misc/dm-ioctl.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/libdm/misc/dm-ioctl.h b/libdm/misc/dm-ioctl.h index 76316b05b..01a2b9e1b 100644 --- a/libdm/misc/dm-ioctl.h +++ b/libdm/misc/dm-ioctl.h @@ -1,6 +1,6 @@ /* * Copyright (C) 2001 - 2003 Sistina Software (UK) Limited. - * Copyright (C) 2004 - 2013 Red Hat, Inc. All rights reserved. + * Copyright (C) 2004 - 2014 Red Hat, Inc. All rights reserved. * * This file is released under the LGPL. */ @@ -269,9 +269,9 @@ enum { #define DM_DEV_SET_GEOMETRY _IOWR(DM_IOCTL, DM_DEV_SET_GEOMETRY_CMD, struct dm_ioctl) #define DM_VERSION_MAJOR 4 -#define DM_VERSION_MINOR 24 +#define DM_VERSION_MINOR 27 #define DM_VERSION_PATCHLEVEL 0 -#define DM_VERSION_EXTRA "-ioctl (2013-01-15)" +#define DM_VERSION_EXTRA "-ioctl (2013-10-30)" /* Status bits */ #define DM_READONLY_FLAG (1 << 0) /* In/Out */ @@ -343,4 +343,15 @@ enum { */ #define DM_DATA_OUT_FLAG (1 << 16) /* Out */ +/* + * If set with DM_DEV_REMOVE or DM_REMOVE_ALL this indicates that if + * the device cannot be removed immediately because it is still in use + * it should instead be scheduled for removal when it gets closed. + * + * On return from DM_DEV_REMOVE, DM_DEV_STATUS or other ioctls, this + * flag indicates that the device is scheduled to be removed when it + * gets closed. + */ +#define DM_DEFERRED_REMOVE (1 << 17) /* In/Out */ + #endif /* _LINUX_DM_IOCTL_H */ |