mirror of
https://github.com/tuna/tunasync.git
synced 2025-04-20 20:22:46 +00:00
Mock btrfs hook in non linux platforms like darwin
This commit is contained in:
parent
75ee481cfa
commit
5a9c6b9020
@ -1,3 +1,5 @@
|
|||||||
|
// +build linux
|
||||||
|
|
||||||
package worker
|
package worker
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
30
worker/btrfs_snapshot_hook_nolinux.go
Normal file
30
worker/btrfs_snapshot_hook_nolinux.go
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
// +build !linux
|
||||||
|
|
||||||
|
package worker
|
||||||
|
|
||||||
|
type btrfsSnapshotHook struct {
|
||||||
|
}
|
||||||
|
|
||||||
|
func newBtrfsSnapshotHook(provider mirrorProvider, snapshotPath string, mirror mirrorConfig) *btrfsSnapshotHook {
|
||||||
|
return &btrfsSnapshotHook{}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (h *btrfsSnapshotHook) postExec() error {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (h *btrfsSnapshotHook) postFail() error {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (h *btrfsSnapshotHook) postSuccess() error {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (h *btrfsSnapshotHook) preExec() error {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (h *btrfsSnapshotHook) preJob() error {
|
||||||
|
return nil
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user