diff options
author | Volker Lendecke <vl@samba.org> | 2010-11-11 16:29:33 +0100 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2010-11-14 10:24:02 +0000 |
commit | 36637a7ced4ac9f0a0846ba75b56ccdf2599ffea (patch) | |
tree | dec67dc716a112e29746eb5ead185753e506b9dd /source3/libsmb/libsmb_stat.c | |
parent | 52f252064817b4be4d45d9fdbb0ad07748a0f317 (diff) | |
download | samba-36637a7ced4ac9f0a0846ba75b56ccdf2599ffea.tar.gz |
s3: Convert cli_get_posix_fs_info() to cli_trans()
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Nov 14 10:24:02 UTC 2010 on sn-devel-104
Diffstat (limited to 'source3/libsmb/libsmb_stat.c')
-rw-r--r-- | source3/libsmb/libsmb_stat.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/source3/libsmb/libsmb_stat.c b/source3/libsmb/libsmb_stat.c index f34294e0c3e..9c613508eb4 100644 --- a/source3/libsmb/libsmb_stat.c +++ b/source3/libsmb/libsmb_stat.c @@ -411,17 +411,19 @@ SMBC_fstatvfs_ctx(SMBCCTX *context, uint64_t total_file_nodes; uint64_t free_file_nodes; uint64_t fs_identifier; + NTSTATUS status; /* Has UNIXCIFS. If POSIX filesystem info is available... */ - if (cli_get_posix_fs_info(cli, - &optimal_transfer_size, - &block_size, - &total_blocks, - &blocks_available, - &user_blocks_available, - &total_file_nodes, - &free_file_nodes, - &fs_identifier)) { + status = cli_get_posix_fs_info(cli, + &optimal_transfer_size, + &block_size, + &total_blocks, + &blocks_available, + &user_blocks_available, + &total_file_nodes, + &free_file_nodes, + &fs_identifier); + if (NT_STATUS_IS_OK(status)) { /* ... then what's provided here takes precedence. */ st->f_bsize = |