/xfs

golang package for interacting with xfs filesystem features

Primary LanguageGoMIT LicenseMIT

xfs

godoc

golang package for interfacing with xfs filesystem features

Example Bulk Stat:

h, _ := xfs.NewBulkReq(".")
defer h.Release()

count := int64(0)
for {
	bstats, _ := h.Next()
	if len(bstats) == 0 {
        fmt.Println("Walked", count, "inodes")
		return
	}

	for _, bstat := range bstats {
		count++
		if bstat.Ino == 100 {
			fmt.Println("Found inode 100!")
		}
	}
}