]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: fix failure in quota size limitation when using samba 25110/head
authorTang Junhui <tangjunhui@sangfor.com>
Thu, 15 Nov 2018 07:16:44 +0000 (15:16 +0800)
committerJunhui Tang <tangjunhui@sangfor.com.cn>
Sun, 9 Dec 2018 02:08:28 +0000 (10:08 +0800)
commitc14ca19ed42cde552ec8d1f933aa209e891040e8
treef6c8c9e36cf6f518fd86cec078564b3fd25b05d0
parent578f7e082e98431dd4da732f9eeff59a971262ec
client: fix failure in quota size limitation when using samba

In samba, Client::_write may be called with the offset a
negative number, and use the f->pos as the real write offset,
in such condition, quota size can not limite the writes
enven it exceeds the size limitation.

Signed-off-by: Junhui Tang <tangjunhui@sangfor.com.cn>
Fixes: http://tracker.ceph.com/issues/37547
src/client/Client.cc