]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/filestore: add sanity check for stat() syscall 8596/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 14 Apr 2016 08:43:22 +0000 (16:43 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Thu, 14 Apr 2016 14:40:08 +0000 (22:40 +0800)
commit90491ddcbb522c2c9387cf27848adda4e99e1540
treec31c5fb8ac3e9b4d39c0a1c3ccce544f6f36f355
parent9abd1815e5c32f3d3fac34aa76ad237967e9bf8e
os/filestore: add sanity check for stat() syscall

The syscall stat() may fail here, the hardlink output shall
be assigned a rubbish value as a result and mislead caller.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/filestore/LFNIndex.cc