From 5a5c7f31e0d49aa9883fb674689c2614bdf69cd9 Mon Sep 17 00:00:00 2001 From: anwleung Date: Thu, 15 Mar 2007 18:34:08 +0000 Subject: [PATCH] fixed it to not spit out root, which is already there from mds boot 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 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/branches/aleung/security1/ceph/mkdir_trace.pl b/branches/aleung/security1/ceph/mkdir_trace.pl index bc27c33632f58..b2d3aad543bbd 100755 --- a/branches/aleung/security1/ceph/mkdir_trace.pl +++ b/branches/aleung/security1/ceph/mkdir_trace.pl @@ -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"; + } } } -- 2.39.5