]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
add ceph_fsid_set helper
authorSage Weil <sage@newdream.net>
Thu, 19 Nov 2009 00:51:24 +0000 (16:51 -0800)
committerSage Weil <sage@newdream.net>
Thu, 19 Nov 2009 17:46:08 +0000 (09:46 -0800)
src/include/rados.h

index 12bfb2f7c27577c746994f84d73f16877c07c9db..9a190e077f1ca8d0b7e888fef71e18cb83e2710d 100644 (file)
@@ -21,6 +21,12 @@ static inline int ceph_fsid_compare(const struct ceph_fsid *a,
        return memcmp(a, b, sizeof(*a));
 }
 
+static inline void ceph_fsid_set(struct ceph_fsid *d,
+                                const struct ceph_fsid *s)
+{
+       memcpy(d, s, sizeof(*d));
+}
+
 /*
  * ino, object, etc.
  */