Skip to content

Commit

Permalink
cmd/gateway: replace links to external file systems with empty files (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijian-pro authored and SandyXSD committed Aug 31, 2023
1 parent 5efc71b commit fff2454
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pkg/gateway/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,20 @@ func (n *jfsObjects) ListObjects(ctx context.Context, bucket, prefix, marker, de
AccTime: fi.ModTime(),
}
}

// replace links to external file systems with empty files
if eno == syscall.ENOTSUP {
now := time.Now()
obj = minio.ObjectInfo{
Bucket: bucket,
Name: object,
ModTime: now,
Size: 0,
IsDir: false,
AccTime: now,
}
eno = 0
}
return obj, jfsToObjectErr(ctx, eno, bucket, object)
}

Expand Down

0 comments on commit fff2454

Please sign in to comment.