57 IN UINT64 *Size OPTIONAL,
58 IN UINT64 *Atime OPTIONAL,
59 IN UINT64 *Mtime OPTIONAL,
60 IN UINT32 *Mode OPTIONAL
77 ReqIoVec[0].Buffer = &CommonReq;
78 ReqIoVec[0].Size =
sizeof CommonReq;
79 ReqIoVec[1].Buffer = &AttrReq;
80 ReqIoVec[1].Size =
sizeof AttrReq;
81 ReqSgList.IoVec = ReqIoVec;
84 RespIoVec[0].Buffer = &CommonResp;
85 RespIoVec[0].Size =
sizeof CommonResp;
86 RespIoVec[1].Buffer = &GetAttrResp;
87 RespIoVec[1].Size =
sizeof GetAttrResp;
88 RespIoVec[2].Buffer = &AttrResp;
89 RespIoVec[2].Size =
sizeof AttrResp;
90 RespSgList.IoVec = RespIoVec;
97 if (EFI_ERROR (Status)) {
108 VirtioFsFuseOpSetAttr,
111 if (EFI_ERROR (Status)) {
120 AttrReq.FileHandle = 0;
121 AttrReq.Size = (Size ==
NULL) ? 0 : *Size;
122 AttrReq.LockOwner = 0;
123 AttrReq.Atime = (Atime ==
NULL) ? 0 : *Atime;
124 AttrReq.Mtime = (Mtime ==
NULL) ? 0 : *Mtime;
126 AttrReq.AtimeNsec = 0;
127 AttrReq.MtimeNsec = 0;
128 AttrReq.CtimeNsec = 0;
129 AttrReq.Mode = (Mode ==
NULL) ? 0 : *Mode;
136 AttrReq.Valid |= VIRTIO_FS_FUSE_SETATTR_REQ_F_SIZE;
140 AttrReq.Valid |= VIRTIO_FS_FUSE_SETATTR_REQ_F_ATIME;
144 AttrReq.Valid |= VIRTIO_FS_FUSE_SETATTR_REQ_F_MTIME;
148 AttrReq.Valid |= VIRTIO_FS_FUSE_SETATTR_REQ_F_MODE;
155 if (EFI_ERROR (Status)) {
163 if (Status == EFI_DEVICE_ERROR) {
166 "%a: Label=\"%s\" NodeId=%Lu",
172 DEBUG ((DEBUG_ERROR,
" Size=0x%Lx", *Size));
176 DEBUG ((DEBUG_ERROR,
" Atime=%Lu", *Atime));
180 DEBUG ((DEBUG_ERROR,
" Mtime=%Lu", *Mtime));
184 DEBUG ((DEBUG_ERROR,
" Mode=0x%x", *Mode));
187 DEBUG ((DEBUG_ERROR,
" Errno=%d\n", CommonResp.Error));
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)
#define ARRAY_SIZE(Array)
#define DEBUG(Expression)
EFI_STATUS VirtioFsFuseCheckResponse(IN VIRTIO_FS_SCATTER_GATHER_LIST *ResponseSgList, IN UINT64 RequestId, OUT UINTN *TailBufferFill)
EFI_STATUS VirtioFsFuseNewRequest(IN OUT VIRTIO_FS *VirtioFs, OUT VIRTIO_FS_FUSE_REQUEST *Request, IN UINT32 RequestSize, IN VIRTIO_FS_FUSE_OPCODE Opcode, IN UINT64 NodeId)
EFI_STATUS VirtioFsSgListsSubmit(IN OUT VIRTIO_FS *VirtioFs, IN OUT VIRTIO_FS_SCATTER_GATHER_LIST *RequestSgList, IN OUT VIRTIO_FS_SCATTER_GATHER_LIST *ResponseSgList OPTIONAL)
EFI_STATUS VirtioFsErrnoToEfiStatus(IN INT32 Errno)
EFI_STATUS VirtioFsSgListsValidate(IN VIRTIO_FS *VirtioFs, IN OUT VIRTIO_FS_SCATTER_GATHER_LIST *RequestSgList, IN OUT VIRTIO_FS_SCATTER_GATHER_LIST *ResponseSgList OPTIONAL)