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

rahul dev rahul_dev_agg at yahoo.co.in
Fri Jul 17 08:16:41 UTC 2009


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;
          }
...
...
}

thanks,
rahul


      Yahoo! recommends that you upgrade to the new and safer Internet Explorer 8. http://downloads.yahoo.com/in/internetexplorer/




More information about the parted-devel mailing list