MCPcopy Create free account
hub / github.com/apache/trafficserver / make_span_error

Function make_span_error

src/iocore/cache/Store.cc:51–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49} // end anonymous namespace
50
51static span_error_t
52make_span_error(int error)
53{
54 switch (error) {
55 case ENOENT:
56 return SPAN_ERROR_NOT_FOUND;
57 case EPERM: /* fallthrough */
58 case EACCES:
59 return SPAN_ERROR_NO_ACCESS;
60 default:
61 return SPAN_ERROR_UNKNOWN;
62 }
63}
64
65static const char *
66span_file_typename(mode_t st_mode)

Callers 1

initMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected