Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llfio/v2.0/symlink_handle.hpp10
-rw-r--r--test/tests/symlink_handle_create_close/runner.cpp1
2 files changed, 4 insertions, 7 deletions
diff --git a/include/llfio/v2.0/symlink_handle.hpp b/include/llfio/v2.0/symlink_handle.hpp
index 8be1ad3d..9f8249ab 100644
--- a/include/llfio/v2.0/symlink_handle.hpp
+++ b/include/llfio/v2.0/symlink_handle.hpp
@@ -134,7 +134,8 @@ public:
//! Default constructor
constexpr buffers_type() {} // NOLINT
- //! Constructor
+ /*! Constructor
+ */
constexpr buffers_type(path_view link, symlink_type type = symlink_type::symbolic)
: _link(link)
, _type(type)
@@ -440,14 +441,11 @@ public:
\return Returns the buffers filled, with its path adjusted to the bytes filled.
\param req A buffer to fill with the contents of the symbolic link.
- \param kernelbuffer A buffer to use for the kernel to fill. If left defaulted, a kernel buffer
- is allocated internally and stored into `req.buffers` which needs to not be destructed until one
- is no longer using any items within (the path returned is a view onto the original kernel data).
\errors Any of the errors which `readlinkat()` or `DeviceIoControl()` might return, or failure
to allocate memory if the user did not supply a kernel buffer to use, or the user supplied buffer
was too small.
- \mallocs If the `kernelbuffer` parameter is set on entry, no memory allocations.
- If unset, then at least one memory allocation, possibly more is performed.
+ \mallocs If the `kernelbuffer` parameter is set in the request, no memory allocations.
+ If unset, at least one memory allocation, possibly more is performed.
*/
LLFIO_MAKE_FREE_FUNCTION
LLFIO_HEADERS_ONLY_VIRTUAL_SPEC result<buffers_type> read(io_request<buffers_type> req = {}) noexcept;
diff --git a/test/tests/symlink_handle_create_close/runner.cpp b/test/tests/symlink_handle_create_close/runner.cpp
index 0a42aab2..1e8e72e0 100644
--- a/test/tests/symlink_handle_create_close/runner.cpp
+++ b/test/tests/symlink_handle_create_close/runner.cpp
@@ -32,7 +32,6 @@ template <class U> inline void symlink_handle_create_close_creation(U &&f)
static const il_result<void> no_such_file_or_directory = LLFIO_V2_NAMESPACE::errc::no_such_file_or_directory;
static const il_result<void> file_exists = LLFIO_V2_NAMESPACE::errc::file_exists;
static const il_result<void> function_not_supported = LLFIO_V2_NAMESPACE::errc::function_not_supported;
- static const il_result<void> permission_denied = LLFIO_V2_NAMESPACE::errc::permission_denied;
assert(file_exists.error() == LLFIO_V2_NAMESPACE::errc::file_exists);