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:
@ -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 =
|
||||
|
Reference in New Issue
Block a user