]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commitdiff
ceph: fix debugfs entry, simplify fsid checks
authorSage Weil <sage@newdream.net>
Fri, 20 Nov 2009 00:06:32 +0000 (16:06 -0800)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Mon, 14 Dec 2009 19:41:53 +0000 (11:41 -0800)
We may first learn our fsid from any of the mon, osd, or mds maps
(whichever the monitor sends first).  Consolidate checks in a single
helper.  Initialize the client debugfs entry then, since we need the
fsid (and global_id) for the directory name.

Also remove dead mount code.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/rados.h

index 9a190e077f1ca8d0b7e888fef71e18cb83e2710d..12bfb2f7c27577c746994f84d73f16877c07c9db 100644 (file)
@@ -21,12 +21,6 @@ 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.
  */