diff options
author | Zhou Zhengping <johnzzpcrystal@gmail.com> | 2017-03-31 00:42:46 +0800 |
---|---|---|
committer | Jeff Darcy <jeff@pl.atyp.us> | 2017-05-05 15:04:17 +0000 |
commit | fe83a4ae84dd4345d6e958219d5a1dc59ecb039d (patch) | |
tree | ee99ad6503e434e11fb9c85d0da38c7a26c9dc1b /xlators/encryption/crypt/src/atom.c | |
parent | fa10c8a3528b95dc575bfedd30bcd68cc2dff25b (diff) | |
download | glusterfs-fe83a4ae84dd4345d6e958219d5a1dc59ecb039d.tar.gz glusterfs-fe83a4ae84dd4345d6e958219d5a1dc59ecb039d.tar.xz glusterfs-fe83a4ae84dd4345d6e958219d5a1dc59ecb039d.zip |
coreutils: use coreutils instead of duplicate code
Change-Id: I0e442331d2bbb22ec18c37af87ab2a8852737c43
BUG: 1448265
Signed-off-by: Zhou Zhengping <johnzzpcrystal@gmail.com>
Reviewed-on: https://review.gluster.org/16975
Smoke: Gluster Build System <jenkins@build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Amar Tumballi <amarts@redhat.com>
Reviewed-by: Prashanth Pai <ppai@redhat.com>
Reviewed-by: Jeff Darcy <jeff@pl.atyp.us>
Diffstat (limited to 'xlators/encryption/crypt/src/atom.c')
-rw-r--r-- | xlators/encryption/crypt/src/atom.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/encryption/crypt/src/atom.c b/xlators/encryption/crypt/src/atom.c index 21d63e5d6d..6d7b351b37 100644 --- a/xlators/encryption/crypt/src/atom.c +++ b/xlators/encryption/crypt/src/atom.c @@ -502,7 +502,7 @@ static int32_t rmw_partial_block(call_frame_t *frame, #endif set_local_io_params_writev(frame, object, atom, atom->offset_at(frame, object), - iovec_get_size(partial, 1)); + iov_length(partial, 1)); /* * write the whole block to disk */ @@ -522,7 +522,7 @@ static int32_t rmw_partial_block(call_frame_t *frame, gf_log("crypt", GF_LOG_DEBUG, "submit partial block: %d bytes from %d offset", - (int)iovec_get_size(partial, 1), + (int)iov_length(partial, 1), (int)atom->offset_at(frame, object)); exit: return 0; |