]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commitdiff
ceph: add ceph_fsid_set helper
authorSage Weil <sage@newdream.net>
Thu, 19 Nov 2009 00:50:41 +0000 (16:50 -0800)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Mon, 14 Dec 2009 19:39:51 +0000 (11:39 -0800)
Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/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.
  */