]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: EINVAL from truncate causes osd to crash
authorDavid Zafman <david.zafman@inktank.com>
Fri, 14 Jun 2013 01:15:39 +0000 (18:15 -0700)
committerSage Weil <sage@inktank.com>
Fri, 14 Jun 2013 16:40:28 +0000 (09:40 -0700)
commitf1b6bd7988ab964c9167eff7bea51a49573f5175
tree81798d64260ba459296e6465f4f8b126fe1b5cf9
parentbcfbd0a3ffae6947464d930f636c8b35d1331e9d
osd: EINVAL from truncate causes osd to crash

Maximum object size is 100GB configurable with osd_max_object_size
Error EFBIG if attempt to WRITE/WRITEFULL/TRUNCATE beyond osd_max_object_size
Error EINVAL if length < 1 for WRITE/WRITEFULL/ZERO
Make ZERO beyond existing size a no-op

Fixes: #5252
Fixes: #5340
Signed-off-by: David Zafman <david.zafman@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
PendingReleaseNotes
src/common/config_opts.h
src/osd/ReplicatedPG.cc