patch-1.3.9 linux/fs/smbfs/dir.c

Next file: linux/fs/smbfs/file.c
Previous file: linux/fs/smbfs/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.8/linux/fs/smbfs/dir.c linux/fs/smbfs/dir.c
@@ -554,11 +554,10 @@
         }
 }
         
-int
+void
 smb_init_root(struct smb_server *server)
 {
         struct smb_inode_info *root = &(server->root);
-        int result;
 
         root->finfo.path = server->m.root_path;
         root->finfo.len  = strlen(root->finfo.path);
@@ -568,6 +567,14 @@
         root->nused = 1;
         root->dir   = NULL;
         root->next = root->prev = root;
+        return;
+}
+
+int
+smb_stat_root(struct smb_server *server)
+{
+        struct smb_inode_info *root = &(server->root);
+        int result;
 
         if (root->finfo.len == 0) {
                 result = smb_proc_getattr(server, "\\", 1, &(root->finfo));
@@ -776,6 +783,8 @@
 
         entry.attr  = 0;
         entry.ctime = CURRENT_TIME;
+        entry.atime = CURRENT_TIME;
+        entry.mtime = CURRENT_TIME;
         entry.size  = 0;
 
         error = smb_proc_create(SMB_SERVER(dir), path, len, &entry);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this