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

Go to the source code of this file.

Functions

EFI_STATUS VirtioFsFuseFlush (IN OUT VIRTIO_FS *VirtioFs, IN UINT64 NodeId, IN UINT64 FuseHandle)
 

Detailed Description

FUSE_FLUSH wrapper for the Virtio Filesystem device.

Copyright (C) 2020, Red Hat, Inc.

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

Definition in file FuseFlush.c.

Function Documentation

◆ VirtioFsFuseFlush()

EFI_STATUS VirtioFsFuseFlush ( IN OUT VIRTIO_FS VirtioFs,
IN UINT64  NodeId,
IN UINT64  FuseHandle 
)

Flush changes queued on the local virtualization host to the remote storage server's memory (not storage device), over the network, by sending the FUSE_FLUSH request to the Virtio Filesystem device.

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_FLUSH request to. On output, the FUSE request counter "VirtioFs->RequestId" will have been incremented.
[in]NodeIdThe inode number of the regular file to flush.
[in]FuseHandleThe open handle to the regular file to flush.
Return values
EFI_SUCCESSThe regular file has been flushed.
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 37 of file FuseFlush.c.