On Wednesday 07 January 2009 00:36, Qinghuang Feng wrote:
Hi Qinghuang,
Thanks for the fix.
Your patch breaks the user space compile because your macro definitions
appear outside the __KERNEL__ macro. Could you try this version?
Regards,
Daniel
diff -r 68f754221c50 user/kernel/inode.c
--- a/user/kernel/inode.c Tue Jan 06 14:09:37 2009 -0800
+++ b/user/kernel/inode.c Wed Jan 07 01:13:39 2009 -0800
@@ -454,8 +454,13 @@ struct inode *tux_create_inode(struct in
struct inode *tux_create_inode(struct inode *dir, int mode, dev_t rdev)
{
struct tux_iattr iattr = {
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)
+ .uid = current_fsuid(),
+ .gid = current_fsgid(),
+#else
.uid = current->fsuid,
.gid = current->fsgid,
+#endif
.mode = mode,
};
struct inode *inode = tux_new_inode(dir, &iattr, rdev);
diff -r 68f754221c50 user/kernel/tux3.h
--- a/user/kernel/tux3.h Tue Jan 06 14:09:37 2009 -0800
+++ b/user/kernel/tux3.h Wed Jan 07 01:13:39 2009 -0800
@@ -9,6 +9,10 @@
#include
#include
#include
+
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)
+#include // fsuid
+#endif
typedef loff_t block_t;
_______________________________________________
Tux3 mailing list
Tux3@tux3.org
http://mailman.tux3.org/cgi-bin/mailman/listinfo/tux3
| Andrew Morton | -mm merge plans for 2.6.23 |
| Greg Kroah-Hartman | [PATCH 025/196] paride: Convert from class_device to device for block/paride |
| Renato S. Yamane | Error -71 on device descriptor read/all |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
git: | |
| David Miller | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 31/37] dccp: Remove manual influence on NDP Count feature |
| Frans Pop | svc: failed to register lockdv1 RPC service (errno 97). |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
