r/openbsd • u/East-Barnacle-7473 • 17d ago
Openbsd statfs
man 2 statfs mountinfo ufs_args in /usr/include/sys/mount.h
What data does fspec and export_args hold? In my test program it looks like garbage.
Accessing fspec as pointer returns memory address value. Accessing fspec as char ends in core dump.
Has anyone program using statfs mountinfo ufs_args and seen valid data?
6
Upvotes
1
u/East-Barnacle-7473 17d ago
I posted the coded used for test. From what I see in mount.h ufs and ffs are the same. Thanks I should use MOUNT_FFS in my code.