patch-2.1.131 linux/fs/umsdos/inode.c

Next file: linux/fs/umsdos/namei.c
Previous file: linux/fs/umsdos/dir.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.130/linux/fs/umsdos/inode.c linux/fs/umsdos/inode.c
@@ -60,6 +60,7 @@
 			" Notify jacques@solucorp.qc.ca\n");
 	}
 
+	inode->u.umsdos_i.i_patched = 0;
 	fat_put_inode (inode);
 }
 
@@ -125,15 +126,6 @@
 }
 
 
-/*
- * Tells if an Umsdos inode has been "patched" once.
- * Return != 0 if so.
- */
-int umsdos_isinit (struct inode *inode)
-{
-	return 0; /* inode->u.umsdos_i.i_emd_owner != 0; */
-}
-
 
 /*
  * Connect the proper tables in the inode and add some info.
@@ -200,7 +192,7 @@
  */
 void UMSDOS_read_inode (struct inode *inode)
 {
-	PRINTK ((KERN_DEBUG "UMSDOS_read_inode %p ino = %lu ",
+	Printk ((KERN_DEBUG "UMSDOS_read_inode %p ino = %lu ",
 		inode, inode->i_ino));
 	msdos_read_inode (inode);
 
@@ -235,8 +227,8 @@
 	struct file filp;
 	struct umsdos_dirent entry;
 
-Printk(("UMSDOS_notify_change: entering for %s/%s\n",
-dentry->d_parent->d_name.name, dentry->d_name.name));
+Printk(("UMSDOS_notify_change: entering for %s/%s (%d)\n",
+dentry->d_parent->d_name.name, dentry->d_name.name, inode->u.umsdos_i.i_patched));
 
 	ret = inode_change_ok (inode, attr);
 	if (ret) {
@@ -348,7 +340,8 @@
 	 * But it has the side effect to re"dirt" the inode.
 	 */
 /*      
- * internal_notify_change (inode, &newattrs);
+ * UMSDOS_notify_change (inode, &newattrs);
+
  * inode->i_state &= ~I_DIRTY; / * FIXME: this doesn't work.  We need to remove ourselves from list on dirty inodes. /mn/ */
 }
 
@@ -385,7 +378,7 @@
 	if (!res)
 		goto out_fail;
 
-	printk (KERN_INFO "UMSDOS dentry-Beta 0.83 "
+	printk (KERN_INFO "UMSDOS dentry-pre 0.84 "
 		"(compatibility level %d.%d, fast msdos)\n", 
 		UMSDOS_VERSION, UMSDOS_RELEASE);
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov