patch-2.4.19 linux-2.4.19/fs/fat/inode.c
Next file: linux-2.4.19/fs/fcntl.c
Previous file: linux-2.4.19/fs/ext3/inode.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Fri Aug 2 17:39:45 2002
- Orig file:
linux-2.4.18/fs/fat/inode.c
- Orig date:
Mon Feb 25 11:38:08 2002
diff -urN linux-2.4.18/fs/fat/inode.c linux-2.4.19/fs/fat/inode.c
@@ -434,12 +434,13 @@
struct dentry *result;
if (fhtype != 3)
- return NULL;
+ return ERR_PTR(-ESTALE);
if (len < 5)
- return NULL;
+ return ERR_PTR(-ESTALE);
+ /* We cannot find the parent,
+ It better just *be* there */
if (parent)
- return NULL; /* We cannot find the parent,
- It better just *be* there */
+ return ERR_PTR(-ESTALE);
inode = iget(sb, fh[0]);
if (!inode || is_bad_inode(inode) ||
@@ -501,6 +502,7 @@
iput(inode);
return ERR_PTR(-ENOMEM);
}
+ result->d_op = sb->s_root->d_op;
result->d_flags |= DCACHE_NFSD_DISCONNECTED;
return result;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)