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

Go to the source code of this file.

Functions

EFI_STATUS VirtioFsFuseSetAttr (IN OUT VIRTIO_FS *VirtioFs, IN UINT64 NodeId, IN UINT64 *Size OPTIONAL, IN UINT64 *Atime OPTIONAL, IN UINT64 *Mtime OPTIONAL, IN UINT32 *Mode OPTIONAL)
 

Detailed Description

FUSE_SETATTR wrapper for the Virtio Filesystem device.

Copyright (C) 2020, Red Hat, Inc.

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

Definition in file FuseSetAttr.c.

Function Documentation

◆ VirtioFsFuseSetAttr()

EFI_STATUS VirtioFsFuseSetAttr ( IN OUT VIRTIO_FS VirtioFs,
IN UINT64  NodeId,
IN UINT64 *Size  OPTIONAL,
IN UINT64 *Atime  OPTIONAL,
IN UINT64 *Mtime  OPTIONAL,
IN UINT32 *Mode  OPTIONAL 
)

Send the FUSE_SETATTR request to the Virtio Filesystem device, for changing the attributes of an inode.

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_SETATTR request to. On output, the FUSE request counter "VirtioFs->RequestId" will have been incremented.
[in]NodeIdThe inode number representing the regular file or directory whose attributes should be changed.
[in]SizeThe new size to set for the regular file. If NULL, then the file size will not be changed. If NodeId refers to a directory, then the caller is responsible for passing NULL as Size.
[in]AtimeThe new last access time to set for the regular file or directory (seconds since the Epoch). If NULL, then the last access time is not changed.
[in]MtimeThe new last modification time to set for the regular file or directory (seconds since the Epoch). If NULL, then the last modification time is not changed.
[in]ModeThe new file mode bits to set for the regular file or directory. If NULL, then the file mode bits are not changed.
Return values
EFI_SUCCESSThe attributes have been updated.
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 54 of file FuseSetAttr.c.