mdadm:it doesn't make sense to set --bitmap twice
PATCH 1/1 mdadm:it doesn't make sense to set --bitmap twice
mdadm.c: it doesn't make sense to set --bitmap twice.
Signed-off-by Zhilong Liu <[email protected]>
--- mdadm.c | 4 ++++ 1 file changed, 4 insertions(+)
mdadm.c +4 -0
@@ -1145,6 +1145,10 @@ int main(int argc, char *argv[])case O (CREATE ,Bitmap):/* here we create the bitmap */ case O (GROW ,'b' ):case O (GROW ,Bitmap): +if (s.bitmap_file) { +pr_err ("bitmap cannot be set twice. Second value: %s.\n" , optarg); +exit (2 ); + }if (strcmp (optarg,"internal" ) ==0 ||strcmp (optarg,"none" ) ==0 ||strchr (optarg,'/' ) !=NULL ) {
Signature · 1 line
2.6.6
[email protected]
AppliedQuoted 6 lines · Zhilong Liu
mdadm.c: it doesn't make sense to set --bitmap twice.Signed-off-by Zhilong Liu <[email protected]>--- mdadm.c | 4 ++++ 1 file changed, 4 insertions(+)
Applied!
Thanks,
Jes