Filter readonly mount points in DiskUsageCounter (#297405)
authorMichael Andres <ma@suse.de>
Thu, 30 Aug 2007 16:17:12 +0000 (16:17 +0000)
committerMichael Andres <ma@suse.de>
Thu, 30 Aug 2007 16:17:12 +0000 (16:17 +0000)
zypp/DiskUsageCounter.cc

index 6458777..def5cd9 100644 (file)
@@ -277,6 +277,10 @@ namespace zypp
                break;
              }
            }
+            if ( ro ) {
+             DBG << "Filter ro mount point : " << l << std::endl;
+             continue;
+           }
 
            //
            // statvfs (full path!) and get the data
@@ -304,6 +308,6 @@ namespace zypp
     str << "dir:[" << obj.dir << "] [ bs: " << obj.block_size << " ts: " << obj.total_size << "]" << std::endl;
     return str;
   }
-  
+
 } // namespace zypp
 ///////////////////////////////////////////////////////////////////