}
/* Only change if needed. */
- if (allocation_size != get_file_size_stat(&smb_fname->st)) {
+ if (allocation_size !=
+ SMB_VFS_GET_ALLOC_SIZE(conn, new_fsp, &new_fsp->fsp_name->st))
+ {
if (vfs_allocate_file_space(fsp, allocation_size) == -1) {
return map_nt_error_from_unix(errno);
}
}
/* Only change if needed. */
- if (allocation_size != get_file_size_stat(&smb_fname->st)) {
+ if (allocation_size !=
+ SMB_VFS_GET_ALLOC_SIZE(conn, new_fsp, &new_fsp->fsp_name->st))
+ {
if (vfs_allocate_file_space(new_fsp, allocation_size) == -1) {
status = map_nt_error_from_unix(errno);
close_file_free(req, &new_fsp, NORMAL_CLOSE);