}
static int
-winnt_load_efsrpc_raw_data(struct wim_inode *inode, const wchar_t *nt_path,
+winnt_scan_efsrpc_raw_data(struct wim_inode *inode, const wchar_t *nt_path,
struct list_head *unhashed_blobs)
{
struct blob_descriptor *blob;
return true;
}
-/* Build the path to the stream. For unnamed streams, this is simply the path
- * to the file. For named streams, this is the path to the file, followed by a
- * colon, followed by the stream name. */
+/* Build the path to the data stream. For unnamed streams, this is simply the
+ * path to the file. For named streams, this is the path to the file, followed
+ * by a colon, followed by the stream name. */
static wchar_t *
-build_stream_path(const wchar_t *path, size_t path_nchars,
- const wchar_t *stream_name, size_t stream_name_nchars)
+build_data_stream_path(const wchar_t *path, size_t path_nchars,
+ const wchar_t *stream_name, size_t stream_name_nchars)
{
size_t stream_path_nchars;
wchar_t *stream_path;
blob = new_blob_descriptor();
if (!blob)
goto err_nomem;
- blob->file_on_disk = build_stream_path(path,
- path_nchars,
- stream_name,
- stream_name_nchars);
+ blob->file_on_disk = build_data_stream_path(path,
+ path_nchars,
+ stream_name,
+ stream_name_nchars);
if (!blob->file_on_disk)
goto err_nomem;
blob->blob_location = BLOB_IN_WINNT_FILE_ON_DISK;
goto out_free_buf;
}
- ret = winnt_scan_data_stream(path, path_nchars, L"::$DATA", 7,
- file_size, inode, unhashed_blobs);
+ {
+ wchar_t stream_name[] = L"::$DATA";
+ ret = winnt_scan_data_stream(path, path_nchars, stream_name, 7,
+ file_size, inode, unhashed_blobs);
+ }
out_free_buf:
/* Free buffer if allocated on heap. */
if (unlikely(buf != _buf))
* needed. */
(*func_NtClose)(h);
h = NULL;
- ret = winnt_load_efsrpc_raw_data(inode, full_path,
+ ret = winnt_scan_efsrpc_raw_data(inode, full_path,
params->unhashed_blobs);
if (ret)
goto out;