]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
fixed it to not spit out root, which is already there from mds boot
authoranwleung <anwleung@29311d96-e01e-0410-9327-a35deaab8ce9>
Thu, 15 Mar 2007 18:34:08 +0000 (18:34 +0000)
committeranwleung <anwleung@29311d96-e01e-0410-9327-a35deaab8ce9>
Thu, 15 Mar 2007 18:34:08 +0000 (18:34 +0000)
journal flush

git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1239 29311d96-e01e-0410-9327-a35deaab8ce9

branches/aleung/security1/ceph/mkdir_trace.pl

index bc27c33632f58ca80e8a0eac06e14f5c59d6a62c..b2d3aad543bbd219497f890a2b9d8f8984b5430e 100755 (executable)
@@ -51,10 +51,12 @@ for $file_handle(@files) {
                    else {
                        $dirpath = "$subdir";
                    }
-                   
-                   if (! $seen_paths{$dirpath}) {
-                       $seen_paths{$dirpath} = 1;
-                       print OUT "mkdir\n\/$dirpath\n493\n";
+                   #print OUT "dirpath=$dirpath\n";
+                   if ($dirpath) {
+                       if (! $seen_paths{$dirpath}) {
+                           $seen_paths{$dirpath} = 1;
+                           print OUT "mkdir\n\/$dirpath\n493\n";
+                       }
                    }
                }