lkml.org 
[lkml]   [2002]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [Ext2-devel] [PATCH] Compile without xattrs
Date
On Tuesday 15 October 2002 07:57, Matt Reppert wrote:
> On Mon, 14 Oct 2002 22:10:41 -0700
>
> Andrew Morton <akpm@digeo.com> wrote:
> > - merge up the ext2/3 extended attribute code, convert that to use
> > the slab shrinking API in Linus's current tree.
>
> Trivial patch for the "too chicken to enable xattrs for now" case, but I
> need this to compile:

Please add this to include/linux/errno.h instead:

#define ENOTSUP EOPNOTSUPP /* Operation not supported */
ENOTSUPP is distinct from (EOPNOTSUPP = ENOTSUP)

(Yes, it's a mess.)

--Andreas.

> --- linux-2.5-orig/include/linux/ext2_xattr.h 2002-10-15 00:47:03 -0500
> +++ linux-2.5/include/linux/ext2_xattr.h 2002-10-15 00:45:48 -0500
> @@ -92,20 +92,20 @@
> ext2_xattr_get(struct inode *inode, int name_index,
> const char *name, void *buffer, size_t size)
> {
> - return -ENOTSUP;
> + return -ENOTSUPP;
> }
>
> static inline int
> ext2_xattr_list(struct inode *inode, char *buffer, size_t size)
> {
> - return -ENOTSUP;
> + return -ENOTSUPP;
> }
>
> static inline int
> ext2_xattr_set(struct inode *inode, int name_index, const char *name,
> const void *value, size_t size, int flags)
> {
> - return -ENOTSUP;
> + return -ENOTSUPP;
> }
>
> static inline void
> --- linux-2.5-orig/include/linux/ext3_xattr.h 2002-10-15 00:49:59.000000000
> -0500 +++ linux-2.5/include/linux/ext3_xattr.h 2002-10-15
> 00:50:12.000000000 -0500 @@ -92,20 +92,20 @@
> ext3_xattr_get(struct inode *inode, int name_index, const char *name,
> void *buffer, size_t size, int flags)
> {
> - return -ENOTSUP;
> + return -ENOTSUPP;
> }
>
> static inline int
> ext3_xattr_list(struct inode *inode, void *buffer, size_t size, int flags)
> {
> - return -ENOTSUP;
> + return -ENOTSUPP;
> }
>
> static inline int
> ext3_xattr_set(handle_t *handle, struct inode *inode, int name_index,
> const char *name, const void *value, size_t size, int flags)
> {
> - return -ENOTSUP;
> + return -ENOTSUPP;
> }
>
> static inline void
>
>
> Matt

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:30    [W:0.179 / U:0.552 seconds]
©2003-2014 Jasper Spaans. Advertise on this site