]> err.no Git - util-linux/commitdiff
libblkid: add minimal sizes for OCFS and GFS
authorKarel Zak <kzak@redhat.com>
Tue, 19 Jan 2010 15:23:14 +0000 (16:23 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 19 Jan 2010 15:23:14 +0000 (16:23 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
shlibs/blkid/src/superblocks/gfs.c
shlibs/blkid/src/superblocks/ocfs.c

index 8ad81bcb4819c716a8052a00c6dcf0794230cbb9..b2c016304430728f41dba69fe07ca949f7a4415c 100644 (file)
@@ -108,6 +108,7 @@ const struct blkid_idinfo gfs_idinfo =
        .name           = "gfs",
        .usage          = BLKID_USAGE_FILESYSTEM,
        .probefunc      = probe_gfs,
+       .minsz          = 32 * 1024 * 1024,     /* minimal size of GFS journal */
        .magics         =
        {
                { .magic = "\x01\x16\x19\x70", .len = 4, .kboff = 64 },
@@ -120,6 +121,7 @@ const struct blkid_idinfo gfs2_idinfo =
        .name           = "gfs2",
        .usage          = BLKID_USAGE_FILESYSTEM,
        .probefunc      = probe_gfs2,
+       .minsz          = 32 * 1024 * 1024,     /* minimal size of GFS journal */
        .magics         =
        {
                { .magic = "\x01\x16\x19\x70", .len = 4, .kboff = 64 },
index 6e58b37a073d3bb662735ba64cabf504c219350a..9dbf41b15df5515f70e00afa04ec9038f3916cff 100644 (file)
@@ -174,6 +174,7 @@ const struct blkid_idinfo ocfs_idinfo =
        .name           = "ocfs",
        .usage          = BLKID_USAGE_FILESYSTEM,
        .probefunc      = probe_ocfs,
+       .minsz          = 108 * 1024 * 1024,
        .magics         =
        {
                { .magic = "OracleCFS", .len = 9, .kboff = 8 },
@@ -186,6 +187,7 @@ const struct blkid_idinfo ocfs2_idinfo =
        .name           = "ocfs2",
        .usage          = BLKID_USAGE_FILESYSTEM,
        .probefunc      = probe_ocfs2,
+       .minsz          = 108 * 1024 * 1024,
        .magics         =
        {
                { .magic = "OCFSV2", .len = 6, .kboff = 1 },
@@ -196,6 +198,7 @@ const struct blkid_idinfo ocfs2_idinfo =
        }
 };
 
+/* Oracle ASM (Automatic Storage Management) */
 const struct blkid_idinfo oracleasm_idinfo =
 {
        .name           = "oracleasm",