ceph/src/os
Dan Mick d0a7632a31 Use cpp_strerror() wherever possible, and use autoconf for portability
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>
2014-04-14 13:07:17 -07:00
..
btrfs_ioctl.h
BtrfsFileStoreBackend.cc
BtrfsFileStoreBackend.h
chain_xattr.cc
chain_xattr.h
CollectionIndex.h
DBObjectMap.cc
DBObjectMap.h
FDCache.h compat: avoid unused warn with TEMP_FAILURE_RETRY 2014-02-23 11:17:42 -08:00
FileJournal.cc Merge remote-tracking branch 'gh/firefly' 2014-03-17 16:19:07 -07:00
FileJournal.h os/FileJournal: return errors on make_writeable() if reopen fails 2014-03-17 15:37:44 -07:00
FileStore.cc Merge remote-tracking branch 'gh/firefly' 2014-03-13 15:15:49 -07:00
FileStore.h FileStore: add option to cap alloc hint size 2014-03-03 20:33:44 +02:00
FlatIndex.cc
FlatIndex.h
GenericFileStoreBackend.cc compat: avoid unused warn with TEMP_FAILURE_RETRY 2014-02-23 11:17:42 -08:00
GenericFileStoreBackend.h osd: add SETALLOCHINT operation 2014-03-03 20:33:44 +02:00
GenericObjectMap.cc
GenericObjectMap.h
HashIndex.cc Make the configuration "filestore merge threshold" can be negative which prevent it from merging, this could help: 2014-03-13 13:10:38 +00:00
HashIndex.h Make the configuration "filestore merge threshold" can be negative which prevent it from merging, this could help: 2014-03-13 13:10:38 +00:00
IndexManager.cc
IndexManager.h
Journal.h os/FileJournal: return errors on make_writeable() if reopen fails 2014-03-17 15:37:44 -07:00
JournalingObjectStore.cc Use cpp_strerror() wherever possible, and use autoconf for portability 2014-04-14 13:07:17 -07:00
JournalingObjectStore.h os/FileStore: reset journal state on umount 2014-04-08 11:02:40 -07:00
KeyValueDB.h
KeyValueStore.cc Merge remote-tracking branch 'gh/wip-da-SCA-firefly-20140304' 2014-03-14 11:42:30 -07:00
KeyValueStore.h Remove eio inject codes in KeyValueStore 2014-02-22 21:05:01 +08:00
LevelDBStore.cc
LevelDBStore.h
LFNIndex.cc compat: avoid unused warn with TEMP_FAILURE_RETRY 2014-02-23 11:17:42 -08:00
LFNIndex.h
Makefile.am FileStore: support compiling without libxfs 2014-03-10 11:44:11 +02:00
MemStore.cc osd: add SETALLOCHINT operation 2014-03-03 20:33:44 +02:00
MemStore.h
ObjectMap.h
ObjectStore.cc os/ObjectStore: dump COLL_MOVE_RENAME 2014-03-06 13:44:39 -08:00
ObjectStore.h Merge remote-tracking branch 'gh/firefly' 2014-03-07 08:19:20 -08:00
SequencerPosition.h
WBThrottle.cc
WBThrottle.h
XfsFileStoreBackend.cc FileStore: introduce XfsFileStoreBackend class 2014-03-03 20:33:44 +02:00
XfsFileStoreBackend.h FileStore: introduce XfsFileStoreBackend class 2014-03-03 20:33:44 +02:00
ZFS.cc
ZFS.h
ZFSFileStoreBackend.cc
ZFSFileStoreBackend.h