]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: Update default FS name 2054/head
authorJohn Spray <john.spray@redhat.com>
Fri, 13 Jun 2014 07:41:59 +0000 (08:41 +0100)
committerJohn Spray <john.spray@redhat.com>
Tue, 1 Jul 2014 17:40:26 +0000 (18:40 +0100)
From 'default' to 'cephfs' so that it looks
at least vaguely meaningful.

Signed-off-by: John Spray <john.spray@redhat.com>
qa/workunits/cephtool/test.sh
src/mds/MDSMap.h
src/mon/MDSMonitor.cc
src/vstart.sh

index 5eeb6304ba5a0455b1e0c5e5e336be1bf6e71a92..614d2cbb1d7ac0acb372a02be5143c10c5d3b56f 100755 (executable)
@@ -296,7 +296,7 @@ function test_mon_mds()
 {
   ceph osd pool create fs_data 10
   ceph osd pool create fs_metadata 10
-  ceph fs new default fs_metadata fs_data
+  ceph fs new cephfs fs_metadata fs_data
 
   # Check for default crash_replay_interval set automatically in 'fs new'
   ceph osd dump | grep fs_data > $TMPFILE
@@ -365,7 +365,7 @@ function test_mon_mds()
   metadata_poolnum=$(ceph osd dump | grep 'pool.*fs_metadata' | awk '{print $2;}')
   set +e
 
-  ceph fs rm default --yes-i-really-mean-it
+  ceph fs rm cephfs --yes-i-really-mean-it
 
   ceph mds newfs $metadata_poolnum $ec_poolnum --yes-i-really-mean-it 2>$TMPFILE
   check_response 'erasure-code' $? 22
index 1693e3aa8182531c40d1034878da59af75d5ea64..6923fa3c425860930f4842f71f8d7fabdb0e09fa 100644 (file)
@@ -71,6 +71,8 @@ extern CompatSet get_mdsmap_compat_set_base(); // pre v0.20
 #define MDS_FEATURE_INCOMPAT_INLINE CompatSet::Feature(7, "mds uses inline data")
 #define MDS_FEATURE_INCOMPAT_NOANCHOR CompatSet::Feature(8, "no anchor table")
 
+#define MDS_FS_NAME_DEFAULT "cephfs"
+
 class MDSMap {
 public:
   // mds states
@@ -193,7 +195,7 @@ public:
 
 public:
   MDSMap() 
-    : epoch(0), enabled(false), fs_name("default"),
+    : epoch(0), enabled(false), fs_name(MDS_FS_NAME_DEFAULT),
       flags(0), last_failure(0),
       last_failure_osd_epoch(0),
       tableserver(0), root(0),
index b8be6ea691c04d17e4d7595d35980998c0162e6b..689f70a07d5069fc573f3e417d524fab2af9be10 100644 (file)
@@ -908,8 +908,8 @@ bool MDSMonitor::management_command(
 {
   if (prefix == "mds newfs") {
     /* Legacy `newfs` command, takes pool numbers instead of
-     * names, assumes fs name to be 'default', and can
-     * overwrite existing filesystem settings */
+     * names, assumes fs name to be MDS_FS_NAME_DEFAULT, and
+     * can overwrite existing filesystem settings */
     MDSMap newmap;
     int64_t metadata, data;
 
@@ -966,7 +966,7 @@ bool MDSMonitor::management_command(
       newmap.inc = pending_mdsmap.inc;
       pending_mdsmap = newmap;
       pending_mdsmap.epoch = mdsmap.epoch + 1;
-      create_new_fs(pending_mdsmap, "default", metadata, data);
+      create_new_fs(pending_mdsmap, MDS_FS_NAME_DEFAULT, metadata, data);
       ss << "new fs with metadata pool " << metadata << " and data pool " << data;
       r = 0;
       return true;
index 7b1ff2644f9a65f0812d98223b71cdd3ac5dbab2..58cff8f9e862bb6d5f72289233add7c87e0997d2 100755 (executable)
@@ -536,7 +536,7 @@ EOF
         echo $cmd
         $cmd
 
-        cmd="$CEPH_ADM fs new default cephfs_metadata cephfs_data"
+        cmd="$CEPH_ADM fs new cephfs cephfs_metadata cephfs_data"
         echo $cmd
         $cmd
        fi