From 4b8f81aace86dd308d5af4669eab116d1a8c8418 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Fri, 19 Nov 2004 14:28:01 -0500 Subject: [PATCH] probe.c (probe_ocfs): Fix bug where the wrong size for "ocfs1" was being passed to blkid_set_tag(). Thanks to Andrea Dilger for pointing this out. --- lib/blkid/ChangeLog | 6 ++++++ lib/blkid/probe.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/blkid/ChangeLog b/lib/blkid/ChangeLog index 0eace05..ba74f55 100644 --- a/lib/blkid/ChangeLog +++ b/lib/blkid/ChangeLog @@ -1,3 +1,9 @@ +2004-11-19 Theodore Ts'o + + * probe.c (probe_ocfs): Fix bug where the wrong size for "ocfs1" + was being passed to blkid_set_tag(). Thanks to Andrea + Dilger for pointing this out. + 2004-09-17 Theodore Ts'o * probe.c, probe.h: Add support for ocfs2 detection, courtesy of diff --git a/lib/blkid/probe.c b/lib/blkid/probe.c index 1256663..de0d75d 100644 --- a/lib/blkid/probe.c +++ b/lib/blkid/probe.c @@ -327,7 +327,7 @@ static int probe_ocfs(int fd __BLKID_ATTR((unused)), major = ocfsmajor(ovh); if (major == 1) - blkid_set_tag(dev,"SEC_TYPE","ocfs1",sizeof("ocfs")); + blkid_set_tag(dev,"SEC_TYPE","ocfs1",sizeof("ocfs1")); else if (major >= 9) blkid_set_tag(dev,"SEC_TYPE","ntocfs",sizeof("ntocfs")); -- 1.8.3.1