1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
package filer import ( "github.com/chrislusf/seaweedfs/weed/util" ) const ( HARD_LINK_MARKER = '\x01' ) type HardLinkId []byte // 16 bytes + 1 marker byte func NewHardLinkId() HardLinkId { bytes := append(util.RandomBytes(16), HARD_LINK_MARKER) return bytes }