]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: detect existing fs and duplicate name earlier 13471/head
authorPatrick Donnelly <pdonnell@redhat.com>
Fri, 17 Feb 2017 02:26:12 +0000 (21:26 -0500)
committerPatrick Donnelly <pdonnell@redhat.com>
Fri, 17 Feb 2017 02:34:42 +0000 (21:34 -0500)
commit848fd1f4af3c98e14dfb407f64a304c4a4a5e960
tree319d7476b9ffa878b315c83ac707dd63e0e15b21
parenta785b00be366f3bfc9d9236fd25cfad59970a40b
mon: detect existing fs and duplicate name earlier

Detecting creation of an equivalent fs was made impossible by
052c3d3f681017d56b5b0ee5cf6f65bffc952a4c, as an existing file system
will obviously have objects in its pool. This commit moves the pool with
objects check later and uses a more helpful errno (EEXIST) for the case
where a fs with the same name already exists (but uses different pools).

Fixes: http://tracker.ceph.com/issues/18964
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mon/MDSMonitor.cc