]>
Commit | Line | Data |
---|---|---|
9f95a23c TL |
1 | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- |
2 | // vim: ts=8 sw=2 smarttab | |
3 | ||
4 | #pragma once | |
5 | ||
6 | #include <seastar/core/future.hh> | |
7 | #include <seastar/core/file-types.hh> | |
8 | ||
9 | #include "include/buffer_fwd.h" | |
10 | ||
f67539c2 | 11 | namespace crimson { |
9f95a23c TL |
12 | seastar::future<> write_file(ceph::buffer::list&& bl, |
13 | seastar::sstring fn, | |
14 | seastar::file_permissions= // 0644 | |
15 | (seastar::file_permissions::user_read | | |
16 | seastar::file_permissions::user_write | | |
17 | seastar::file_permissions::group_read | | |
18 | seastar::file_permissions::others_read)); | |
f67539c2 TL |
19 | seastar::future<seastar::temporary_buffer<char>> |
20 | read_file(const seastar::sstring fn); | |
9f95a23c | 21 | } |