syncops: expose @flags in syncop_rmdir()
Change-Id: I9b73c1db728e4cb3948fc118cceb292b21d48b96 BUG: 1021686 Signed-off-by: Anand Avati <avati@redhat.com> Reviewed-on: http://review.gluster.org/6112 Reviewed-by: Amar Tumballi <amarts@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
This commit is contained in:
parent
d13bf457d4
commit
544dee895a
@ -1563,7 +1563,7 @@ retry:
|
||||
goto out;
|
||||
}
|
||||
|
||||
ret = syncop_rmdir (subvol, &loc);
|
||||
ret = syncop_rmdir (subvol, &loc, 0);
|
||||
|
||||
ESTALE_RETRY (ret, errno, reval, &loc, retry);
|
||||
|
||||
|
@ -680,7 +680,7 @@ glfs_h_unlink (struct glfs *fs, struct glfs_object *parent, const char *path)
|
||||
goto out;
|
||||
}
|
||||
} else {
|
||||
ret = syncop_rmdir (subvol, &loc);
|
||||
ret = syncop_rmdir (subvol, &loc, 0);
|
||||
if (ret != 0) {
|
||||
goto out;
|
||||
}
|
||||
|
@ -1702,12 +1702,12 @@ syncop_rmdir_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
|
||||
}
|
||||
|
||||
int
|
||||
syncop_rmdir (xlator_t *subvol, loc_t *loc)
|
||||
syncop_rmdir (xlator_t *subvol, loc_t *loc, int flags)
|
||||
{
|
||||
struct syncargs args = {0, };
|
||||
|
||||
SYNCOP (subvol, (&args), syncop_rmdir_cbk, subvol->fops->rmdir, loc,
|
||||
0, NULL);
|
||||
flags, NULL);
|
||||
|
||||
errno = args.op_errno;
|
||||
return args.op_ret;
|
||||
|
@ -382,7 +382,7 @@ int syncop_ftruncate (xlator_t *subvol, fd_t *fd, off_t offset);
|
||||
int syncop_truncate (xlator_t *subvol, loc_t *loc, off_t offset);
|
||||
|
||||
int syncop_unlink (xlator_t *subvol, loc_t *loc);
|
||||
int syncop_rmdir (xlator_t *subvol, loc_t *loc);
|
||||
int syncop_rmdir (xlator_t *subvol, loc_t *loc, int flags);
|
||||
|
||||
int syncop_fsync (xlator_t *subvol, fd_t *fd, int dataonly);
|
||||
int syncop_flush (xlator_t *subvol, fd_t *fd);
|
||||
|
Loading…
x
Reference in New Issue
Block a user