From: Christoph Hellwig <hch@infradead.org>
To: Jan Tulak <jtulak@redhat.com>
Cc: xfs@oss.sgi.com
Subject: Re: [PATCH v2 4/4] xfsprogs: OS X partial support
Date: Sun, 26 Jul 2015 09:34:38 -0700 [thread overview]
Message-ID: <20150726163438.GD16659@infradead.org> (raw)
In-Reply-To: <1437397018-12864-5-git-send-email-jtulak@redhat.com>
I think this needs to be split into one patch per issue. A few comments
below:
> -#include <malloc.h>
malloc and friends need to be in stdlib.h per Posix, so the right
fix is to drop every include of malloc.h and mae sure we include
stdlib.h where needed.
> -#include <mntent.h>
> #include <syslog.h>
> #include <signal.h>
> #include <sys/ioctl.h>
> #include <sys/wait.h>
> -#include <sys/vfs.h>
sys/vfs.h is jsut an alias for sys/stafs.h, ut given that
this file doesn't even use statfs we can simply drop the include
unconditionally.
> +#ifndef PLATFORM_HAS_NO_MNTENT_H
> +# include <mntent.h>
> +#endif
Why aren't you using the standard autoconf-generate include checks?
> +#ifdef _DIRENT_HAVE_D_RECLEN
> *total += dirent->d_reclen;
> +#endif
> count++;
>
> if (dump) {
> dump_dirent(offset, dirent);
> +#ifdef _DIRENT_HAVE_D_OFF
> offset = dirent->d_off;
> +#endif
I'm pretty sure autoconf has a standard macro for this, try looking it
up in the autoconf manual.
> diff --git a/libxcmd/paths.c b/libxcmd/paths.c
> index c0b1ddb..b360617 100644
> --- a/libxcmd/paths.c
> +++ b/libxcmd/paths.c
> @@ -364,7 +364,7 @@ fs_table_initialise_mounts(
> continue;
> if (!realpath(stats[i].f_mntfromname, rmntfromname))
> continue;
> - if (!realpath(stats[i].f_mntonname, rmnttomname)))
> + if (!realpath(stats[i].f_mntonname, rmntonname))
I don't understand this change.
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2015-07-26 16:34 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-20 12:56 [PATCH v2 0/4] xfsprogs: Partial OS X support Jan Tulak
2015-07-20 12:56 ` [PATCH v2 1/4] xfsprogs: Prefix LIST_... macros to XFS_LIST_ Jan Tulak
2015-08-02 23:42 ` Dave Chinner
2015-08-03 9:34 ` Jan Tulak
2015-08-03 22:16 ` Dave Chinner
2015-08-04 8:38 ` Jan Tulak
2015-07-20 12:56 ` [PATCH v2 2/4] xfsprogs: Don't Make .po files with gettext disabled Jan Tulak
2015-07-26 16:28 ` Christoph Hellwig
2015-07-20 12:56 ` [PATCH v2 3/4] xfsprogs: Use glibtoolize on osx Jan Tulak
2015-07-26 16:29 ` Christoph Hellwig
2015-07-20 12:56 ` [PATCH v2 4/4] xfsprogs: OS X partial support Jan Tulak
2015-07-26 16:34 ` Christoph Hellwig [this message]
2015-07-27 16:45 ` 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=20150726163438.GD16659@infradead.org \
--to=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