Skip to content

Commit

Permalink
remove rfs type
Browse files Browse the repository at this point in the history
  • Loading branch information
rawdaGastan committed Oct 16, 2023
1 parent 839fe32 commit 65c5b9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 1 addition & 4 deletions pkg/flist/cleanup.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (f *flistModule) cleanUnusedMounts() error {

roTargets := make(map[int64]mountInfo)
for _, mount := range all.filter(withParentDir(f.ro)) {
if mount.FSType != fsTypeG8ufs && mount.FSType != fsTypeRfs {
if mount.FSType != fsTypeG8ufs {
// this mount type should not be under ro
// where all mounts are g8ufs.
continue
Expand All @@ -99,9 +99,6 @@ func (f *flistModule) cleanUnusedMounts() error {
case fsTypeG8ufs:
// this is a bind mount
info = mount.AsG8ufs()
case fsTypeRfs:
// this is a bind mount
info = mount.AsG8ufs()
case fsTypeOverlay:
// this is an overly mount, so g8ufs lives as a lower layer
// we get this from the list of mounts.
Expand Down
3 changes: 1 addition & 2 deletions pkg/flist/mounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
)

const (
fsTypeRfs = "fuse.rfs"
fsTypeG8ufs = "fuse.g8ufs"
fsTypeOverlay = "overlay"
)
Expand Down Expand Up @@ -117,7 +116,7 @@ func (f *flistModule) resolve(path string) (g8ufsInfo, error) {
return g8ufsInfo{}, err
}

if info.FSType == fsTypeG8ufs || info.FSType == fsTypeRfs {
if info.FSType == fsTypeG8ufs {
return info.AsG8ufs(), nil
} else if info.FSType == fsTypeOverlay {
overlay := info.AsOverlay()
Expand Down

0 comments on commit 65c5b9c

Please sign in to comment.