MCPcopy Create free account
hub / github.com/ceph/ceph / is_expected_ioerr

Function is_expected_ioerr

src/blk/kernel/KernelDevice.cc:659–671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

657}
658
659static bool is_expected_ioerr(const int r)
660{
661 // https://lxr.missinglinkelectronics.com/linux+v4.15/block/blk-core.c#L135
662 return (r == -EOPNOTSUPP || r == -ETIMEDOUT || r == -ENOSPC ||
663 r == -ENOLINK || r == -EREMOTEIO || r == -EAGAIN || r == -EIO ||
664 r == -ENODATA || r == -EILSEQ || r == -ENOMEM ||
665#if defined(__linux__)
666 r == -EREMCHG || r == -EBADE
667#elif defined(__FreeBSD__)
668 r == - BSM_ERRNO_EREMCHG || r == -BSM_ERRNO_EBADE
669#endif
670 );
671}
672
673void KernelDevice::_aio_thread()
674{

Callers 2

_aio_threadMethod · 0.85
readMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected