1.1 --- a/libfsserver/lib/files/test_file_opener.cc Wed Feb 09 22:30:29 2022 +0100
1.2 +++ b/libfsserver/lib/files/test_file_opener.cc Thu Feb 10 17:55:05 2022 +0100
1.3 @@ -1,7 +1,7 @@
1.4 /*
1.5 * An opener for a test file containing generated content.
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 @@ -35,15 +35,15 @@
1.13 {
1.14 }
1.15
1.16 -bool TestFileOpener::accessing_directory(const char *path, flags_t flags, fileid_t fileid)
1.17 +bool TestFileOpener::accessing_directory(flags_t flags, fileid_t fileid)
1.18 {
1.19 - (void) path; (void) flags; (void) fileid;
1.20 + (void) flags; (void) fileid;
1.21 return false;
1.22 }
1.23
1.24 -bool TestFileOpener::accessing_file(const char *path, flags_t flags, fileid_t fileid)
1.25 +bool TestFileOpener::accessing_file(flags_t flags, fileid_t fileid)
1.26 {
1.27 - (void) path; (void) flags; (void) fileid;
1.28 + (void) flags; (void) fileid;
1.29 return true;
1.30 }
1.31
1.32 @@ -61,46 +61,44 @@
1.33
1.34 /* Return a new accessor for 'fileid'. */
1.35
1.36 -long TestFileOpener::make_accessor(const char *path, flags_t flags,
1.37 - fileid_t fileid, Accessor **accessor)
1.38 +long TestFileOpener::make_accessor(flags_t flags, fileid_t fileid,
1.39 + Accessor **accessor)
1.40 {
1.41 - (void) flags; (void) path;
1.42 + (void) flags;
1.43 *accessor = new TestFileAccessor(fileid, _file_size);
1.44 return L4_EOK;
1.45 }
1.46
1.47 /* Return a new directory accessor for 'fileid'. */
1.48
1.49 -long TestFileOpener::make_directory_accessor(const char *path, flags_t flags,
1.50 - fileid_t fileid,
1.51 +long TestFileOpener::make_directory_accessor(flags_t flags, fileid_t fileid,
1.52 DirectoryAccessor **accessor)
1.53 {
1.54 - (void) flags; (void) path; (void) fileid; (void) accessor;
1.55 + (void) flags; (void) fileid; (void) accessor;
1.56 return -L4_EIO;
1.57 }
1.58
1.59 /* Remove a filesystem object. */
1.60
1.61 -long TestFileOpener::remove_object(const char *path, fileid_t fileid)
1.62 +long TestFileOpener::remove_object(fileid_t fileid)
1.63 {
1.64 - (void) path; (void) fileid;
1.65 + (void) fileid;
1.66 return L4_EOK;
1.67 }
1.68
1.69 /* Rename a filesystem object, placing source inside the parent of target. */
1.70
1.71 -long TestFileOpener::rename_object(const char *source, fileid_t source_fileid,
1.72 - const char *target)
1.73 +long TestFileOpener::rename_object(const char *source, const char *target)
1.74 {
1.75 - (void) source; (void) source_fileid; (void) target;
1.76 + (void) source; (void) target;
1.77 return -L4_EIO;
1.78 }
1.79
1.80 /* Unlink a filesystem object. */
1.81
1.82 -long TestFileOpener::unlink_object(const char *path, fileid_t fileid)
1.83 +long TestFileOpener::unlink_object(fileid_t parent_fileid, fileid_t fileid)
1.84 {
1.85 - (void) path; (void) fileid;
1.86 + (void) parent_fileid; (void) fileid;
1.87 return -L4_EIO;
1.88 }
1.89