syncop: fix symlink param

make syncop_symlink() accept 'const char *linkname' instead of
'char *linkname'

Change-Id: I7751d552e4a4cc6e8b8e587b9e520213f4e11b45
BUG: 839950
Signed-off-by: Anand Avati <avati@redhat.com>
Reviewed-on: http://review.gluster.org/4020
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Amar Tumballi <amarts@redhat.com>
This commit is contained in:
Anand Avati 2012-10-02 15:07:01 -07:00
parent 5f423c68a1
commit 43514de5c0
2 changed files with 3 additions and 2 deletions

View File

@ -1465,7 +1465,7 @@ syncop_symlink_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
}
int
syncop_symlink (xlator_t *subvol, loc_t *loc, char *newpath, dict_t *dict)
syncop_symlink (xlator_t *subvol, loc_t *loc, const char *newpath, dict_t *dict)
{
struct syncargs args = {0, };

View File

@ -253,7 +253,8 @@ int syncop_flush (xlator_t *subvol, fd_t *fd);
int syncop_fstat (xlator_t *subvol, fd_t *fd, struct iatt *stbuf);
int syncop_stat (xlator_t *subvol, loc_t *loc, struct iatt *stbuf);
int syncop_symlink (xlator_t *subvol, loc_t *loc, char *newpath, dict_t *dict);
int syncop_symlink (xlator_t *subvol, loc_t *loc, const char *newpath,
dict_t *dict);
int syncop_readlink (xlator_t *subvol, loc_t *loc, char **buffer, size_t size);
int syncop_mknod (xlator_t *subvol, loc_t *loc, mode_t mode, dev_t rdev,
dict_t *dict);