Message ID | 20180720025723.6736-17-takahiro.akashi@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2441242ljj; Thu, 19 Jul 2018 20:04:57 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeGFGkQgR2gV/in2azlp/x0/JKXzou/wFsTWd37+idjOziug5lJ8+DL+eWHTJZ3NtNLXdMg X-Received: by 2002:a50:c986:: with SMTP id w6-v6mr540089edh.222.1532055897806; Thu, 19 Jul 2018 20:04:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532055897; cv=none; d=google.com; s=arc-20160816; b=D+j7CgbbxrzEoGVE/sHJhp9UGx+Ww4rO3fZ+VL/P/ABAnW+4mm7KUpc3LIh6ar8vfS dOKyyQ06fGY5LXlcS8n6DAHPayWiTPI4IPVsyKpomHspkKzNuOYIBz+RPmevZfLbQLI/ cd6kewjgeF0lgVG9TaTFB2qp86T04CZci8/lK1HZnTB4PywCmZzHAW3qdoPSVxlq0RjD Jqv81Xd+pQGAB+ShYnGKwSIeO4fKjMKib43bj+iRF3bwx6Iq2D3SdWrPoiZjrBosT7N9 hbfFVxr81XbH++NTSFOiGhVxzBmx2GxTS3IUmJbZveFEREuoz0oYUt+HtwcnM2kryEYx fR9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:dkim-signature:arc-authentication-results; bh=oxcHy6QraQTKgzYvVM3T6pVoFz+NhPQ3itSmbgfwPL4=; b=XVrHHJfXs3sAOlzS+lz+QOLumLxs8YdKPH6gUUxivMpqpiOmb45pMqhAT5B4xVHL4e s0UEwGsnJSnE1kX3cu/En+4Nd2im+P2PYkTe0KkxHB9NOu9xHgd/BwVSrA9neAJV0E1d cys8jeKAgatoIhOkUF4sbDESLwit2awgmiVJvXEHmkC8aO65Yftd0yBSl6126C1d/n7K 3a7aztgxE4S4+jYdpacfVL03HemKlLRAl1FzC0tuDb3qKppDZNfAgA8Aos6O+ZXAiSye 1TiFyyCEijicY3qGXqCyui+6ZrdG5qBNn5yM1BzdrzQ8VUCLOl8huPjJWe6nq5C7lwTk 47TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=fU8TRYD4; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <u-boot-bounces@lists.denx.de> Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id q6-v6si714055edr.390.2018.07.19.20.04.57; Thu, 19 Jul 2018 20:04:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=fU8TRYD4; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 559F5C21C27; Fri, 20 Jul 2018 03:03:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id AAE4AC21DF9; Fri, 20 Jul 2018 03:03:08 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id A07B7C21E2B; Fri, 20 Jul 2018 02:58:56 +0000 (UTC) Received: from mail-pl0-f67.google.com (mail-pl0-f67.google.com [209.85.160.67]) by lists.denx.de (Postfix) with ESMTPS id A37BFC21D74 for <u-boot@lists.denx.de>; Fri, 20 Jul 2018 02:58:54 +0000 (UTC) Received: by mail-pl0-f67.google.com with SMTP id w8-v6so4506005ply.8 for <u-boot@lists.denx.de>; Thu, 19 Jul 2018 19:58:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=6DI0QLAmKvJ06ZXTLO5lgRPP1xRoOV1Fk5r5+9K5ktE=; b=fU8TRYD4hsP4d1xyNJ5dDWplumFLO3lKKTrupioPkOdH4nGclKIQhbaspdfBxxZRr8 nZXWTWZaVSqTy/ZIpzrQKV+1hNwyfb5zDWk0CfmYRlUFx7zUhyYnlJcD2OQYDK83/cRb mGKX6tdMhdsS/96e7D03Wd4B4dvSo5BL2JKDQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=6DI0QLAmKvJ06ZXTLO5lgRPP1xRoOV1Fk5r5+9K5ktE=; b=hdFZI4FR6gbfgbNeux7XTLn8yzKoaxR427SlBuYixREr14Mv8jxA9lG1R7RBqUknKs 4omzjNxSY3OBmaCmD3WUwJN2euV7qVINMeXnpzmP0thxGiGkUypjfv5oS0EeaEJ3yP5r JOCjWetLLyC3YSj19ssbS4wEZI80LUpoYh0EVisSSQQNJI8v1Ro1bM4iGRE1jjMqoR8W GHohHxSdqJpB4jZINfwYEOnogfuzPI4iE16u2AwNk0mWKo618Oa0JrpFxkHsrWLeYI4C H/YESY+2B1uJERD7U8xKptzlMiMLkkyUE2k8KxeymqyxKQzPQY5TxeLxg4m7QeR9o7nV nNSQ== X-Gm-Message-State: AOUpUlHyqOTak1bxZfb2Y4XLfD5CoZpkCKBSmY1pICO8KH5aBGC90stf rrqD7DIx/UQkbFNbIa3eN+dW0g== X-Received: by 2002:a17:902:22e:: with SMTP id 43-v6mr323996plc.82.1532055533368; Thu, 19 Jul 2018 19:58:53 -0700 (PDT) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id r81-v6sm845411pfa.18.2018.07.19.19.58.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jul 2018 19:58:52 -0700 (PDT) From: AKASHI Takahiro <takahiro.akashi@linaro.org> To: trini@konsulko.com Date: Fri, 20 Jul 2018 11:57:22 +0900 Message-Id: <20180720025723.6736-17-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180720025723.6736-1-takahiro.akashi@linaro.org> References: <20180720025723.6736-1-takahiro.akashi@linaro.org> Cc: u-boot@lists.denx.de, xypron.glpk@gmx.de, agraf@suse.de Subject: [U-Boot] [PATCH 16/17] efi_loader: implement a pseudo "file delete" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
fs: fat: extend FAT write operations
|
expand
|
diff --git a/lib/efi_loader/efi_file.c b/lib/efi_loader/efi_file.c index 6ec98c8022..12044a0c71 100644 --- a/lib/efi_loader/efi_file.c +++ b/lib/efi_loader/efi_file.c @@ -226,12 +226,20 @@ static efi_status_t EFIAPI efi_file_close(struct efi_file_handle *file) return EFI_EXIT(file_close(fh)); } +static efi_status_t EFIAPI efi_file_write(struct efi_file_handle *file, + efi_uintn_t *buffer_size, + void *buffer); + static efi_status_t EFIAPI efi_file_delete(struct efi_file_handle *file) { struct file_handle *fh = to_fh(file); + efi_uintn_t size = 0; EFI_ENTRY("%p", file); + + /* TODO: implement real 'delete' */ + efi_file_write(file, &size, NULL); file_close(fh); - return EFI_EXIT(EFI_WARN_DELETE_FAILURE); + return EFI_SUCCESS; } static efi_status_t file_read(struct file_handle *fh, u64 *buffer_size,
This patch is necessary to run SCT.efi (UEFI Self-Certification Test). Returning EFI_SUCCESS can cheat SCT execution. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> --- lib/efi_loader/efi_file.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)