summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorDerrell Lipman <derrell.lipman@unwireduniverse.com>2009-02-14 12:30:23 -0500
committerDerrell Lipman <derrell.lipman@unwireduniverse.com>2009-02-14 12:30:23 -0500
commit7caadefaa20afeb98a77f14c2948f03cde1d8786 (patch)
treeb1c728856d9fc00b37b3e8a1186174022299e76b /source3
parent20b5e6465938ee81e4d0657f8dd493ff97ec53aa (diff)
downloadsamba-7caadefaa20afeb98a77f14c2948f03cde1d8786.tar.gz
samba-7caadefaa20afeb98a77f14c2948f03cde1d8786.tar.bz2
samba-7caadefaa20afeb98a77f14c2948f03cde1d8786.zip
f_frsize field is not ubiquitous. Check for it.
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/libsmb_stat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/libsmb/libsmb_stat.c b/source3/libsmb/libsmb_stat.c
index dbe9f374cc..8987c2e38b 100644
--- a/source3/libsmb/libsmb_stat.c
+++ b/source3/libsmb/libsmb_stat.c
@@ -398,8 +398,12 @@ SMBC_fstatvfs_ctx(SMBCCTX *context,
/* ... then provide it */
st->f_bsize =
(unsigned long) bytes_per_sector;
+#if HAVE_FRSIZE
st->f_frsize =
(unsigned long) sectors_per_allocation_unit;
+#else
+#warning "f_frsize field is not available"
+#endif
st->f_blocks =
(fsblkcnt_t) total_allocation_units;
st->f_bfree =