X-Git-Url: https://git.camperquake.de/gitweb.cgi?p=time-slider.git;a=blobdiff_plain;f=usr%2Fshare%2Ftime-slider%2Flib%2Ftime_slider%2Fzfs.py.safe;h=1d4bc36547e10d556586d929a8d545c2a91126ce;hp=77b1150b71cb1e3d4f20badaa556c9f5581a4200;hb=bb5f597d37e6c9d9957f7eaf9b6310a3ec071651;hpb=d021224696e8524cab857c27370e33aeaf024130 diff --git a/usr/share/time-slider/lib/time_slider/zfs.py.safe b/usr/share/time-slider/lib/time_slider/zfs.py.safe index 77b1150..1d4bc36 100755 --- a/usr/share/time-slider/lib/time_slider/zfs.py.safe +++ b/usr/share/time-slider/lib/time_slider/zfs.py.safe @@ -1,4 +1,4 @@ -#!/usr/bin/python2.6 +#!/usr/bin/python2 # # CDDL HEADER START # @@ -661,11 +661,11 @@ class ReadableDataset: return outdata.rstrip() def set_user_property(self, prop, value): - cmd = [PFCMD, ZFSCMD, "set", "%s=%s" % (prop, value), self.name] + cmd = [ZFSCMD, "set", "%s=%s" % (prop, value), self.name] outdata,errdata = util.run_command(cmd) def unset_user_property(self, prop): - cmd = [PFCMD, ZFSCMD, "inherit", prop, self.name] + cmd = [ZFSCMD, "inherit", prop, self.name] outdata,errdata = util.run_command(cmd) class Snapshot(ReadableDataset): @@ -744,9 +744,9 @@ class Snapshot(ReadableDataset): if self.exists() == False: return if deferred == False: - cmd = [PFCMD, ZFSCMD, "destroy", self.name] + cmd = [ZFSCMD, "destroy", self.name] else: - cmd = [PFCMD, ZFSCMD, "destroy", "-d", self.name] + cmd = [ZFSCMD, "destroy", "-d", self.name] outdata,errdata = util.run_command(cmd) # Clear the global snapshot cache so that a rescan will be @@ -762,7 +762,7 @@ class Snapshot(ReadableDataset): if self.exists() == False: return - cmd = [PFCMD, ZFSCMD, "hold", tag, self.name] + cmd = [ZFSCMD, "hold", tag, self.name] outdata,errdata = util.run_command(cmd) def holds(self): @@ -792,7 +792,7 @@ class Snapshot(ReadableDataset): if self.exists() == False: return - cmd = [PFCMD, ZFSCMD, "release", tag, self.name] + cmd = [ZFSCMD, "release", tag, self.name] outdata,errdata = util.run_command(cmd) # Releasing the snapshot might cause it get automatically @@ -859,7 +859,7 @@ class ReadWritableDataset(ReadableDataset): Recursively snapshot childfren of this dataset. Default = False """ - cmd = [PFCMD, ZFSCMD, "snapshot"] + cmd = [ZFSCMD, "snapshot"] if recursive == True: cmd.append("-r") cmd.append("%s@%s" % (self.name, snaplabel))