patch-2.4.20 linux-2.4.20/fs/ncpfs/dir.c
Next file: linux-2.4.20/fs/ncpfs/inode.c
Previous file: linux-2.4.20/fs/namespace.c
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Thu Nov 28 15:53:15 2002
- Orig file:
linux-2.4.19/fs/ncpfs/dir.c
- Orig date:
Wed Mar 7 16:53:48 2001
diff -urN linux-2.4.19/fs/ncpfs/dir.c linux-2.4.20/fs/ncpfs/dir.c
@@ -74,7 +74,7 @@
static int ncp_compare_dentry (struct dentry *, struct qstr *, struct qstr *);
static int ncp_delete_dentry(struct dentry *);
-struct dentry_operations ncp_dentry_operations =
+static struct dentry_operations ncp_dentry_operations =
{
d_revalidate: ncp_lookup_validate,
d_hash: ncp_hash_dentry,
@@ -82,6 +82,13 @@
d_delete: ncp_delete_dentry,
};
+struct dentry_operations ncp_root_dentry_operations =
+{
+ d_hash: ncp_hash_dentry,
+ d_compare: ncp_compare_dentry,
+ d_delete: ncp_delete_dentry,
+};
+
/*
* Note: leave the hash unchanged if the directory
@@ -839,7 +846,7 @@
if (S_ISREG(mode) &&
(server->m.flags & NCP_MOUNT_EXTRAS) &&
(mode & S_IXUGO))
- attributes |= aSYSTEM;
+ attributes |= aSYSTEM | aSHARED;
result = ncp_open_create_file_or_subdir(server, dir, __name,
OC_MODE_CREATE | OC_MODE_OPEN | OC_MODE_REPLACE,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)