adding functions needed by gluster-swift

These new functions are required to be used by gluster-swift

Change-Id: Ifb68f2b4494bf375feabb130831f9e076dc5b94a
Signed-off-by: Thiago da Silva <thiago@redhat.com>