From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-x244.google.com (mail-pf0-x244.google.com [IPv6:2607:f8b0:400e:c00::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id A20A11A1DF5 for ; Wed, 12 Oct 2016 10:23:40 -0700 (PDT) Received: by mail-pf0-x244.google.com with SMTP id r16so3142453pfg.3 for ; Wed, 12 Oct 2016 10:23:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=IM6Oo5lQmT7cLnnUQGMa0RHCcEhIOafPyEFawE98HHY=; b=GrJot21GAYF9EZhK596XJj43OIHphWZnsPpXkAahELcRBy7T8O+6FtCxAq6y/lkupS LtqzJZB0zl8LiVVtAeuHPaQ2VpSBHPOZ3aiRo6rXpvUm6YA/ydsFLrk5GzsPwVrPti4W 41KlaNtoeKEqxovKzk+3BmkgQn1IG3l9AwOPayMKGYTm3QbOWt+WVB9C0x6fVYUrN8T2 CN2nxNUvTKoUoDqyNAtW3UNBVakWzRm1ggjLOpbKx/T7wASdhZPYbIoYYQGwzf84pVuv G7l+jOcoe0RYzKbJnYB6EAVRi4X3r5GElrXX9v13fVKKwXQZhXx35x0P4zVZ64rrItiN zpWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=IM6Oo5lQmT7cLnnUQGMa0RHCcEhIOafPyEFawE98HHY=; b=IL2enQ1DXDjI5Nf3UII1OFSMe3MtGfUarRBeQMh1VgpidPVspeBcWunEBNGnzV461s /9ONaOeWZIIubtw2si6JrFYQ89kbWoEZs8fz3ARvBDLfBq2MmBsDPNgj1Kz0+y7e78Jw Eyy1hLRn+GnTy5h2R6H+sCz0qmJAXfE2WQwJcorlZAvuGk6SMyPnqRt279pCjF1MNxyg 8bfaOA78xf/fW0J9VcYH4MNpoEW5nEHVMbeANuummiTz64jpScm4ufQM858eRE5OJui6 M8CIl3Lup1mn+qVeKf8VWDWpjjbqFQvorE8za2uWourMUB9v/kdjsXGDptrsXf8wFVl3 hDqg== X-Gm-Message-State: AA6/9Rk7WZT/AGY4yHGErQoAXvRX7by/zCYhqpK+Gz08x76z6EP5kNtRsrly+W9cjDk8sw== X-Received: by 10.99.96.22 with SMTP id u22mr2777888pgb.137.1476293019971; Wed, 12 Oct 2016 10:23:39 -0700 (PDT) Received: from [192.168.254.42] ([50.125.228.62]) by smtp.gmail.com with ESMTPSA id j6sm13140129paa.44.2016.10.12.10.23.38 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Oct 2016 10:23:38 -0700 (PDT) To: edk2-devel@lists.01.org References: From: Blibbet Message-ID: <565c3df1-9f63-9042-6ac6-13cf8f3dc3e7@gmail.com> Date: Wed, 12 Oct 2016 10:23:37 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Subject: Re: Format a volume in UEFI (or delete all files) X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2016 17:23:40 -0000 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit On 10/12/2016 07:31 AM, Laszlo Ersek wrote: > On 10/12/16 12:48, GN Keshava wrote: >> Hi all, >> >> I need to format fs1: (or delete all files and folders in root directory) >> from my UEFI application. >> >> I'm able to use file system APIs such as Open, Write or Delete too. But >> Delete API needs File (file path) as argument, but what I want is delete >> all files (irrespective of file name). >> >> What could be the best method? Is there any API to directly delete all >> files? If not, How to go through (Open) all files and delete each? If Microsoft relicensed the FAT FS driver, what about some licensing help to make the Intel EFI Disk Utility source code BSD, so that could be be used by others, or even exec'ed?