patch-2.4.6 linux/fs/udf/ialloc.c
Next file: linux/fs/udf/inode.c
Previous file: linux/fs/udf/fsync.c
Back to the patch index
Back to the overall index
- Lines: 40
- Date:
Mon Jul 2 14:10:02 2001
- Orig file:
v2.4.5/linux/fs/udf/ialloc.c
- Orig date:
Fri Nov 17 11:35:27 2000
diff -u --recursive --new-file v2.4.5/linux/fs/udf/ialloc.c linux/fs/udf/ialloc.c
@@ -7,7 +7,7 @@
* CONTACTS
* E-mail regarding any portion of the Linux UDF file system should be
* directed to the development team mailing list (run by majordomo):
- * linux_udf@hootie.lvld.hp.com
+ * linux_udf@hpesjro.fc.hp.com
*
* COPYRIGHT
* This file is distributed under the terms of the GNU General Public
@@ -79,6 +79,7 @@
sb = dir->i_sb;
inode = new_inode(sb);
+
if (!inode)
{
*err = -ENOMEM;
@@ -114,7 +115,8 @@
}
inode->i_mode = mode;
inode->i_uid = current->fsuid;
- if (dir->i_mode & S_ISGID) {
+ if (dir->i_mode & S_ISGID)
+ {
inode->i_gid = dir->i_gid;
if (S_ISDIR(mode))
mode |= S_ISGID;
@@ -142,8 +144,10 @@
UDF_I_ALLOCTYPE(inode) = ICB_FLAG_AD_SHORT;
else
UDF_I_ALLOCTYPE(inode) = ICB_FLAG_AD_LONG;
- inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME;
- UDF_I_UMTIME(inode) = UDF_I_UATIME(inode) = UDF_I_UCTIME(inode) = CURRENT_UTIME;
+ inode->i_mtime = inode->i_atime = inode->i_ctime =
+ UDF_I_CRTIME(inode) = CURRENT_TIME;
+ UDF_I_UMTIME(inode) = UDF_I_UCTIME(inode) =
+ UDF_I_UCRTIME(inode) = CURRENT_UTIME;
UDF_I_NEW_INODE(inode) = 1;
insert_inode_hash(inode);
mark_inode_dirty(inode);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)