TianoCore EDK2 master
Loading...
Searching...
No Matches
FuseStatFs.c File Reference
#include "VirtioFsDxe.h"

Go to the source code of this file.

Functions

EFI_STATUS VirtioFsFuseStatFs (IN OUT VIRTIO_FS *VirtioFs, IN UINT64 NodeId, OUT VIRTIO_FS_FUSE_STATFS_RESPONSE *FilesysAttr)
 

Detailed Description

FUSE_STATFS wrapper for the Virtio Filesystem device.

Copyright (C) 2020, Red Hat, Inc.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file FuseStatFs.c.

Function Documentation

◆ VirtioFsFuseStatFs()

EFI_STATUS VirtioFsFuseStatFs ( IN OUT VIRTIO_FS VirtioFs,
IN UINT64  NodeId,
OUT VIRTIO_FS_FUSE_STATFS_RESPONSE FilesysAttr 
)

Send the FUSE_STATFS request to the Virtio Filesysem device, for retrieving the attributes of the host-side filesystem that contains NodeId.

The function may only be called after VirtioFsFuseInitSession() returns successfully and before VirtioFsUninit() is called.

Parameters
[in,out]VirtioFsThe Virtio Filesystem device to send the FUSE_STATFS request to. On output, the FUSE request counter "VirtioFs->RequestId" will have been incremented.
[in]NodeIdThe inode whose containing filesystem is to be queried for its attributes.
[out]FilesysAttrThe VIRTIO_FS_FUSE_STATFS_RESPONSE object describing the filesystem that underlies NodeId.
Return values
EFI_SUCCESSFilesysAttr has been filled in.
Returns
The "errno" value mapped to an EFI_STATUS code, if the Virtio Filesystem device explicitly reported an error.
Error codes propagated from VirtioFsSgListsValidate(), VirtioFsFuseNewRequest(), VirtioFsSgListsSubmit(), VirtioFsFuseCheckResponse().

Definition at line 38 of file FuseStatFs.c.