[gparted] Improve code comments for reading volume labels
- From: Curtis Gedak <gedakc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Improve code comments for reading volume labels
- Date: Tue, 1 Nov 2011 19:13:45 +0000 (UTC)
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]