From cc87df6807e94b6c23c80f70907945684fadf65e Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Wed, 13 Feb 2002 19:36:05 +0000 Subject: [PATCH] Added support for ext3 filesystem --- ChangeLog | 1 + lib/mbfile.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c0bf8e34..2dab7c5e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4595,6 +4595,7 @@ v0.33.20 10-Feb-2002 common.a: Added 2 functions to return the OS name and CPU family. Added a function to return the right tearline. + Added support for ext3 filesystem in diskspace check. mbsetup: In message groups added default settings for auto area diff --git a/lib/mbfile.c b/lib/mbfile.c index fc1d283f..22e79006 100644 --- a/lib/mbfile.c +++ b/lib/mbfile.c @@ -294,7 +294,8 @@ int diskfree(int needed) */ if (strncmp((char *)"/dev/fd", dev, 7) && strncmp((char *)"/boot", fs, 5) && (!strncmp((char *)"ext2", type, 4) || !strncmp((char *)"reiserfs", type, 8) || - !strncmp((char *)"vfat", type, 4) || !strncmp((char *)"msdos", type, 5))) { + !strncmp((char *)"vfat", type, 4) || !strncmp((char *)"msdos", type, 5) || + !strncmp((char *)"ext3", type, 4))) { if (statfs(fs, &sfs) == 0) { temp = (unsigned long)(sfs.f_bsize / 512L); if (((unsigned long)(sfs.f_bavail * temp) / 2048L) < needed) {