]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: fix NVMEDevice::open failure if serial number ends with a number
authorHongtong Liu <hongtong.liu@istuary.com>
Sun, 22 Jan 2017 09:25:04 +0000 (17:25 +0800)
committerHongtong Liu <hongtong.liu@istuary.com>
Sun, 22 Jan 2017 09:25:04 +0000 (17:25 +0800)
commit9caff5e4559e197021176b7f40a1da5ea9e038de
treeef9f5581790102a117a0876c55c7bc4a0587d8c4
parent6886859cc2e366ee85aa095eef7fe782799b9b15
os/bluestore: fix NVMEDevice::open failure if serial number ends with a number

buf in effect is the serial number in ceph.conf and
the serial number consists of 16 hexadecimal characters.
1. In order to avoid ignoring the numbers, scan buf
with isxdigit.
2. In order to ignore all the potential garbage,
scan buf from the beginning.

Signed-off-by: Hongtong Liu <hongtong.liu@istuary.com>
src/os/bluestore/NVMEDevice.cc