]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: drop redefining map option warning
authorIlya Dryomov <idryomov@gmail.com>
Thu, 12 Mar 2015 11:27:32 +0000 (14:27 +0300)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 12 Mar 2015 11:27:32 +0000 (14:27 +0300)
For example:

    # ./rbd map -o share,noshare foo
    rbd: warning: redefining map option share: 'share' -> 'noshare'
    /dev/rbd0

mount(8) doesn't do this and it's a bit silly to begin with.  Drop this
in preparation for adding rbd default map options config option.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/rbd.cc

index 6f5457d1461f94c9e6c942422d8e25b63d996679..a53e8f4f2aa0d0cb3b3120c8bcccafa45091a792 100644 (file)
@@ -2356,11 +2356,6 @@ static string map_option_int_cb(const char *value_char)
 
 static void put_map_option(const string key, string val)
 {
-  map<string, string>::const_iterator it = map_options.find(key);
-  if (it != map_options.end()) {
-    cerr << "rbd: warning: redefining map option " << key << ": '"
-         << it->second << "' -> '" << val << "'" << std::endl;
-  }
   map_options[key] = val;
 }