MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / pwrite

Method pwrite

fs/cache/cached_fs.cpp:222–225  ·  view source on GitHub ↗

pwrite* need to be aligned to 4KB for avoiding write padding.

Source from the content-addressed store, hash-verified

220
221 // pwrite* need to be aligned to 4KB for avoiding write padding.
222 ssize_t pwrite(const void *buf, size_t count, off_t offset) override {
223 struct iovec v { const_cast<void *>(buf), count };
224 return pwritev(&v, 1, offset);
225 }
226
227 ssize_t pwritev(const struct iovec *iov, int iovcnt, off_t offset) override {
228 return pwritev2(iov, iovcnt, offset, 0);

Callers 6

commonTestFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
pread_pwrite_testFunction · 0.45
TESTFunction · 0.45
concurrent_writeFunction · 0.45

Calls

no outgoing calls

Tested by 6

commonTestFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
pread_pwrite_testFunction · 0.36
TESTFunction · 0.36
concurrent_writeFunction · 0.36