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

Function fscrypt_hex_str

src/client/FSCrypt.h:50–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50static inline std::string fscrypt_hex_str(const void *p, int len)
51{
52 if (!p) {
53 return "<null>";
54 }
55
56 bufferlist bl;
57 bl.append_hole(len);
58 memcpy(bl.c_str(), p, len);
59 std::stringstream ss;
60 bl.hexdump(ss);
61 return ss.str();
62}
63
64int fscrypt_fname_armor(const char *src, int src_len,
65 char *result, int max_len);

Callers 2

fuse_ll_ioctlFunction · 0.85
init_ctxMethod · 0.85

Calls 4

hexdumpMethod · 0.80
append_holeMethod · 0.45
c_strMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected