[Ocfs2-tools-commits] mfasheh commits r528 - trunk/debugfs.ocfs2

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Thu Dec 30 17:38:31 CST 2004


Author: mfasheh
Date: 2004-12-30 17:38:29 -0600 (Thu, 30 Dec 2004)
New Revision: 528

Modified:
   trunk/debugfs.ocfs2/commands.c
   trunk/debugfs.ocfs2/dump.c
Log:
* update debugfs to print out fast symlink data.



Modified: trunk/debugfs.ocfs2/commands.c
===================================================================
--- trunk/debugfs.ocfs2/commands.c	2004-12-30 23:34:51 UTC (rev 527)
+++ trunk/debugfs.ocfs2/commands.c	2004-12-30 23:38:29 UTC (rev 528)
@@ -697,6 +697,8 @@
 		dump_local_alloc(out, &(inode->id2.i_lab));
 	else if ((inode->i_flags & OCFS2_CHAIN_FL))
 		ret = traverse_chains(gbls.fs, &(inode->id2.i_chain), out);
+	else if (S_ISLNK(inode->i_mode) && !inode->i_clusters)
+		ret = dump_fast_symlink(out, &(inode->id2.i_symlink));
 	else
 		ret = traverse_extents(gbls.fs, &(inode->id2.i_list), out);
 

Modified: trunk/debugfs.ocfs2/dump.c
===================================================================
--- trunk/debugfs.ocfs2/dump.c	2004-12-30 23:34:51 UTC (rev 527)
+++ trunk/debugfs.ocfs2/dump.c	2004-12-30 23:38:29 UTC (rev 528)
@@ -84,6 +84,17 @@
 }
 
 /*
+ * dump_fast_symlink()
+ *
+ */
+void dump_fast_symlink (FILE *out, char *link)
+{
+	fprintf(out, "\tFast Symlink Destination: %s\n", link);
+
+	return ;
+}
+
+/*
  * dump_inode()
  *
  */



More information about the Ocfs2-tools-commits mailing list