mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
s3/vfs_tsmsm: remove unneeded cast to off_t
"off_t" is wrong on 32 bit systems anyhow ... Autobuild-User: Björn Jacke <bj@sernet.de> Autobuild-Date: Thu Nov 18 14:47:59 UTC 2010 on sn-devel-104
This commit is contained in:
parent
d5d08d3b50
commit
92d87e1f67
@ -161,7 +161,7 @@ static bool tsmsm_is_offline(struct vfs_handle_struct *handle,
|
||||
|
||||
/* if the file has more than FILE_IS_ONLINE_RATIO of blocks available,
|
||||
then assume it is not offline (it may not be 100%, as it could be sparse) */
|
||||
if (512 * (off_t)stbuf->st_ex_blocks >=
|
||||
if (512 * stbuf->st_ex_blocks >=
|
||||
stbuf->st_ex_size * tsmd->online_ratio) {
|
||||
DEBUG(10,("%s not offline: st_blocks=%llu st_size=%llu "
|
||||
"online_ratio=%.2f\n", path,
|
||||
@ -266,7 +266,7 @@ static bool tsmsm_aio_force(struct vfs_handle_struct *handle, struct files_struc
|
||||
DEBUG(10,("tsmsm_aio_force st_blocks=%llu st_size=%llu "
|
||||
"online_ratio=%.2f\n", (unsigned long long)sbuf.st_ex_blocks,
|
||||
(unsigned long long)sbuf.st_ex_size, tsmd->online_ratio));
|
||||
return !(512 * (off_t)sbuf.st_ex_blocks >=
|
||||
return !(512 * sbuf.st_ex_blocks >=
|
||||
sbuf.st_ex_size * tsmd->online_ratio);
|
||||
}
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user