github.com/mhilton/juju-juju@v0.0.0-20150901100907-a94dd2c73455/storage/looputil/inode_linux.go (about)

     1  // Copyright 2015 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package looputil
     5  
     6  import (
     7  	"os"
     8  	"syscall"
     9  )
    10  
    11  func fileInode(info os.FileInfo) uint64 {
    12  	return info.Sys().(*syscall.Stat_t).Ino
    13  }