[PATCH 00/11 v4] xfsprogs: Partial OSX support

Jan Tulak
2015-08-26T12:00:59Z

Fourth iteration. Most of the patches in this set are from splitting
one patch in the previous iteration.

Specifically, only patch 1 is from the previous set as it wasn't
in a good shape yet. Patch 3 is a delta for an older version which was
merged accidentaly instead of the newest one.

All the other patches in this set originate from
[PATCH 05/11] xfsprogs: missing and dummy calls for OS X support.

FSR is still compiled, even if it requires empty functions. There is
no drawback from this for other platforms. Some of the calls can be made
working. However, for example the mntent calls are not usefull anywhere
else, and as fsr can't work without a mounted system, there is no way
how to use and test the alternative implementation.

If in futre xfs can be mounted on OS X, then at least the empty functions
are clear as "TODO". If there is an untested code, they will most likely
need to be debugged and possibly even rewritten to respect future changes
in OS X. So in short, I see implementing them as a waste of time.

Stopping the FSR build is, with the current target audience of this port
between developers, unnecessary.

Cheers,
Jan

CHANGELOG:

v4:
- added #warning message (patch 1)
- use dummy blkid_get_topology instead of #ifdefs (patch 1)
- fix autoconf (wasn't passing -DENABLE_BLKID flag, lost during
patch cleaning.) (patch 1)
- remove dependency on linux XATTR_ constants (patch 2)
- add autoconf detection for fsetxattr (patch 4)
- use uuid_t instead of unsigned char (patch 5)
- add a basic timer functionality (patch 8)
- mremap replacement now returns MAP_FAILED (patch 11)

Version 3:
- better commit messages (patch 1)
- formatting fixes (patch 2, 8)
- autoconf updates (patch 6, 7)
- changed default behaviour if BLKID is disabled such that mkfs -f
is required (patch 11)

Jan Tulak (11):
xfsprogs: Add a way to compile without blkid
xfsprogs: avoid dependency on linux XATTR_SIZE/LIST_MAX
xfsprogs: Add includes required for OS X builds (delta)
xfsprogs: Add autoconf check for fsetxattr call
xfsprogs: uuid changes for OS X
xfsprogs: Remove conflicting define for OS X
xfsprogs: add nftw64 translation for OS X
xfsprogs: Add a timer implementation for OS X
xfsprogs: Add statvfs64 for osx
xfsprogs: add dummy mntent for OS X
xfsprogs: add dummy mremap for OS X

configure.ac | 11 +++-
fsr/xfs_fsr.c | 8 +++
include/builddefs.in | 11 +++-
include/darwin.h | 157 ++++++++++++++++++++++++++++++++++++++++++-----
libhandle/handle.c | 6 +-
libhandle/jdm.c | 6 +-
libxfs/xfs_attr_remote.c | 2 +-
libxfs/xfs_format.h | 11 +++-
m4/package_libcdev.m4 | 13 ++++
mkfs/xfs_mkfs.c | 37 ++++++++++-
repair/progress.c | 16 ++++-
11 files changed, 251 insertions(+), 27 deletions(-)

--
2.4.5