diff options
author | Kiyoshi Ueda <k-ueda@ct.jp.nec.com> | 2006-12-08 02:41:04 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-08 08:29:09 -0800 |
commit | a3d77d35be6f416a250c528c3ed5c70013a915e8 (patch) | |
tree | 6aaecdf78b4da52f8a3b3ded2bd320812e3db6df /drivers/md/dm.h | |
parent | 74859364633963cb660c4fa518adca9ab1ca4229 (diff) | |
download | linux-stable-a3d77d35be6f416a250c528c3ed5c70013a915e8.tar.gz linux-stable-a3d77d35be6f416a250c528c3ed5c70013a915e8.tar.bz2 linux-stable-a3d77d35be6f416a250c528c3ed5c70013a915e8.zip |
[PATCH] dm: suspend: parameter change
Change the interface of dm_suspend() so that we can pass several options
without increasing the number of parameters. The existing 'do_lockfs' integer
parameter is replaced by a flag DM_SUSPEND_LOCKFS_FLAG.
There is no functional change to the code.
Test results:
I have tested 'dmsetup suspend' command with/without the '--nolockfs'
option and confirmed the do_lockfs value is correctly set.
Signed-off-by: Kiyoshi Ueda <k-ueda@ct.jp.nec.com>
Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Cc: dm-devel@redhat.com
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/md/dm.h')
-rw-r--r-- | drivers/md/dm.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/md/dm.h b/drivers/md/dm.h index a48ec5e3c1f4..81c98d6e35e9 100644 --- a/drivers/md/dm.h +++ b/drivers/md/dm.h @@ -33,6 +33,11 @@ #define SECTOR_SHIFT 9 /* + * Suspend feature flags + */ +#define DM_SUSPEND_LOCKFS_FLAG (1 << 0) + +/* * List of devices that a metadevice uses and should open/close. */ struct dm_dev { |