autosnap: fix pathname

This commit is contained in:
Christian Schwarz 2017-09-01 16:45:56 +02:00
parent e048386cd5
commit fee2071514

View File

@ -68,7 +68,7 @@ func doAutosnap(ctx AutosnapContext, log Logger) (err error) {
hadError := false hadError := false
for _, fs := range filesystems { // optimization: use recursive snapshots / channel programs here for _, fs := range filesystems { // optimization: use recursive snapshots / channel programs here
log.Printf("snapshotting filesystem %s@%s", fs, snapname) log.Printf("snapshotting filesystem %s@%s", fs.ToString(), snapname)
err := zfs.ZFSSnapshot(fs, snapname, false) err := zfs.ZFSSnapshot(fs, snapname, false)
if err != nil { if err != nil {
log.Printf("error snapshotting %s: %s", fs, err) log.Printf("error snapshotting %s: %s", fs, err)