53 IN UINT64 OldParentNodeId,
55 IN UINT64 NewParentNodeId,
71 ReqIoVec[0].Buffer = &CommonReq;
72 ReqIoVec[0].Size =
sizeof CommonReq;
73 ReqIoVec[1].Buffer = &Rename2Req;
74 ReqIoVec[1].Size =
sizeof Rename2Req;
75 ReqIoVec[2].Buffer = OldName;
77 ReqIoVec[3].Buffer = NewName;
79 ReqSgList.IoVec = ReqIoVec;
82 RespIoVec[0].Buffer = &CommonResp;
83 RespIoVec[0].Size =
sizeof CommonResp;
84 RespSgList.IoVec = RespIoVec;
91 if (EFI_ERROR (Status)) {
102 VirtioFsFuseOpRename2,
105 if (EFI_ERROR (Status)) {
112 Rename2Req.NewDir = NewParentNodeId;
113 Rename2Req.Flags = VIRTIO_FS_FUSE_RENAME2_REQ_F_NOREPLACE;
114 Rename2Req.Padding = 0;
120 if (EFI_ERROR (Status)) {
128 if (Status == EFI_DEVICE_ERROR) {
131 "%a: Label=\"%s\" OldParentNodeId=%Lu OldName=\"%a\" "
132 "NewParentNodeId=%Lu NewName=\"%a\" Errno=%d\n",
UINTN EFIAPI AsciiStrSize(IN CONST CHAR8 *String)
EFI_STATUS VirtioFsFuseRename(IN OUT VIRTIO_FS *VirtioFs, IN UINT64 OldParentNodeId, IN CHAR8 *OldName, IN UINT64 NewParentNodeId, IN CHAR8 *NewName)
#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)