1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

f_frsize field is not ubiquitous. Check for it.

This commit is contained in:
Derrell Lipman
2009-02-14 12:30:23 -05:00
parent 20b5e64659
commit 7caadefaa2

View File

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