patch-2.2.6 linux/fs/smbfs/dir.c
Next file: linux/fs/super.c
Previous file: linux/fs/proc/link.c
Back to the patch index
Back to the overall index
- Lines: 64
- Date:
Mon Apr 12 10:03:45 1999
- Orig file:
v2.2.5/linux/fs/smbfs/dir.c
- Orig date:
Tue Dec 22 14:16:57 1998
diff -u --recursive --new-file v2.2.5/linux/fs/smbfs/dir.c linux/fs/smbfs/dir.c
@@ -423,9 +423,6 @@
printk("smb_create: creating %s/%s, mode=%d\n",
dentry->d_parent->d_name.name, dentry->d_name.name, mode);
#endif
- error = -ENAMETOOLONG;
- if (dentry->d_name.len > SMB_MAXNAMELEN)
- goto out;
smb_invalid_dir_cache(dir);
error = smb_proc_create(dentry, 0, CURRENT_TIME, &fileid);
@@ -439,7 +436,6 @@
dentry->d_parent->d_name.name, dentry->d_name.name, error);
#endif
}
-out:
return error;
}
@@ -449,17 +445,12 @@
{
int error;
- error = -ENAMETOOLONG;
- if (dentry->d_name.len > SMB_MAXNAMELEN)
- goto out;
-
smb_invalid_dir_cache(dir);
error = smb_proc_mkdir(dentry);
if (!error)
{
error = smb_instantiate(dentry, 0, 0);
}
-out:
return error;
}
@@ -514,11 +505,6 @@
{
int error;
- error = -ENAMETOOLONG;
- if (old_dentry->d_name.len > SMB_MAXNAMELEN ||
- new_dentry->d_name.len > SMB_MAXNAMELEN)
- goto out;
-
/*
* Close any open files, and check whether to delete the
* target before attempting the rename.
@@ -537,6 +523,7 @@
#endif
goto out;
}
+ /* FIXME */
d_delete(new_dentry);
}
@@ -547,7 +534,6 @@
{
smb_renew_times(old_dentry);
smb_renew_times(new_dentry);
- d_move(old_dentry, new_dentry);
}
out:
return error;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)