]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- stick to original function names 61/head
authorArvin Schnell <aschnell@suse.de>
Wed, 2 Apr 2014 16:49:06 +0000 (18:49 +0200)
committerArvin Schnell <aschnell@suse.de>
Wed, 2 Apr 2014 16:49:06 +0000 (18:49 +0200)
snapper/Btrfs.cc

index e69626b3734e6a628ae18fef1ecd966fa4c9e247..55be44d371401025e8205a6eaae26f4592ab880f 100644 (file)
@@ -1325,13 +1325,13 @@ namespace snapper
            mnt_reset_table(table);
        }
 
-       void load()
+       void parse_fstab()
        {
            if (mnt_table_parse_fstab(table, "/etc/fstab") != 0)
                throw runtime_error("mnt_table_parse_fstab failed");
        }
 
-       void save()
+       void replace_file()
        {
            if (mnt_table_replace_file(table, "/etc/fstab") != 0)
                throw runtime_error("mnt_table_replace_file failed");
@@ -1369,7 +1369,7 @@ namespace snapper
        string subvol_option = get_subvolume(infos_dir.fd(), id);
 
        MntTable mnt_table;
-       mnt_table.load();
+       mnt_table.parse_fstab();
 
        libmnt_fs* root = mnt_table.find_target(subvolume, MNT_ITER_FORWARD);
        if (!root)
@@ -1389,7 +1389,7 @@ namespace snapper
        free(options);
 
        mnt_table.add_fs(snapshots);
-       mnt_table.save();
+       mnt_table.replace_file();
     }
 
 
@@ -1397,7 +1397,7 @@ namespace snapper
     Btrfs::removeFromFstab() const
     {
        MntTable mnt_table;
-       mnt_table.load();
+       mnt_table.parse_fstab();
 
        string mountpoint = (subvolume == "/" ? "" : subvolume) +  "/.snapshots";
        libmnt_fs* snapshots = mnt_table.find_target(mountpoint, MNT_ITER_FORWARD);
@@ -1405,7 +1405,7 @@ namespace snapper
            return;
 
        mnt_table.remove_fs(snapshots);
-       mnt_table.save();
+       mnt_table.replace_file();
     }
 
 #endif