Add missing break statement in kpartx
authorhegdevasant <vahegde1@linux.vnet.ibm.com>
Wed, 9 Nov 2011 23:00:01 +0000 (00:00 +0100)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Wed, 9 Nov 2011 23:00:01 +0000 (00:00 +0100)
Signed-off-by: Vasant Hegde <vahegde1@linux.vnet.ibm.com>
kpartx/kpartx.c

index 05dfce7..0711450 100644 (file)
@@ -241,6 +241,7 @@ main(int argc, char **argv){
        while ((arg = getopt(argc, argv, short_opts)) != EOF) switch(arg) {
                case 'r':
                        ro=1;
        while ((arg = getopt(argc, argv, short_opts)) != EOF) switch(arg) {
                case 'r':
                        ro=1;
+                       break;
                case 'f':
                        force_devmap=1;
                        break;
                case 'f':
                        force_devmap=1;
                        break;
@@ -267,6 +268,7 @@ main(int argc, char **argv){
                        break;
                case 's':
                        sync = 1;
                        break;
                case 's':
                        sync = 1;
+                       break;
                case 'u':
                        what = UPDATE;
                        break;
                case 'u':
                        what = UPDATE;
                        break;