Skip to content

xfsprogs: Partial OSX support

Jan Tulak linux-xfs 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest14 patches 13 repliesIn review
  2. v411 patches 19 repliesSuperseded
  3. v21 of 11 patches 0 repliesSuperseded

Changes in v5 from the cover letter

- patch 2 was split into 3 patches, numbered 2, 3 and 4
- in patches 2-4, instead of just prefixing it all, a mixed approach was used.
- patch 9 renames the function directly instead of using #define
- patch 11 now adds a simple rename
- patch 12 uses mntinfo instead of dummy code
- in patch 13, make mremap build optional instead of dummy code
- new patch 14 with lstat64

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14xfsprogs: Add a way to compile without blkidconfigure.ac include/builddefs.in mkfs/xfs_mkfs.c+50 -20 replies
2/14xfsprogs: Add XATTR_LIST_MAX to OS X headersinclude/darwin.h+5 -00 replies
3/14xfsprogs: avoid dependency on Linux XATTR_SIZE_MAXlibxfs/xfs_attr_remote.c libxfs/xfs_format.h+10 -21 reply
4/14xfsprogs: prefix XATTR_LIST_MAX with XFS_include/xfs.h libhandle/handle.c libhandle/jdm.c+6 -44 replies
5/14xfsprogs: Add includes required for OS X builds (delta)include/darwin.h+3 -00 replies
6/14xfsprogs: Add autoconf check for fsetxattr callconfigure.ac fsr/xfs_fsr.c include/builddefs.in +1 more+20 -00 replies
7/14xfsprogs: uuid changes for OS Xinclude/darwin.h+7 -150 replies
8/14xfsprogs: Remove conflicting define for OS Xinclude/darwin.h+0 -10 replies
9/14xfsprogs: change nftw64 to nftwestimate/xfs_estimate.c+3 -30 replies
10/14xfsprogs: Add a timer implementation for OS Xinclude/darwin.h repair/progress.c+62 -23 replies
11/14xfsprogs: Add statvfs64 for osxfsr/xfs_fsr.c include/builddefs.in include/darwin.h+20 -13 replies
12/14xfsprogs: make fsr use mntinfo when there is no mntentfsr/Makefile fsr/xfs_fsr.c include/darwin.h+87 -108 replies
13/14xfsprogs: Make mremap conditionalconfigure.ac include/builddefs.in include/darwin.h +2 more+24 -01 reply
14/14xfsprogs: rename lstat64 to lstat for OS Xinclude/darwin.h+1 -00 replies

Reviews trailers per patch

6 of 14 patches have a Reviewed-by or Acked-by.

PatchChristoph HellwigDave Chinner
1/14R-b
2/14
3/14R-b
4/14
5/14R-b
6/14R-b
7/14R-b
8/14R-b
9/14
10/14
11/14
12/14
13/14
14/14

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH 00/14 v5] xfsprogs: Partial OSX support

Hi all,

An updated version. This set is intended to put together the current versions of the individual patches with the exception of a new patch 14, and rebase it against the current master branch.

Patch 4 contains renaming required by Dave, however I'm not sure if it is still needed with the changes in patches 2 and 3.

Patch 10 (adding timer) was mentioned that it "doesn't look to work", but I didn't get a reasoning. The added code, when tested, really run. For testing it in xfs_repair, I don't have how to create a large enough FS where the timer would be noticable on OSX. (Not enough of empty space.)

Cheers,
Jan

CHANGELOG:
v5:
- patch 2 was split into 3 patches, numbered 2, 3 and 4
- in patches 2-4, instead of just prefixing it all, a mixed approach was used.
- patch 9 renames the function directly instead of using #define
- patch 11 now adds a simple rename
- patch 12 uses mntinfo instead of dummy code
- in patch 13, make mremap build optional instead of dummy code
- new patch 14 with lstat64

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 (14):
xfsprogs: Add a way to compile without blkid
xfsprogs: Add XATTR_LIST_MAX to OS X headers
xfsprogs: avoid dependency on Linux XATTR_SIZE_MAX
xfsprogs: prefix XATTR_LIST_MAX with XFS_
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: change nftw64 to nftw
xfsprogs: Add a timer implementation for OS X
xfsprogs: Add statvfs64 for osx
xfsprogs: make fsr use mntinfo when there is no mntent
xfsprogs: Make mremap conditional
xfsprogs: rename lstat64 to lstat for OS X

 configure.ac             |  12 +++++-
 estimate/xfs_estimate.c  |   6 +--
 fsr/Makefile             |   8 ++++
 fsr/xfs_fsr.c            |  85 ++++++++++++++++++++++++++++++++-----
 include/builddefs.in     |  12 +++++-
 include/darwin.h         | 106 ++++++++++++++++++++++++++++++++++++++++-------
 include/xfs.h            |   2 +
 io/mmap.c                |   8 ++++
 libhandle/handle.c       |   4 +-
 libhandle/jdm.c          |   4 +-
 libxfs/xfs_attr_remote.c |   2 +-
 libxfs/xfs_format.h      |  10 ++++-
 m4/package_libcdev.m4    |  26 ++++++++++++
 mkfs/xfs_mkfs.c          |  37 ++++++++++++++++-
 repair/progress.c        |  16 ++++++-
 15 files changed, 298 insertions(+), 40 deletions(-)
Signature · 6 lines
2.4.3

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs