[parted-devel] Some thoughts on filesystem in parted

Brian C. Lane bcl at redhat.com
Tue Mar 15 15:51:58 UTC 2016


On Tue, Mar 15, 2016 at 02:09:59PM +0800, Wang Dong wrote:
> Hi,
> 
> I am reading the code of filesystem in parted these days.  And I have some
> question about this module.
> 
> 1. Parted cannot just initialize filesystem on partition. But there is an
> option for the filesystem specifying? Why?
>     Is this option redundant?

This helps parted decide what partition type to set, nothing else.

> 
> 2. There is a filesystem module in parted. It is. If it is not used to
> specified the type of partition filesystem when partitioning. From my
>     knowledge of the code. All the interfaces just are used to rescue
> partitions and disk sanity check (ped_disk_check).
>     I can not find where is ped_disk_check is called. I just read its
> comment, "check the sanity of disk". But how is this function
>     used? I found no clue of  this. If this function is not used, which
> means filesystem module is only used for partition rescue.

I don't think this code has ever been used internally. It is part of
libparted's ABI so there may be external users we don't know about.

> 
> So the filesystem in parted is only used to recognize filesystem types? Or I
> missed something? Any comments will be appreciated.

Yes.

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)



More information about the parted-devel mailing list