From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-x234.google.com (mail-io0-x234.google.com [IPv6:2607:f8b0:4001:c06::234]) (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 01FF61A1E4F for ; Wed, 12 Oct 2016 18:29:42 -0700 (PDT) Received: by mail-io0-x234.google.com with SMTP id r30so69624048ioi.1 for ; Wed, 12 Oct 2016 18:29:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vQ3UgnNS7uDE1rqYhobceW1IEd/9sTBhDkQwvfn5K1Q=; b=Nod0vTQjuc9xTvPm8B298L1ikNuqF25H9AjTVmam4Dt2RMYc4b+i40frKiwVShI8h1 Gfkpx8xuGBjBJ9Lia6sw3AjBI5ghoSMykFdFbU+HxA0Uu4vRGJns1OPXa/RceFzW5Oee Tn/c6ELJkmz8Z0EV92ZQO9DdnLcxnzxZ0LXRp84orfb97GgTIjHoWweaEM1K6naMKcTG AHeBKhD6RoMOS7mmQ/WP0Os8zp43H2/T/jd8javqx4nsJ53tqeJRhYoUsNX+ifABLBM2 rzSQzRLYo1vZeNRaih2kKHb4ScJBNr9wYzq6JjIzHeFyXF6uaf9MXaYDff17sj/rNdMF bp5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vQ3UgnNS7uDE1rqYhobceW1IEd/9sTBhDkQwvfn5K1Q=; b=STNRx1gIFo6VqjdCGLTQvRqqZ2Sa1oqSyxoOrcMhakd6k+MwnzsodtMkWK30GfroK0 cP8y3WaFePPiIUCCH8cwnvAmlBRKXlOSeiS7alRZourCVIvzGN4a+EPLMF5AyT2GOTw+ Fq+a1B8rS1DqbNFeXwZvlENilDiOgmg9YdJO+qV42cT8kkwvMuqpOz08It9Z5p8+uCe7 8pwOYPUVrI02jIr7xn1L5Te2sVfdIbms0mQyr02mg75gl2MGBfTjGXQWXZIGfdlwgRTI QuqChagqhZfBBM3aSQhWLpo2tdFWnLxzUAantLMIBSlDl4yWE35iyt7yHnZWeVALmsnD epAg== X-Gm-Message-State: AA6/9RnNV1G9rb6o03zqCgQ+RSYAq3T00w/+RhIxCOVgm7FKBnRC0RKz6eoX4uvBRCMT81egNSLUOqngbSKnUQ== X-Received: by 10.107.164.103 with SMTP id n100mr4240349ioe.35.1476322181321; Wed, 12 Oct 2016 18:29:41 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: GN Keshava Date: Thu, 13 Oct 2016 01:29:30 +0000 Message-ID: To: Laszlo Ersek Cc: edk2-devel-01 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 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 01:29:42 -0000 Content-Type: text/plain; charset=UTF-8 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? Thanks again. Regards, Keshava 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 > >