From 07cb1d7c391102f14772f04ae537fc55f435eab7 Mon Sep 17 00:00:00 2001 From: girishc Date: Wed, 17 Sep 2003 10:03:27 +0000 Subject: [PATCH] b=1825 mds_create_objects() checks for FMODE_WRITE mode in rec->ur_flags, embeding the appropriate mode in flags --- lustre/kernel_patches/patches/nfs_export_kernel-2.4.20.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/kernel_patches/patches/nfs_export_kernel-2.4.20.patch b/lustre/kernel_patches/patches/nfs_export_kernel-2.4.20.patch index b0230c9..013f0e9 100644 --- a/lustre/kernel_patches/patches/nfs_export_kernel-2.4.20.patch +++ b/lustre/kernel_patches/patches/nfs_export_kernel-2.4.20.patch @@ -240,7 +240,7 @@ diff -uprN linux/fs/nfsd/nfsfh.c linux-2.4.20/fs/nfsd/nfsfh.c diff -uprN linux/fs/nfsd/vfs.c linux-2.4.20/fs/nfsd/vfs.c --- linux/fs/nfsd/vfs.c 2002-11-29 05:23:15.000000000 +0530 -+++ linux-2.4.20/fs/nfsd/vfs.c 2003-09-13 17:31:21.000000000 +0530 ++++ linux-2.4.20/fs/nfsd/vfs.c 2003-09-17 16:03:09.000000000 +0530 @@ -77,6 +77,133 @@ struct raparms { static struct raparms * raparml; static struct raparms * raparm_cache; @@ -392,7 +392,7 @@ diff -uprN linux/fs/nfsd/vfs.c linux-2.4.20/fs/nfsd/vfs.c } + struct lookup_intent it; -+ intent_init(&it, IT_OPEN, filp->f_flags); ++ intent_init(&it, IT_OPEN, filp->f_flags|filp->f_mode); + + err = revalidate_it(dentry, &it); + if (err) -- 1.8.3.1