mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
vfs_glusterfs: Add white space so vfs_glusterfs_pread_send and vfs_glusterfs_pwrite_send match.
These two functions are basically the same thing, so they should be formatted the same. Signed-off-by: Ira Cooper <ira@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
640ecbbcd0
commit
8d3b9009e5
@ -691,10 +691,10 @@ static struct tevent_req *vfs_gluster_pread_send(struct vfs_handle_struct
|
|||||||
tevent_req_error(req, EIO);
|
tevent_req_error(req, EIO);
|
||||||
return tevent_req_post(req, ev);
|
return tevent_req_post(req, ev);
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = glfs_pread_async(*(glfs_fd_t **)VFS_FETCH_FSP_EXTENSION(handle,
|
ret = glfs_pread_async(*(glfs_fd_t **)VFS_FETCH_FSP_EXTENSION(handle,
|
||||||
fsp), data, n, offset, 0, aio_glusterfs_done,
|
fsp), data, n, offset, 0, aio_glusterfs_done,
|
||||||
state);
|
state);
|
||||||
|
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
tevent_req_error(req, -ret);
|
tevent_req_error(req, -ret);
|
||||||
return tevent_req_post(req, ev);
|
return tevent_req_post(req, ev);
|
||||||
@ -739,6 +739,7 @@ static struct tevent_req *vfs_gluster_pwrite_send(struct vfs_handle_struct
|
|||||||
tevent_req_error(req, EIO);
|
tevent_req_error(req, EIO);
|
||||||
return tevent_req_post(req, ev);
|
return tevent_req_post(req, ev);
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = glfs_pwrite_async(*(glfs_fd_t **)VFS_FETCH_FSP_EXTENSION(handle,
|
ret = glfs_pwrite_async(*(glfs_fd_t **)VFS_FETCH_FSP_EXTENSION(handle,
|
||||||
fsp), data, n, offset, 0, aio_glusterfs_done,
|
fsp), data, n, offset, 0, aio_glusterfs_done,
|
||||||
state);
|
state);
|
||||||
@ -746,6 +747,7 @@ static struct tevent_req *vfs_gluster_pwrite_send(struct vfs_handle_struct
|
|||||||
tevent_req_error(req, -ret);
|
tevent_req_error(req, -ret);
|
||||||
return tevent_req_post(req, ev);
|
return tevent_req_post(req, ev);
|
||||||
}
|
}
|
||||||
|
|
||||||
return req;
|
return req;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user