From: wessels <> Date: Fri, 5 Jan 2001 02:11:49 +0000 (+0000) Subject: With statvfs, f_bsize means something different. The fundamental block X-Git-Tag: SQUID_3_0_PRE1~1700 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6759a7aafb115d26521893c2f5ae0f259ef41fa6;p=thirdparty%2Fsquid.git With statvfs, f_bsize means something different. The fundamental block size element is f_frsize. --- diff --git a/src/store_dir.cc b/src/store_dir.cc index e791e61b5a..129742552e 100644 --- a/src/store_dir.cc +++ b/src/store_dir.cc @@ -1,6 +1,6 @@ /* - * $Id: store_dir.cc,v 1.119 2001/01/04 07:32:08 wessels Exp $ + * $Id: store_dir.cc,v 1.120 2001/01/04 19:11:49 wessels Exp $ * * DEBUG: section 47 Store Directory Routines * AUTHOR: Duane Wessels @@ -468,16 +468,17 @@ storeDirGetBlkSize(const char *path, int *blksize) #if HAVE_STATVFS struct statvfs sfs; if (statvfs(path, &sfs)) { - debug(0, 0) ("%s: %s\n", path, xstrerror()); + debug(50, 1) ("%s: %s\n", path, xstrerror()); return 1; } + *blksize = (int) sfs.f_frsize; #else struct statfs sfs; if (statfs(path, &sfs)) { - debug(0, 0) ("%s: %s\n", path, xstrerror()); + debug(50, 1) ("%s: %s\n", path, xstrerror()); return 1; } -#endif *blksize = (int) sfs.f_bsize; +#endif return 0; }