1.1 --- a/libfsserver/include/fsserver/file_pager.h Sun May 29 00:58:31 2022 +0200
1.2 +++ b/libfsserver/include/fsserver/file_pager.h Mon May 30 00:47:07 2022 +0200
1.3 @@ -1,7 +1,7 @@
1.4 /*
1.5 * File-specific pager functionality.
1.6 *
1.7 - * Copyright (C) 2021 Paul Boddie <paul@boddie.org.uk>
1.8 + * Copyright (C) 2021, 2022 Paul Boddie <paul@boddie.org.uk>
1.9 *
1.10 * This program is free software; you can redistribute it and/or
1.11 * modify it under the terms of the GNU General Public License as
1.12 @@ -33,6 +33,7 @@
1.13 {
1.14 protected:
1.15 FileProvider *_provider;
1.16 + flags_t _flags;
1.17
1.18 /* Notification endpoint for event subscription. */
1.19
1.20 @@ -42,10 +43,14 @@
1.21
1.22 bool _resized = false;
1.23
1.24 + /* Helper methods. */
1.25 +
1.26 + bool copy_on_write();
1.27 +
1.28 public:
1.29 fileid_t fileid;
1.30
1.31 - explicit FilePager(fileid_t fileid, FileProvider *provider, map_flags_t flags);
1.32 + explicit FilePager(fileid_t fileid, FileProvider *provider, flags_t flags);
1.33
1.34 virtual void close();
1.35