[parted-devel] discrepancy in the guid value used by libparted for fat/ntfs filesystems

Joel Granados jgranado at redhat.com
Fri Jul 17 08:27:53 UTC 2009


On Fri, Jul 17, 2009 at 01:46:41PM +0530, rahul dev wrote:
> 
> Hi Joel,
> 
> > > Guys,
> > > 
> > >   I am using "parted-1.8.1". I noticed
> > one dicrepancy between the guid value used for fat/ntfs
> > filesystems by parted and windows.
> > 
> > This is rather outdated.  We are currently in 1.8.8.1
> > version.  We most
> > probably solved this, but it would be of great help if you
> > could
> > perform the test in the current version. Or better yet,
> > with the current
> > git HEAD of the master branch.
> > 
> 
> I downloaded the source code of libparted 1.8.8. Even on this version guid set for ntfs/fat is "PARTITION_MSFT_RESERVED_GUID".
> 
> See following function in file libparted/labels/gpt.c.
> 
> static int
> gpt_partition_set_system (PedPartition* part, const PedFileSystemType* fs_type)
> {
>   ..
>   ..
>   if (fs_type) {
>           if (strncmp (fs_type->name, "fat", 3) == 0
>               || strcmp (fs_type->name, "ntfs") == 0) {
>                  gpt_part_data->type = PARTITION_MSFT_RESERVED_GUID;
>                  return 1;
>           }
> ...
> ...
> }
> 

Yep, this is on my TODO list.

Coincidently, I have a report in fedora bugzilla for tihs issue.

Thx for bringing this to our attention.

Regards.

-- 
Joel Andres Granados
Brno, Czech Republic, Red Hat.



More information about the parted-devel mailing list