Re: [edk2] Format a volume in UEFI (or delete all files)

2016-10-13 Thread GN Keshava
Got it. Thanks for the help, Laszlo. Regards, Keshava On Thu, 13 Oct 2016 at 14:03 Laszlo Ersek wrote: > 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()"

Re: [edk2] Format a volume in UEFI (or delete all files)

2016-10-13 Thread Laszlo Ersek
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

Re: [edk2] Format a volume in UEFI (or delete all files)

2016-10-12 Thread GN Keshava
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

Re: [edk2] Format a volume in UEFI (or delete all files)

2016-10-12 Thread Michael Zimmermann
depending on his use case it can be unnecessary to do a low level FS format though(he said that he just wants to delete all files). It can also become problematic if you consider that the original filesystem doesn't have to be FAT. Thanks Michael On Wed, Oct 12, 2016 at 7:46 PM, Richardson,

Re: [edk2] Format a volume in UEFI (or delete all files)

2016-10-12 Thread Richardson, Brian
There is an effort to move these tools to EDK II. More news as it happens. Thanks ... br --- Brian Richardson, Senior Technical Marketing Engineer, Intel Software brian.richard...@intel.com -- http://evangelists.intel.com/bio/Brian_Richardson_ -Original Message- From: edk2-devel

Re: [edk2] Format a volume in UEFI (or delete all files)

2016-10-12 Thread Blibbet
On 10/12/2016 10:34 AM, 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? The commands do exist. But they're not in Tianocore, and

Re: [edk2] Format a volume in UEFI (or delete all files)

2016-10-12 Thread GN Keshava
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? Thanks again! Regards, Keshava On Wed 12 Oct, 2016 8:01 pm Laszlo Ersek, wrote: > On

Re: [edk2] Format a volume in UEFI (or delete all files)

2016-10-12 Thread Blibbet
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

Re: [edk2] Format a volume in UEFI (or delete all files)

2016-10-12 Thread Laszlo Ersek
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

[edk2] Format a volume in UEFI (or delete all files)

2016-10-12 Thread GN Keshava
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).