]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/cephfs: Fix setxattr function. Pass value as character pointer
authorWido den Hollander <wido@42on.com>
Wed, 17 Dec 2014 13:01:44 +0000 (14:01 +0100)
committerWido den Hollander <wido@42on.com>
Wed, 17 Dec 2014 13:01:44 +0000 (14:01 +0100)
This passes the value of the xattr correctly and makes it work.

src/pybind/cephfs.py

index ece2c67af6fc8ccdc6ad27d7e8ba226e71cbb1d3..574846fdc017ac1b4520e2adc7e1454a4781b07a 100644 (file)
@@ -333,7 +333,7 @@ class LibCephFS(object):
                     self.cluster,
                     c_char_p(path),
                     c_char_p(name),
-                    c_void_p(value),
+                    c_char_p(value),
                     c_size_t(len(value)),
                     c_int(flags))
         if ret < 0: