From: Timothy Shimmin <tes@sgi.com>
To: Christoph Hellwig <hch@lst.de>
Cc: xfs@oss.sgi.com
Subject: Re: [PATCH 1/2] simplify xfs_vn_listxattr
Date: Fri, 06 Jun 2008 14:41:12 +1000 [thread overview]
Message-ID: <4848BFE8.6000205@sgi.com> (raw)
In-Reply-To: <20080603114837.GB2703@lst.de>
Christoph Hellwig wrote:
>
> /*
> * Then add the two synthetic ACL attributes.
> @@ -265,7 +316,7 @@ xfs_vn_listxattr(struct dentry *dentry,
> if (xfs_acl_vhasacl_access(inode)) {
> error = list_one_attr(POSIX_ACL_XATTR_ACCESS,
> strlen(POSIX_ACL_XATTR_ACCESS) + 1,
> - data, size, &result);
> + data, size, &context.count);
> if (error)
> return error;
> }
> @@ -273,10 +324,10 @@ xfs_vn_listxattr(struct dentry *dentry,
> if (xfs_acl_vhasacl_default(inode)) {
> error = list_one_attr(POSIX_ACL_XATTR_DEFAULT,
> strlen(POSIX_ACL_XATTR_DEFAULT) + 1,
> - data, size, &result);
> + data, size, &context.count);
> if (error)
Need to fix param type.
re:
static int
list_one_attr(const char *name, const size_t len, void *data,
size_t size, ssize_t *result)
typedef struct xfs_attr_list_context {
struct xfs_inode *dp; /* inode */
struct attrlist_cursor_kern *cursor; /* position in list */
char *alist; /* output buffer */
int seen_enough; /* T/F: seen enough of list? */
int count; /* num used entries */
=> mismatch type on &context.count (int) and list_one_attr's result
param (ssize_t => long)
--Tim
next prev parent reply other threads:[~2008-06-06 4:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-03 11:48 [PATCH 1/2] simplify xfs_vn_listxattr Christoph Hellwig
2008-06-05 7:58 ` Timothy Shimmin
2008-06-06 4:41 ` Timothy Shimmin [this message]
2008-06-06 5:43 ` Christoph Hellwig
2008-06-13 4:09 ` Timothy Shimmin
2008-06-13 16:24 ` Christoph Hellwig
2008-06-14 15:17 ` Christoph Hellwig
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=4848BFE8.6000205@sgi.com \
--to=tes@sgi.com \
--cc=hch@lst.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.