mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-09-30 02:09:02 +00:00
Fixed a bug - issue#5
This commit is contained in:
parent
1d1e8f3e7d
commit
5fd33405af
@ -425,6 +425,7 @@ bool convert_header_to_stat(const char* path, headers_t& meta, struct stat* pst,
|
|||||||
if(S_ISREG(pst->st_mode)){
|
if(S_ISREG(pst->st_mode)){
|
||||||
pst->st_blocks = get_blocks(pst->st_size);
|
pst->st_blocks = get_blocks(pst->st_size);
|
||||||
}
|
}
|
||||||
|
pst->st_blksize = 4096;
|
||||||
|
|
||||||
// mtime
|
// mtime
|
||||||
pst->st_mtime = get_mtime(meta);
|
pst->st_mtime = get_mtime(meta);
|
||||||
|
@ -708,6 +708,8 @@ static int s3fs_getattr(const char* path, struct stat* stbuf)
|
|||||||
}
|
}
|
||||||
FdManager::get()->Close(ent);
|
FdManager::get()->Close(ent);
|
||||||
}
|
}
|
||||||
|
stbuf->st_blksize = 4096;
|
||||||
|
stbuf->st_blocks = get_blocks(stbuf->st_size);
|
||||||
}
|
}
|
||||||
FPRNINFO("[path=%s] uid=%u, gid=%u, mode=%04o", path, (unsigned int)(stbuf->st_uid), (unsigned int)(stbuf->st_gid), stbuf->st_mode);
|
FPRNINFO("[path=%s] uid=%u, gid=%u, mode=%04o", path, (unsigned int)(stbuf->st_uid), (unsigned int)(stbuf->st_gid), stbuf->st_mode);
|
||||||
S3FS_MALLOCTRIM(0);
|
S3FS_MALLOCTRIM(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user