* [PATCH} XFS: Remove placeholders for unimplemented functionality.
@ 2007-01-28 21:00 Robert P. J. Day
2007-01-29 4:58 ` [xfs-masters] " Eric Sandeen
0 siblings, 1 reply; 4+ messages in thread
From: Robert P. J. Day @ 2007-01-28 21:00 UTC (permalink / raw)
To: Linux kernel mailing list; +Cc: xfs-masters, Andrew Morton, dgc
Remove a couple kernel config variables (FS_POSIX_CAP and
FS_POSIX_MAC) that represent placeholders for unimplemented
functionality.
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
---
compile-tested on i386.
fs/xfs/xfs_cap.h | 15 ---------------
fs/xfs/xfs_mac.h | 17 -----------------
2 files changed, 32 deletions(-)
diff --git a/fs/xfs/xfs_cap.h b/fs/xfs/xfs_cap.h
index 7a0e482..cfedfd1 100644
--- a/fs/xfs/xfs_cap.h
+++ b/fs/xfs/xfs_cap.h
@@ -45,25 +45,10 @@ typedef struct xfs_cap_set {
#ifdef __KERNEL__
-#ifdef CONFIG_FS_POSIX_CAP
-
-#include <linux/posix_cap_xattr.h>
-
-struct bhv_vnode;
-
-extern int xfs_cap_vhascap(struct bhv_vnode *);
-extern int xfs_cap_vset(struct bhv_vnode *, void *, size_t);
-extern int xfs_cap_vget(struct bhv_vnode *, void *, size_t);
-extern int xfs_cap_vremove(struct bhv_vnode *);
-
-#define _CAP_EXISTS xfs_cap_vhascap
-
-#else
#define xfs_cap_vset(v,p,sz) (-EOPNOTSUPP)
#define xfs_cap_vget(v,p,sz) (-EOPNOTSUPP)
#define xfs_cap_vremove(v) (-EOPNOTSUPP)
#define _CAP_EXISTS (NULL)
-#endif
#endif /* __KERNEL__ */
diff --git a/fs/xfs/xfs_mac.h b/fs/xfs/xfs_mac.h
index 18e0e98..a3f7eaf 100644
--- a/fs/xfs/xfs_mac.h
+++ b/fs/xfs/xfs_mac.h
@@ -80,26 +80,9 @@ typedef struct xfs_mac_label {
#ifdef __KERNEL__
-#ifdef CONFIG_FS_POSIX_MAC
-
-/* NOT YET IMPLEMENTED */
-
-#define MACEXEC 00100
-#define MACWRITE 00200
-#define MACREAD 00400
-
-struct xfs_inode;
-extern int xfs_mac_iaccess(struct xfs_inode *, mode_t, cred_t *);
-
-#define _MAC_XFS_IACCESS(i,m,c) (xfs_mac_iaccess(i,m,c))
-#define _MAC_VACCESS(v,c,m) (xfs_mac_vaccess(v,c,m))
-#define _MAC_EXISTS xfs_mac_vhaslabel
-
-#else
#define _MAC_XFS_IACCESS(i,m,c) (0)
#define _MAC_VACCESS(v,c,m) (0)
#define _MAC_EXISTS (NULL)
-#endif
#endif /* __KERNEL__ */
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA
http://www.fsdev.dreamhosters.com/wiki/index.php?title=Main_Page
========================================================================
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [xfs-masters] [PATCH} XFS: Remove placeholders for unimplemented functionality.
2007-01-28 21:00 [PATCH} XFS: Remove placeholders for unimplemented functionality Robert P. J. Day
@ 2007-01-29 4:58 ` Eric Sandeen
2007-01-29 7:01 ` Christoph Hellwig
2007-01-29 8:06 ` Robert P. J. Day
0 siblings, 2 replies; 4+ messages in thread
From: Eric Sandeen @ 2007-01-29 4:58 UTC (permalink / raw)
To: xfs-masters; +Cc: Linux kernel mailing list, Andrew Morton, dgc
Robert P. J. Day wrote:
> Remove a couple kernel config variables (FS_POSIX_CAP and
> FS_POSIX_MAC) that represent placeholders for unimplemented
> functionality.
>
> Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
>
> ---
...
> diff --git a/fs/xfs/xfs_cap.h b/fs/xfs/xfs_cap.h
> index 7a0e482..cfedfd1 100644
> --- a/fs/xfs/xfs_cap.h
> +++ b/fs/xfs/xfs_cap.h
...
> -#else
> #define xfs_cap_vset(v,p,sz) (-EOPNOTSUPP)
> #define xfs_cap_vget(v,p,sz) (-EOPNOTSUPP)
> #define xfs_cap_vremove(v) (-EOPNOTSUPP)
> #define _CAP_EXISTS (NULL)
> -#endif
>
> #endif /* __KERNEL__ */
By the time you do this, probably may as well remove the whole file; the
leftover 4 definitions never seem to be used.
The same may go for xfs_mac.h.
-Eric
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [xfs-masters] [PATCH} XFS: Remove placeholders for unimplemented functionality.
2007-01-29 4:58 ` [xfs-masters] " Eric Sandeen
@ 2007-01-29 7:01 ` Christoph Hellwig
2007-01-29 8:06 ` Robert P. J. Day
1 sibling, 0 replies; 4+ messages in thread
From: Christoph Hellwig @ 2007-01-29 7:01 UTC (permalink / raw)
To: Eric Sandeen; +Cc: xfs-masters, Linux kernel mailing list, Andrew Morton, dgc
On Sun, Jan 28, 2007 at 10:58:50PM -0600, Eric Sandeen wrote:
> >-#else
> > #define xfs_cap_vset(v,p,sz) (-EOPNOTSUPP)
> > #define xfs_cap_vget(v,p,sz) (-EOPNOTSUPP)
> > #define xfs_cap_vremove(v) (-EOPNOTSUPP)
> > #define _CAP_EXISTS (NULL)
> >-#endif
> >
> > #endif /* __KERNEL__ */
>
> By the time you do this, probably may as well remove the whole file; the
> leftover 4 definitions never seem to be used.
>
> The same may go for xfs_mac.h.
Agreed. As Dave said if we get this functionality on Linux it will most
likely be handled at a different level, so keeping the old IRIX-style hooks
is rather pointless.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [xfs-masters] [PATCH} XFS: Remove placeholders for unimplemented functionality.
2007-01-29 4:58 ` [xfs-masters] " Eric Sandeen
2007-01-29 7:01 ` Christoph Hellwig
@ 2007-01-29 8:06 ` Robert P. J. Day
1 sibling, 0 replies; 4+ messages in thread
From: Robert P. J. Day @ 2007-01-29 8:06 UTC (permalink / raw)
To: Eric Sandeen; +Cc: xfs-masters, Linux kernel mailing list, Andrew Morton, dgc
On Sun, 28 Jan 2007, Eric Sandeen wrote:
> Robert P. J. Day wrote:
> > Remove a couple kernel config variables (FS_POSIX_CAP and
> > FS_POSIX_MAC) that represent placeholders for unimplemented
> > functionality.
> >
> > Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
> >
> > ---
>
> ...
>
> > diff --git a/fs/xfs/xfs_cap.h b/fs/xfs/xfs_cap.h
> > index 7a0e482..cfedfd1 100644
> > --- a/fs/xfs/xfs_cap.h
> > +++ b/fs/xfs/xfs_cap.h
>
> ...
>
> > -#else
> > #define xfs_cap_vset(v,p,sz) (-EOPNOTSUPP)
> > #define xfs_cap_vget(v,p,sz) (-EOPNOTSUPP)
> > #define xfs_cap_vremove(v) (-EOPNOTSUPP)
> > #define _CAP_EXISTS (NULL)
> > -#endif
> >
> > #endif /* __KERNEL__ */
>
> By the time you do this, probably may as well remove the whole file;
> the leftover 4 definitions never seem to be used.
>
> The same may go for xfs_mac.h.
>
> -Eric
good point. david chinner (dgc) already mentioned that he'd prefer to
run this through the XFS tree so i'll leave this in his capable hands.
rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA
http://www.fsdev.dreamhosters.com/wiki/index.php?title=Main_Page
========================================================================
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-01-29 8:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-28 21:00 [PATCH} XFS: Remove placeholders for unimplemented functionality Robert P. J. Day
2007-01-29 4:58 ` [xfs-masters] " Eric Sandeen
2007-01-29 7:01 ` Christoph Hellwig
2007-01-29 8:06 ` Robert P. J. Day
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.