~teejee2008/timeshift/trunk

« back to all changes in this revision

Viewing changes to src/Core/Subvolume.vala

  • Committer: Tony George
  • Date: 2017-01-15 10:52:02 UTC
  • Revision ID: tony.george.kol@gmail.com-20170115105202-yui2jxemjigzv635
BTRFS: Trusty: Fixed error while deleting snapshots; Skip option --commit-after if not supported;

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
 
89
89
                App.progress_text = _("Deleting subvolume")+ ": %s".printf(name);
90
90
                log_debug(App.progress_text);
 
91
 
 
92
                string options = App.use_option_raw ? "--commit-after" : "";
91
93
                
92
 
                cmd = "btrfs subvolume delete --commit-after '%s'".printf(path);
 
94
                cmd = "btrfs subvolume delete %s '%s'".printf(options, path);
93
95
                log_debug(cmd);
94
96
                ret_val = exec_sync(cmd, out std_out, out std_err);
95
97
                if (ret_val != 0){