On 08/16/2013 05:05 PM, David F. wrote: > Hi, > > I'm able to get most information needed about a file system volume > "mounted" under UEFI such as the cluster size, sector size, volume > name, media id/sn, etc.. but where can you see the file system name > (either as a string or as a value to tel the file system type), also > if case sensitive or not. I know the specs say FAT32, but I've seen > UEFI systems supporting Ext2/3/4 type partitions, etc..
I'm not aware of any system call that will tell you the filesystem type. My own rEFInd project (http://www.rodsbooks.com/refind/) gets this information by reading the first few sectors of the partition and looking for "magic values." The relevant code is in the IdentifyFilesystemType() function in the refind/lib.c file. (See https://sourceforge.net/p/refind/code/ci/master/tree/refind/lib.c.) Note that rEFInd is GPLed, though; depending on what license you use, you might need to re-implement this or find comparable code under another license. The basic principles of determining the filesystem type are fairly simple; you just need to know what to look for and match against it. -- Rod Smith [email protected] http://www.rodsbooks.com ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ edk2-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/edk2-devel
