From 43eb2ad47766c18faf39bb15a198a08144a0a707 Mon Sep 17 00:00:00 2001 From: Eric Sandeen Date: Tue, 8 Sep 2009 06:13:50 +0000 Subject: [PATCH] e4defrag: skip "rootfs" entry when checking for ext4 filesystem Signed-off-by: Eric Sandeen Signed-off-by: "Theodore Ts'o" --- misc/e4defrag.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/misc/e4defrag.c b/misc/e4defrag.c index 424e0ca..8b0894f 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) -- 1.8.3.1