]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Include/IndustryStandard/VirtioFs.h
OvmfPkg/VirtioFsDxe: implement the wrapper function for FUSE_STATFS
[mirror_edk2.git] / OvmfPkg / Include / IndustryStandard / VirtioFs.h
index efcf57941c5916600a872809551d2b5c1a9a71a5..800d3651e12bea7b3057995ed77a131b27b0619c 100644 (file)
@@ -119,6 +119,7 @@ typedef enum {
   VirtioFsFuseOpUnlink      = 10,\r
   VirtioFsFuseOpRmDir       = 11,\r
   VirtioFsFuseOpOpen        = 14,\r
+  VirtioFsFuseOpStatFs      = 17,\r
   VirtioFsFuseOpRelease     = 18,\r
   VirtioFsFuseOpFsync       = 20,\r
   VirtioFsFuseOpFlush       = 25,\r
@@ -233,6 +234,22 @@ typedef struct {
   UINT32 Padding;\r
 } VIRTIO_FS_FUSE_OPEN_RESPONSE;\r
 \r
+//\r
+// Header for VirtioFsFuseOpStatFs.\r
+//\r
+typedef struct {\r
+  UINT64 Blocks;\r
+  UINT64 Bfree;\r
+  UINT64 Bavail;\r
+  UINT64 Files;\r
+  UINT64 Ffree;\r
+  UINT32 Bsize;\r
+  UINT32 Namelen;\r
+  UINT32 Frsize;\r
+  UINT32 Padding;\r
+  UINT32 Spare[6];\r
+} VIRTIO_FS_FUSE_STATFS_RESPONSE;\r
+\r
 //\r
 // Header for VirtioFsFuseOpRelease and VirtioFsFuseOpReleaseDir.\r
 //\r