Skip to content

Commit

Permalink
Return geesefs version in a hidden extended attribute "geesefs"
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalif committed Apr 26, 2024
1 parent 8b88547 commit 51972d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/handles.go
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,9 @@ func (inode *Inode) RemoveXattr(name string) error {

func (inode *Inode) GetXattr(name string) ([]byte, error) {
inode.logFuse("GetXattr", name)
if name == "geesefs" {
return []byte(cfg.GEESEFS_VERSION), nil
}

inode.mu.Lock()
defer inode.mu.Unlock()
Expand Down

0 comments on commit 51972d0

Please sign in to comment.