The Filesystem Tools project is a place where the Apple filesystem teams will be publishing some of the tools we use to test the filesystems that are part of macOS. These tools will be useful to developers who are writing new macOS filesystems, or testing macOS network filesystems against their servers.
I propose the addition of a new header file, fsx.h, to help port fsx.c to other platforms. My changes compile on "Darwin Kernel Version 14.0.0" and "FreeBSD 10.1-STABLE". The biggest change is moving F_NOCACHE to the header file.
My goals were:
to keep any conditional compilation noise confined to fsx.h, instead of putting this in fsx.c
to keep the functionality of fsx.c the same as the original
avoid using conditional compilation to prevent parts of fsx.c code from compiling on other platforms
kirk@… originally submitted this as ticket:15
https://github.com/kirussel/fstools/compare/master...kirussel/fsxh
I propose the addition of a new header file, fsx.h, to help port fsx.c to other platforms. My changes compile on "Darwin Kernel Version 14.0.0" and "FreeBSD 10.1-STABLE". The biggest change is moving F_NOCACHE to the header file.
My goals were: