Skip to content

Commit 086b6c0

Browse files
committed
cleanup
1 parent 4cc0847 commit 086b6c0

2 files changed

Lines changed: 0 additions & 34 deletions

File tree

fstree/group.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,6 @@ func (n *groupNode) Lookup(ctx context.Context, name string, out *fuse.EntryOut)
140140
out.Uid = st.Uid
141141
out.Gid = st.Gid
142142
out.Blksize = uint32(st.Blksize)
143-
144-
// Set gen as a workaround for ino collisions when using loopback nodes. See
145-
// https://github.com/hanwen/go-fuse/issues/592#issuecomment-3650851207
146-
// attrs.Gen = n.gen.Add(1)
147143
}
148144

149145
repositoryNode, err := newRepositoryNodeFromSource(ctx, repository, n.param)

fstree/repository.go

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,12 @@ type repositorySymlinkNode struct {
2121
source types.RepositorySource
2222
}
2323

24-
// type repositoryLoopbackNode struct {
25-
// *fs.LoopbackNode
26-
// param *FSParam
27-
28-
// source types.RepositorySource
29-
// }
30-
3124
// Ensure we are implementing the NodeReadlinker interface
3225
var _ = (fs.NodeReadlinker)((*repositorySymlinkNode)(nil))
3326

3427
// Ensure we are implementing the NodeGetattrer interface
3528
var _ = (fs.NodeGetattrer)((*repositorySymlinkNode)(nil))
3629

37-
// Ensure we are implementing the NodeGetattrer interface
38-
// var _ = (fs.NodeWrapChilder)((*repositoryLoopbackNode)(nil))
39-
4030
func newRepositoryNodeFromSource(ctx context.Context, source types.RepositorySource, param *FSParam) (fs.InodeEmbedder, error) {
4131
if param.UseSymlinks {
4232
return &repositorySymlinkNode{
@@ -48,17 +38,6 @@ func newRepositoryNodeFromSource(ctx context.Context, source types.RepositorySou
4838
if err != nil {
4939
return nil, fmt.Errorf("failed to fetch local repository path: %w", err)
5040
}
51-
// var st syscall.Stat_t
52-
// err := syscall.Stat(localRepositoryPath, &st)
53-
// rootData := &fs.LoopbackRoot{
54-
// Path: localRepositoryPath,
55-
// Dev: st.Dev,
56-
// }
57-
// rootNode := &fs.LoopbackNode{
58-
// RootData: rootData,
59-
// }
60-
// rootData.RootNode = rootNode
61-
// return rootNode, nil
6241
return fs.NewLoopbackRoot(localRepositoryPath)
6342
}
6443
}
@@ -85,12 +64,3 @@ func (n *repositorySymlinkNode) Getattr(ctx context.Context, fh fs.FileHandle, o
8564
out.Ctime = uint64(n.source.GetLastModified().Unix())
8665
return 0
8766
}
88-
89-
// func (n *repositoryLoopbackNode) WrapChild(ctx context.Context, ops fs.InodeEmbedder) fs.InodeEmbedder {
90-
// return &repositoryLoopbackNode{
91-
// LoopbackNode: ops.(*fs.LoopbackNode),
92-
93-
// param: n.param,
94-
// source: n.source,
95-
// }
96-
// }

0 commit comments

Comments
 (0)