patch-2.3.99-pre6 linux/fs/udf/namei.c
Next file: linux/fs/ufs/inode.c
Previous file: linux/fs/udf/inode.c
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
Mon Apr 24 18:56:33 2000
- Orig file:
v2.3.99-pre5/linux/fs/udf/namei.c
- Orig date:
Mon Mar 27 08:08:30 2000
diff -u --recursive --new-file v2.3.99-pre5/linux/fs/udf/namei.c linux/fs/udf/namei.c
@@ -344,9 +344,6 @@
Uint32 extoffset, elen, offset;
struct buffer_head *bh = NULL;
- *err = -EINVAL;
- if (!dir || !dir->i_nlink)
- return NULL;
sb = dir->i_sb;
if (dentry->d_name.len)
@@ -365,6 +362,7 @@
}
else if (dir->i_size != 0)
{
+ /* WTF??? */
*err = -ENOENT;
return NULL;
}
@@ -724,7 +722,7 @@
cfi.fileCharacteristics = FILE_DIRECTORY | FILE_PARENT;
udf_write_fi(&cfi, fi, &fibh, NULL, NULL);
udf_release_data(fibh.sbh);
- inode->i_mode = S_IFDIR | (mode & (S_IRWXUGO|S_ISVTX) & ~current->fs->umask);
+ inode->i_mode = S_IFDIR | mode;
if (dir->i_mode & S_ISGID)
inode->i_mode |= S_ISGID;
mark_inode_dirty(inode);
@@ -1165,9 +1163,6 @@
if (new_inode)
{
- retval = -EBUSY;
- if (!d_unhashed(new_dentry))
- goto end_rename;
retval = -ENOTEMPTY;
if (!empty_dir(new_inode))
goto end_rename;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)