diff options
author | Fabricio Voznika <fvoznika@google.com> | 2021-11-02 12:26:18 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-11-02 12:29:06 -0700 |
commit | 1e1d6b2be37873c5e62461834df973f41565c662 (patch) | |
tree | 8fc32650747443694f77956da5f744f62df20b18 /test/util/fs_util.h | |
parent | 42a08f036f7be69b6c6d1b971911cd1aea611ece (diff) |
Allow SetAttr and Allocate for deleted files
It's safe to call SetAttr and Allocate on fsgofer because the
file path is not used to open the file, if needed.
Fixes #3654
PiperOrigin-RevId: 407149393
Diffstat (limited to 'test/util/fs_util.h')
-rw-r--r-- | test/util/fs_util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/util/fs_util.h b/test/util/fs_util.h index bb2d1d3c8..3ae0a725a 100644 --- a/test/util/fs_util.h +++ b/test/util/fs_util.h @@ -71,6 +71,7 @@ PosixError MknodAt(const FileDescriptor& dfd, absl::string_view path, int mode, dev_t dev); // Unlink the file. +PosixError Unlink(absl::string_view path); PosixError UnlinkAt(const FileDescriptor& dfd, absl::string_view path, int flags); |