From: Dave Chinner <david@fromorbit.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: xfs@oss.sgi.com, Jan Tulak <jtulak@redhat.com>
Subject: Re: [PATCH 05/11] xfsprogs: missing and dummy calls for OS X support
Date: Tue, 18 Aug 2015 10:17:18 +1000 [thread overview]
Message-ID: <20150818001717.GF714@dastard> (raw)
In-Reply-To: <20150817193223.GE26222@infradead.org>
On Mon, Aug 17, 2015 at 12:32:23PM -0700, Christoph Hellwig wrote:
> On Mon, Aug 17, 2015 at 06:23:20PM +0200, Jan Tulak wrote:
>
> > +#define XATTR_SIZE_MAX 65536 /* size of an extended attribute value (64k) */
> > +#define XATTR_LIST_MAX 65536 /* size of extended attribute namelist (64k) */
>
> Eww, looks like we depend on these Linux values in the on disk
> defintion. I think we need to add new XFS_XATTR_SIZE_MAX and
> XFS_XATTR_LIST_MAX defintions to xfs_format.h and use them where
> we currently use these.
Yeah, that looks like something we need to fix.
> > +#define MREMAP_FIXED 1
> > +#define MREMAP_MAYMOVE 2
> > +static inline void *mremap(void *old_address, size_t old_size,
> > + size_t new_size, int flags, ... /* void *new_address */)
> > +{
> > + return NULL;
> > +}
> > +
> > +/* FSR */
>
> Please just build the mremap file in xfs_io conditional.
Probably should be done on an autconf rule.
>
> > +typedef int __fsblkcnt_t;
> > +typedef int __fsfilcnt_t;
> > +typedef long long int __fsblkcnt64_t;
> > +typedef long long int __fsfilcnt64_t;
> > +
> > +struct statvfs64
> > +{
> > + unsigned long int f_bsize;
> > + unsigned long int f_frsize;
> > + __fsblkcnt64_t f_blocks;
> > + __fsblkcnt64_t f_bfree;
> > + __fsblkcnt64_t f_bavail;
> > + __fsfilcnt64_t f_files;
> > + __fsfilcnt64_t f_ffree;
> > + __fsfilcnt64_t f_favail;
> > + unsigned long int f_fsid;
> > + int __f_unused;
> > + unsigned long int f_flag;
> > + unsigned long int f_namemax;
> > + int __f_spare[6];
> > +};
>
> Does MacOS support statvfs? or statfs? We should use the proper API
> here instead of a dummy. Or maybe just not build fsr on OSX for now,
> as that would solve the fsetxattr issue as well.
Apparently so:
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man2/statfs.2.html
Note that we'll need to define _DARWIN_USE_64_BIT_INODE for OS X to
work correctly.
> > +struct mntent
> > +{
>
> Another fsr issue, right? Seems like it would need similar getmntinfo
> based code. As a stopgap I'd suggest we stop building fsr on OSX for
> now.
That can be based on the HAVE_MNTENT autoconf detection....
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2015-08-18 0:41 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-17 16:23 [PATCH 00/11] xfsprogs: Partial OS X support Jan Tulak
2015-08-17 16:23 ` [PATCH 01/11] xfsprogs: undefined variable fix Jan Tulak
2015-08-17 19:22 ` Christoph Hellwig
2015-08-17 16:23 ` [PATCH 02/11] xfsprogs: Add ifdef dirent checks where it was missing Jan Tulak
2015-08-17 19:23 ` Christoph Hellwig
2015-08-18 6:49 ` Jan Tulak
2015-08-17 16:23 ` [PATCH 03/11] xfsprogs: Change OS X-specific CFLAGS/LDFLAGS Jan Tulak
2015-08-17 16:23 ` [PATCH 04/11] xfsprogs: Add includes required for OS X builds Jan Tulak
2015-08-17 19:23 ` Christoph Hellwig
2015-08-17 16:23 ` [PATCH 05/11] xfsprogs: missing and dummy calls for OS X support Jan Tulak
2015-08-17 19:32 ` Christoph Hellwig
2015-08-18 0:17 ` Dave Chinner [this message]
2015-08-24 12:53 ` Jan Tulak
2015-08-18 21:45 ` Dave Chinner
2015-08-19 8:09 ` Christoph Hellwig
2015-08-19 9:14 ` Jan Tulak
2015-08-19 9:19 ` Christoph Hellwig
2015-08-19 10:26 ` Dave Chinner
2015-08-20 0:22 ` Dave Chinner
2015-08-20 7:33 ` Jan Tulak
2015-08-21 0:43 ` Dave Chinner
2015-08-17 16:23 ` [PATCH 06/11] xfsprogs: Add mntent.h check into autoconf Jan Tulak
2015-08-17 19:32 ` Christoph Hellwig
2015-08-17 16:23 ` [PATCH 07/11] xfsprogs: Add fls " Jan Tulak
2015-08-17 19:32 ` Christoph Hellwig
2015-08-17 16:23 ` [PATCH 08/11] xfsprogs: replace obsolete memalign with posix_memalign Jan Tulak
2015-08-17 19:36 ` Christoph Hellwig
2015-08-18 7:04 ` Jan Tulak
2015-08-18 8:20 ` Dave Chinner
2015-08-18 8:33 ` Jan Tulak
2015-08-18 22:01 ` Dave Chinner
2015-08-19 8:06 ` Jan Tulak
2015-08-17 16:23 ` [PATCH 09/11] xfsprogs: prevent LIST_ macros conflicts Jan Tulak
2015-08-17 19:36 ` Christoph Hellwig
2015-08-17 16:23 ` [PATCH 10/11] xfsprogs: Update doc for OS X Jan Tulak
2015-08-17 19:36 ` Christoph Hellwig
2015-08-17 16:23 ` [PATCH 11/11] xfsprogs: Add a way to compile without blkid Jan Tulak
2015-08-17 19:39 ` Christoph Hellwig
2015-08-18 7:59 ` Jan Tulak
2015-08-18 12:02 ` [PATCH v2 " Jan Tulak
2015-08-17 21:55 ` [PATCH 00/11] xfsprogs: Partial OS X support Dave Chinner
2015-08-18 9:14 ` Jan Tulak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150818001717.GF714@dastard \
--to=david@fromorbit.com \
--cc=hch@infradead.org \
--cc=jtulak@redhat.com \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox