patch-2.1.77 linux/fs/ntfs/fs.c
Next file: linux/fs/ntfs/inode.c
Previous file: linux/fs/ntfs/dir.c
Back to the patch index
Back to the overall index
- Lines: 34
- Date:
Fri Jan 2 01:42:59 1998
- Orig file:
v2.1.76/linux/fs/ntfs/fs.c
- Orig date:
Sun Dec 21 16:17:45 1997
diff -u --recursive --new-file v2.1.76/linux/fs/ntfs/fs.c linux/fs/ntfs/fs.c
@@ -468,6 +468,9 @@
/* It's not a directory */
r->i_op=&ntfs_inode_operations_nobmap;
r->i_mode=S_IFREG|S_IRUGO;
+#ifdef CONFIG_NTFS_RW
+ r->i_mode|=S_IWUGO;
+#endif
r->i_mode &= ~vol->umask;
d_instantiate(d,r);
@@ -654,9 +657,12 @@
{
inode->i_op=can_mmap ? &ntfs_inode_operations :
&ntfs_inode_operations_nobmap;
- inode->i_mode=S_IFREG|S_IRUGO|S_IMMUTABLE;
inode->i_mode=S_IFREG|S_IRUGO;
}
+#ifdef CONFIG_NTFS_RW
+ if(!data || !data->compressed)
+ inode->i_mode|=S_IWUGO;
+#endif
inode->i_mode &= ~vol->umask;
}
@@ -873,7 +879,9 @@
unlock_super(sb);
ntfs_debug(DEBUG_OTHER, "unlock_super\n");
ntfs_read_super_vol:
+ #ifndef NTFS_IN_LINUX_KERNEL
ntfs_free(vol);
+ #endif
ntfs_read_super_dec:
ntfs_debug(DEBUG_OTHER, "read_super: done\n");
MOD_DEC_USE_COUNT;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov