mirror of
https://github.com/aaru-dps/fstester.git
synced 2025-12-16 19:24:39 +00:00
Use f_namemax if available in statfs(2).
This commit is contained in:
@@ -151,8 +151,10 @@ void GetVolumeInfo(const char* path, size_t* clusterSize)
|
||||
log_write("\tVolume size: %llu bytes\n", ((unsigned long long)buf.f_blocks) * buf.f_bsize);
|
||||
log_write("\tVolume free: %llu bytes\n", ((unsigned long long)buf.f_bfree) * buf.f_bsize);
|
||||
|
||||
#if defined(USE_STATFS_FNAMELEN)
|
||||
#ifdef USE_STATFS_FNAMELEN
|
||||
log_write("\tMaximum component length: %ld\n", buf.f_namelen);
|
||||
#elif USE_STATFS_NAMEMAX
|
||||
log_write("\tMaximum component length: %ld\n", buf.f_namemax);
|
||||
#endif
|
||||
|
||||
if(buf.f_flags)
|
||||
|
||||
Reference in New Issue
Block a user