Added support for ext3 filesystem

This commit is contained in:
Michiel Broek 2002-02-13 19:36:05 +00:00
parent e911721e5b
commit cc87df6807
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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) {