mirror of
https://github.com/ceph/ceph
synced 2025-01-21 10:36:53 +00:00
d0a7632a31
strerror_r is not portable; on Gnu libc it returns char * and sometimes does not fill in the supplied buffer. Use autoconf to test which version this platform uses and adapt. Clean up the random calls to strerror and strerror_r (along with all their private little one-use buffers) and regularize the code to use cpp_strerror almost everywhere. Where changed, any negation of the error code is also removed, since cpp_strerror() will do that. Note: some tools were using their own calls to strerror/strerror_r, so will now get a (%d) in their output that wasn't there before; hence the change to test/cli/monmaptool/print-nonexistent.t Fixes: #8041 Signed-off-by: Dan Mick <dan.mick@inktank.com> |
||
---|---|---|
.. | ||
btrfs_ioctl.h | ||
BtrfsFileStoreBackend.cc | ||
BtrfsFileStoreBackend.h | ||
chain_xattr.cc | ||
chain_xattr.h | ||
CollectionIndex.h | ||
DBObjectMap.cc | ||
DBObjectMap.h | ||
FDCache.h | ||
FileJournal.cc | ||
FileJournal.h | ||
FileStore.cc | ||
FileStore.h | ||
FlatIndex.cc | ||
FlatIndex.h | ||
GenericFileStoreBackend.cc | ||
GenericFileStoreBackend.h | ||
GenericObjectMap.cc | ||
GenericObjectMap.h | ||
HashIndex.cc | ||
HashIndex.h | ||
IndexManager.cc | ||
IndexManager.h | ||
Journal.h | ||
JournalingObjectStore.cc | ||
JournalingObjectStore.h | ||
KeyValueDB.h | ||
KeyValueStore.cc | ||
KeyValueStore.h | ||
LevelDBStore.cc | ||
LevelDBStore.h | ||
LFNIndex.cc | ||
LFNIndex.h | ||
Makefile.am | ||
MemStore.cc | ||
MemStore.h | ||
ObjectMap.h | ||
ObjectStore.cc | ||
ObjectStore.h | ||
SequencerPosition.h | ||
WBThrottle.cc | ||
WBThrottle.h | ||
XfsFileStoreBackend.cc | ||
XfsFileStoreBackend.h | ||
ZFS.cc | ||
ZFS.h | ||
ZFSFileStoreBackend.cc | ||
ZFSFileStoreBackend.h |