summaryrefslogtreecommitdiffstats
path: root/shlibs/blkid
diff options
context:
space:
mode:
authorKarel Zak2010-01-19 16:23:14 +0100
committerKarel Zak2010-01-19 16:23:14 +0100
commit5c5cc18b8439fee874dd54603b0ca70f4616f2ba (patch)
treed3b421dce737f1a7a98cc2a5c38b7cd292c4a4c8 /shlibs/blkid
parentlibblkid: don't call read() per FAT dir-entry on large disks (diff)
downloadkernel-qcow2-util-linux-5c5cc18b8439fee874dd54603b0ca70f4616f2ba.tar.gz
kernel-qcow2-util-linux-5c5cc18b8439fee874dd54603b0ca70f4616f2ba.tar.xz
kernel-qcow2-util-linux-5c5cc18b8439fee874dd54603b0ca70f4616f2ba.zip
libblkid: add minimal sizes for OCFS and GFS
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/blkid')
-rw-r--r--shlibs/blkid/src/superblocks/gfs.c2
-rw-r--r--shlibs/blkid/src/superblocks/ocfs.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/shlibs/blkid/src/superblocks/gfs.c b/shlibs/blkid/src/superblocks/gfs.c
index 8ad81bcb4..b2c016304 100644
--- a/shlibs/blkid/src/superblocks/gfs.c
+++ b/shlibs/blkid/src/superblocks/gfs.c
@@ -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 },
diff --git a/shlibs/blkid/src/superblocks/ocfs.c b/shlibs/blkid/src/superblocks/ocfs.c
index 6e58b37a0..9dbf41b15 100644
--- a/shlibs/blkid/src/superblocks/ocfs.c
+++ b/shlibs/blkid/src/superblocks/ocfs.c
@@ -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",