Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fdabb7cbbe | |||
| 775d8758ef | |||
| 31c979b290 | |||
| 5fd33405af |
@ -20,7 +20,7 @@
|
||||
dnl Process this file with autoconf to produce a configure script.
|
||||
|
||||
AC_PREREQ(2.59)
|
||||
AC_INIT(s3fs, 1.74)
|
||||
AC_INIT(s3fs, 1.76)
|
||||
|
||||
AC_CANONICAL_SYSTEM
|
||||
AM_INIT_AUTOMAKE()
|
||||
|
||||
@ -425,6 +425,7 @@ bool convert_header_to_stat(const char* path, headers_t& meta, struct stat* pst,
|
||||
if(S_ISREG(pst->st_mode)){
|
||||
pst->st_blocks = get_blocks(pst->st_size);
|
||||
}
|
||||
pst->st_blksize = 4096;
|
||||
|
||||
// mtime
|
||||
pst->st_mtime = get_mtime(meta);
|
||||
|
||||
@ -708,6 +708,8 @@ static int s3fs_getattr(const char* path, struct stat* stbuf)
|
||||
}
|
||||
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);
|
||||
S3FS_MALLOCTRIM(0);
|
||||
|
||||
Reference in New Issue
Block a user