summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2009-09-08 06:13:50 +0000
committerTheodore Ts'o <tytso@mit.edu>2010-12-13 09:29:19 -0500
commit43eb2ad47766c18faf39bb15a198a08144a0a707 (patch)
tree08cdf1e834c743108d9eea92ce95e26fc366c6db
parent90b9dce3e566613d509554e278c01126c83f8612 (diff)
downloade2fsprogs-43eb2ad47766c18faf39bb15a198a08144a0a707.tar.gz
e4defrag: skip "rootfs" entry when checking for ext4 filesystem
Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
-rw-r--r--misc/e4defrag.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/misc/e4defrag.c b/misc/e4defrag.c
index 424e0cae..8b0894f7 100644
--- a/misc/e4defrag.c
+++ b/misc/e4defrag.c
@@ -430,6 +430,8 @@ static int is_ext4(const char *file)
}
while ((mnt = getmntent(fp)) != NULL) {
+ if (mnt->mnt_fsname[0] != '/')
+ continue;
len = strlen(mnt->mnt_dir);
ret = memcmp(file_path, mnt->mnt_dir, len);
if (ret != 0)