projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff4a88b
)
dm raid: prohibit to pass in both sync and nosync ctr flags
author
Heinz Mauelshagen
<heinzm@redhat.com>
Wed, 15 Jun 2016 16:43:55 +0000
(18:43 +0200)
committer
Mike Snitzer
<snitzer@redhat.com>
Mon, 18 Jul 2016 19:37:17 +0000
(15:37 -0400)
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-raid.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/dm-raid.c
b/drivers/md/dm-raid.c
index 4bf7747a25a9a59701a874545c616e7823d1858a..e8e9b6abe133bf382b1f8e64025124c950a3c448 100644
(file)
--- a/
drivers/md/dm-raid.c
+++ b/
drivers/md/dm-raid.c
@@
-1297,6
+1297,12
@@
static int parse_raid_params(struct raid_set *rs, struct dm_arg_set *as,
}
}
+ if (test_bit(__CTR_FLAG_SYNC, &rs->ctr_flags) &&
+ test_bit(__CTR_FLAG_NOSYNC, &rs->ctr_flags)) {
+ rs->ti->error = "sync and nosync are mutually exclusive";
+ return -EINVAL;
+ }
+
if (validate_region_size(rs, region_size))
return -EINVAL;