diff options
author | Laszlo Ersek <lersek@redhat.com> | 2020-12-16 22:11:05 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-12-21 17:16:23 +0000 |
commit | ba1184630ae54af0ad3bdbb97982d740cf50e9be (patch) | |
tree | 273b7f9597d4ee27125d2be456c92724f4a06450 /OvmfPkg/Include/IndustryStandard | |
parent | c09441c3211c1b1e5067b870b0c08249ea3293b9 (diff) | |
download | edk2-ba1184630ae54af0ad3bdbb97982d740cf50e9be.tar.gz edk2-ba1184630ae54af0ad3bdbb97982d740cf50e9be.tar.bz2 edk2-ba1184630ae54af0ad3bdbb97982d740cf50e9be.zip |
OvmfPkg/VirtioFsDxe: implement the wrapper function for FUSE_STATFS
Add the VirtioFsFuseStatFs() function, for sending the FUSE_STATFS command
to the Virtio Filesystem device.
Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3097
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Message-Id: <20201216211125.19496-29-lersek@redhat.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
Diffstat (limited to 'OvmfPkg/Include/IndustryStandard')
-rw-r--r-- | OvmfPkg/Include/IndustryStandard/VirtioFs.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/OvmfPkg/Include/IndustryStandard/VirtioFs.h b/OvmfPkg/Include/IndustryStandard/VirtioFs.h index efcf57941c..800d3651e1 100644 --- a/OvmfPkg/Include/IndustryStandard/VirtioFs.h +++ b/OvmfPkg/Include/IndustryStandard/VirtioFs.h @@ -119,6 +119,7 @@ typedef enum { VirtioFsFuseOpUnlink = 10,
VirtioFsFuseOpRmDir = 11,
VirtioFsFuseOpOpen = 14,
+ VirtioFsFuseOpStatFs = 17,
VirtioFsFuseOpRelease = 18,
VirtioFsFuseOpFsync = 20,
VirtioFsFuseOpFlush = 25,
@@ -234,6 +235,22 @@ typedef struct { } VIRTIO_FS_FUSE_OPEN_RESPONSE;
//
+// Header for VirtioFsFuseOpStatFs.
+//
+typedef struct {
+ UINT64 Blocks;
+ UINT64 Bfree;
+ UINT64 Bavail;
+ UINT64 Files;
+ UINT64 Ffree;
+ UINT32 Bsize;
+ UINT32 Namelen;
+ UINT32 Frsize;
+ UINT32 Padding;
+ UINT32 Spare[6];
+} VIRTIO_FS_FUSE_STATFS_RESPONSE;
+
+//
// Header for VirtioFsFuseOpRelease and VirtioFsFuseOpReleaseDir.
//
typedef struct {
|