OSX: How to get the maximum file size for a given file system


If i have a mount point how do i get the maximum file size supported by filesystem locally mounted on that mount point?

I tried statfs(2), statvfs(2) but nothing seems to mention file size limits. I tried capturing 'diskutil listFilesystems -plist' output but it only mentions min/max limits on partition size for each fs. Any other ideas?

The VFS layer doesn't expose this data, so no. All you can do is try to create a file and check for EFBIG.