Whamcloud - gitweb
b=6285
authortappro <tappro>
Thu, 7 Jul 2005 12:21:56 +0000 (12:21 +0000)
committertappro <tappro>
Thu, 7 Jul 2005 12:21:56 +0000 (12:21 +0000)
- more debug info was added

lustre/smfs/dir.c
lustre/smfs/inode.c

index 397d70c..296973b 100644 (file)
@@ -61,7 +61,11 @@ static int smfs_create(struct inode *dir, struct dentry *dentry,
         int rc = 0;
         
         ENTRY;
-
+        
+        CDEBUG(D_INODE, "VFS Op:name=%.*s (%p),dir=%lu/%u\n",
+               dentry->d_name.len, dentry->d_name.name, dentry,
+               dir->i_ino, dir->i_generation);
+        
         LASSERT(cache_dir);
         LASSERT(cache_dir->i_op->create);
         
@@ -180,6 +184,10 @@ static int smfs_do_lookup (struct inode * dir,
 
         ENTRY;
         
+        CDEBUG(D_INODE, "VFS Op:name=%.*s (%p),dir=%lu/%u\n",
+               dentry->d_name.len, dentry->d_name.name, dentry,
+               dir->i_ino, dir->i_generation);
+
         if (!cache_dir)
                 RETURN(-ENOENT);
 
@@ -428,6 +436,10 @@ static int smfs_unlink(struct inode * dir, struct dentry *dentry)
         LASSERT(cache_dir->i_op->unlink);
         LASSERT(parent);
         
+        CDEBUG(D_INODE, "VFS Op:name=%.*s (%p),dir=%lu/%u\n",
+               dentry->d_name.len, dentry->d_name.name, dentry,
+               dir->i_ino, dir->i_generation);
+
         cache_parent = pre_smfs_dentry(NULL, parent, dentry->d_parent);
         cache_dentry = pre_smfs_dentry(cache_parent, cache_inode, dentry);
         if (!cache_dentry || !cache_parent) {
@@ -541,6 +553,11 @@ static int smfs_mkdir(struct inode *dir, struct dentry *dentry, int mode)
         LASSERT(cache_dir);
         LASSERT(parent);
         
+        CDEBUG(D_INODE, "VFS Op:name=%.*s (%p),dir=%lu/%u\n",
+               dentry->d_name.len, dentry->d_name.name, dentry,
+               dir->i_ino, dir->i_generation);
+
+        
         cache_parent = pre_smfs_dentry(NULL, parent, dentry->d_parent);
         cache_dentry = pre_smfs_dentry(cache_parent, NULL, dentry);
         if (!cache_parent || !cache_dentry) {
@@ -596,6 +613,10 @@ static int smfs_rmdir(struct inode *dir, struct dentry *dentry)
 
         ENTRY;
         
+        CDEBUG(D_INODE, "VFS Op:name=%.*s (%p),dir=%lu/%u\n",
+               dentry->d_name.len, dentry->d_name.name, dentry,
+               dir->i_ino, dir->i_generation);
+
         LASSERT(cache_dir);
         LASSERT(cache_dir->i_op->rmdir);
         LASSERT(parent);
index c6afa5d..475f5ac 100644 (file)
@@ -57,8 +57,10 @@ static void smfs_init_inode_info(struct inode *inode, void *opaque)
         LASSERT(inode->u.generic_ip);
               
         I2CI(inode) = cache_inode;
-        CDEBUG(D_INODE,"Init inode info #%lu (%p) icount %u\n", inode->i_ino, inode, 
-                        atomic_read(&cache_inode->i_count));
+        CDEBUG(D_INODE,"Init inode #%lu (%p) icount %u, i_nlink %u\n",
+                        inode->i_ino, inode, 
+                        atomic_read(&cache_inode->i_count),
+                        cache_inode->i_nlink);
         
         post_smfs_inode(inode, cache_inode);
         inode->i_nlink = cache_inode->i_nlink;