]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Merge pull request #13587 from yanghonggang/master
authorJohn Spray <jspray@redhat.com>
Sat, 15 Apr 2017 18:45:54 +0000 (19:45 +0100)
committerGitHub <noreply@github.com>
Sat, 15 Apr 2017 18:45:54 +0000 (19:45 +0100)
cephfs: fix write_buf's _len overflow problem

Reviewed-by: John Spray <john.spray@redhat.com>
1  2 
src/common/config_opts.h
src/mds/Server.cc
src/osdc/Journaler.cc
src/osdc/Journaler.h

index 9e6a1448ab3a70a140aedd20fd89cb51d8070f32,5e6f32b14f9c0900fdcd1a6b3a5bcb964394adfd..ae6fdf2ccb3863ece2ca7cdd16c6360b138d037d
@@@ -489,8 -481,12 +489,10 @@@ OPTION(journaler_allow_split_entries, O
  OPTION(journaler_write_head_interval, OPT_INT, 15)
  OPTION(journaler_prefetch_periods, OPT_INT, 10)   // * journal object size
  OPTION(journaler_prezero_periods, OPT_INT, 5)     // * journal object size
 -OPTION(journaler_batch_interval, OPT_DOUBLE, .001)   // seconds.. max add latency we artificially incur
 -OPTION(journaler_batch_max, OPT_U64, 0)  // max bytes we'll delay flushing; disable, for now....
  OPTION(mds_data, OPT_STR, "/var/lib/ceph/mds/$cluster-$id")
  OPTION(mds_max_file_size, OPT_U64, 1ULL << 40) // Used when creating new CephFS. Change with 'ceph mds set max_file_size <size>' afterwards
+ // max xattr kv pairs size for each dir/file
+ OPTION(mds_max_xattr_pairs_size, OPT_U32, 64 << 10)
  OPTION(mds_cache_size, OPT_INT, 100000)
  OPTION(mds_cache_mid, OPT_FLOAT, .7)
  OPTION(mds_max_file_recover, OPT_U32, 32)
Simple merge
Simple merge
index 26a09a7aeda1c0ecf171a5e6a8eba5078d174850,df2cadfcca8abbb1fc370d9e3cdb3592e2964749..12708efdba10d40a6818dbb092c93eecdf0c0bc3
@@@ -386,9 -397,10 +396,10 @@@ public
      stream_format(-1), journal_stream(-1),
      magic(mag),
      objecter(obj), filer(objecter, f), logger(l), logger_key_lat(lkey),
 -    timer(tim), delay_flush_event(0),
 +    delay_flush_event(0),
      state(STATE_UNDEF), error(0),
      prezeroing_pos(0), prezero_pos(0), write_pos(0), flush_pos(0), safe_pos(0),
+     write_buf_throttle(cct, "write_buf_throttle", UINT_MAX - (UINT_MAX >> 3)),
      waiting_for_zero(false),
      read_pos(0), requested_pos(0), received_pos(0),
      fetch_len(0), temp_fetch_len(0),