github.com/mckael/restic@v0.8.3/internal/fs/deviceid_windows.go (about)

     1  // +build windows
     2  
     3  package fs
     4  
     5  import (
     6  	"os"
     7  
     8  	"github.com/restic/restic/internal/errors"
     9  )
    10  
    11  // DeviceID extracts the device ID from an os.FileInfo object by casting it
    12  // to syscall.Stat_t
    13  func DeviceID(fi os.FileInfo) (deviceID uint64, err error) {
    14  	return 0, errors.New("Device IDs are not supported on Windows")
    15  }