~ubuntu-branches/ubuntu/quantal/gparted/quantal

« back to all changes in this revision

Viewing changes to src/FS_Info.cc

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2011-07-13 11:23:41 UTC
  • mfrom: (12.1.13 sid)
  • Revision ID: james.westby@ubuntu.com-20110713112341-k1lkdjkpkh1q2o7d
Tags: 0.8.1-1ubuntu1
* Merge from debian unstable.  Remaining changes:
  - run configure with --enable-libparted-dmraid
* dropped debian/patches/02_enable-libparted-dmraid-2.patch:
  - part of the 0.8.1 upstream release
* drop dh_autoreconf

Show diffs side-by-side

added added

removed removed

Lines of Context:
153
153
        return uuid ;
154
154
}
155
155
 
 
156
Glib::ustring FS_Info::get_path_by_uuid( const Glib::ustring & uuid )
 
157
{
 
158
        //Retrieve the path given the uuid
 
159
        Glib::ustring regexp = "^([^:]*):.*UUID=\"" + uuid + "\".*$" ;
 
160
        Glib::ustring path = Utils::regexp_label( fs_info_cache, regexp ) ;
 
161
 
 
162
        return path ;
 
163
}
 
164
 
 
165
Glib::ustring FS_Info::get_path_by_label( const Glib::ustring & label )
 
166
{
 
167
        //Retrieve the path given the label
 
168
        Glib::ustring regexp = "^([^:]*):.*LABEL=\"" + label + "\".*$" ;
 
169
        Glib::ustring path = Utils::regexp_label( fs_info_cache, regexp ) ;
 
170
 
 
171
        return path ;
 
172
}
 
173
 
156
174
}//GParted