minor
This commit is contained in:
@@ -54,7 +54,7 @@ func (dir *Dir) Attr(ctx context.Context, attr *fuse.Attr) error {
|
|||||||
attr.Inode = filer2.FullPath(dir.Path).AsInode()
|
attr.Inode = filer2.FullPath(dir.Path).AsInode()
|
||||||
attr.Mode = os.FileMode(dir.entry.Attributes.FileMode) | os.ModeDir
|
attr.Mode = os.FileMode(dir.entry.Attributes.FileMode) | os.ModeDir
|
||||||
attr.Mtime = time.Unix(dir.entry.Attributes.Mtime, 0)
|
attr.Mtime = time.Unix(dir.entry.Attributes.Mtime, 0)
|
||||||
attr.Ctime = time.Unix(dir.entry.Attributes.Crtime, 0)
|
attr.Crtime = time.Unix(dir.entry.Attributes.Crtime, 0)
|
||||||
attr.Gid = dir.entry.Attributes.Gid
|
attr.Gid = dir.entry.Attributes.Gid
|
||||||
attr.Uid = dir.entry.Attributes.Uid
|
attr.Uid = dir.entry.Attributes.Uid
|
||||||
|
|
||||||
@@ -221,7 +221,7 @@ func (dir *Dir) Lookup(ctx context.Context, req *fuse.LookupRequest, resp *fuse.
|
|||||||
resp.Attr.Inode = fullFilePath.AsInode()
|
resp.Attr.Inode = fullFilePath.AsInode()
|
||||||
resp.Attr.Valid = time.Second
|
resp.Attr.Valid = time.Second
|
||||||
resp.Attr.Mtime = time.Unix(entry.Attributes.Mtime, 0)
|
resp.Attr.Mtime = time.Unix(entry.Attributes.Mtime, 0)
|
||||||
resp.Attr.Ctime = time.Unix(entry.Attributes.Crtime, 0)
|
resp.Attr.Crtime = time.Unix(entry.Attributes.Crtime, 0)
|
||||||
resp.Attr.Mode = os.FileMode(entry.Attributes.FileMode)
|
resp.Attr.Mode = os.FileMode(entry.Attributes.FileMode)
|
||||||
resp.Attr.Gid = entry.Attributes.Gid
|
resp.Attr.Gid = entry.Attributes.Gid
|
||||||
resp.Attr.Uid = entry.Attributes.Uid
|
resp.Attr.Uid = entry.Attributes.Uid
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ func (c *commandBucketList) Do(args []string, commandEnv *CommandEnv, writer io.
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if resp.Entry.Attributes.Replication == "" {
|
if resp.Entry.Attributes.Replication == "" || resp.Entry.Attributes.Replication == "000" {
|
||||||
fmt.Fprintf(writer, " %s\n", resp.Entry.Name)
|
fmt.Fprintf(writer, " %s\n", resp.Entry.Name)
|
||||||
} else {
|
} else {
|
||||||
fmt.Fprintf(writer, " %s\t\t\treplication: %s\n", resp.Entry.Name, resp.Entry.Attributes.Replication)
|
fmt.Fprintf(writer, " %s\t\t\treplication: %s\n", resp.Entry.Name, resp.Entry.Attributes.Replication)
|
||||||
|
|||||||
Reference in New Issue
Block a user