From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id A59C51A1E8B for ; Thu, 13 Oct 2016 01:33:51 -0700 (PDT) Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E5D39C0567B1; Thu, 13 Oct 2016 08:33:50 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-116-52.phx2.redhat.com [10.3.116.52]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u9D8XnB5020528; Thu, 13 Oct 2016 04:33:50 -0400 To: GN Keshava References: Cc: edk2-devel-01 From: Laszlo Ersek Message-ID: <892e191e-5e5d-c8c6-f827-bb1db482c9d1@redhat.com> Date: Thu, 13 Oct 2016 10:33:49 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Thu, 13 Oct 2016 08:33:51 +0000 (UTC) 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: Thu, 13 Oct 2016 08:33:51 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit On 10/13/16 03:29, GN Keshava wrote: > Thanks Laszlo. > > Is it possible to run RM (or any shell command) from my C application > code? Something like "System()" in Linux? Whether we can use LoadImage > for this purpose? Can't say for sure; I'd opt for a separate implementation. Thanks Laszlo > On Wed 12 Oct, 2016 11:10 pm Laszlo Ersek, > wrote: > > On 10/12/16 19:34, GN Keshava wrote: > > Thanks Laszlo, I'll check it out. > > > > I think I need to combine the LS implementation and RM implementation, > > isn't it? So there is no "format this volume" function or command > > exists, right? > > I'm unaware of any "format" command. And, I think it's enough if you > look at RM (LS should be unnecessary); RM already contains the > recursion. > > Laszlo >