Skip to content

golang package for interacting with xfs filesystem features

License

Notifications You must be signed in to change notification settings

benmcclelland/xfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!")
		}
	}
}

About

golang package for interacting with xfs filesystem features

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages