]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd: only set STRIPINGV2 feature when needed 238/head
authorJosh Durgin <josh.durgin@inktank.com>
Tue, 23 Apr 2013 16:18:30 +0000 (09:18 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Tue, 23 Apr 2013 18:33:18 +0000 (11:33 -0700)
commitaa37726b8d43d08b495d55dc2aef93854e9539c5
tree54306715b8717a7533e17ec5194249d8d17a181e
parent0e2266dba912cde2c4a86ba7055c8bec3a5bc1a5
rbd: only set STRIPINGV2 feature when needed

Only set the STRIPINGV2 feature if the striping parameters are non-default.
Specifically, fix the case where the passed-in size and count are == 0.

Fixes: #4710
Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit 5926ffa576e9477324ca00eaec731a224195e7db)

Conflicts:

src/rbd.cc
src/rbd.cc