]> www.infradead.org Git - mtd-utils.git/commitdiff
mtd_debug: support new flags
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 4 Feb 2008 15:32:01 +0000 (17:32 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 4 Feb 2008 15:32:01 +0000 (17:32 +0200)
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
include/mtd/mtd-abi.h
mtd_debug.c

index aaae170763b8d0085f1c82d05c9724f2357ca4de..86defe175f1c30bc296bb66c2147b1df258d27b9 100644 (file)
@@ -24,6 +24,7 @@ struct mtd_oob_buf {
 #define MTD_NORFLASH           3
 #define MTD_NANDFLASH          4
 #define MTD_DATAFLASH          6
+#define MTD_UBIVOLUME          7
 
 #define MTD_WRITEABLE          0x400   /* Device is writeable */
 #define MTD_BIT_WRITEABLE      0x800   /* Single bits can be flipped */
index b44e9527fdd97561112256e6e31c1f9ba176000c..85d48e924972f8dc0fd76c5a71b050c751b50c83 100644 (file)
@@ -272,6 +272,8 @@ int showinfo (int fd)
                case MTD_DATAFLASH:
                        printf ("MTD_DATAFLASH");
                        break;
+               case MTD_UBIVOLUME:
+                       printf ("MTD_UBIVOLUME");
                default:
                        printf ("(unknown type - new MTD API maybe?)");
        }
@@ -298,6 +300,8 @@ int showinfo (int fd)
                {
                        { "MTD_WRITEABLE", MTD_WRITEABLE },
                        { "MTD_BIT_WRITEABLE", MTD_BIT_WRITEABLE },
+                       { "MTD_NO_ERASE", MTD_NO_ERASE },
+                       { "MTD_STUPID_LOCK", MTD_STUPID_LOCK },
                        { NULL, -1 }
                };
                for (i = 0; flags[i].name != NULL; i++)