[gparted] Improve code comments for reading volume labels



commit 370c084947189febe95b4e591fe56016d63c8b43
Author: Curtis Gedak <gedakc gmail com>
Date:   Tue Nov 1 13:13:28 2011 -0600

    Improve code comments for reading volume labels

 src/GParted_Core.cc |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/GParted_Core.cc b/src/GParted_Core.cc
index 4469a38..e343a0a 100644
--- a/src/GParted_Core.cc
+++ b/src/GParted_Core.cc
@@ -995,9 +995,10 @@ void GParted_Core::set_device_partitions( Device & device )
 				break;
 		}
 
-		//Retrieve file system label
+		//Avoid reading additional file system information if there is no path
 		if ( partition_temp .get_path() != "" )
 		{
+			//Retrieve file system label
 			read_label( partition_temp ) ;
 			if ( partition_temp .label .empty() )
 			{



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]