----- "Mike Hwang" <[EMAIL PROTECTED]> wrote:

> I originally created ReiserFS
> on /dev/mapper/SIQSTOR_iQ2880_000388BE0E0000A5-part1, and format it
> with LVM2 later.

And what fs did you install on part1?  This looks like the lvm2 tool did the 
format put did not modify the partition table.  And when parted went to look at 
the partition table after the lvm creation, it found the previous fs info.

Does this still happen if you execute a mkfs.ext3 on the newly created lvm?

This could be considered an issue.  But think about this:  if you don't have a 
filesystem on the partition, its going to be unusable anyway.  Of course giving 
the wrong information is inexcusable in this case because the user is going to 
think that there is a filesystem in the partition.

We could check to see if the partition actually contains the filesystem, but I 
guess that there is also a possibility of metadata remaining after a change to 
the partition.  And it goes against the idea of parted not being a tool for 
filesystems.

I guess the best solution in this case might be to stop giving the filesystem 
information by default, because it could be inacurate.  And have a `parted 
print fs` to read the fs metadata off the partition table.  And to tell the 
user that it might be inaccurate.

Regards

> It looks like 'vol_id' and 'parted' print different thing.
> 
> 
> dell1900-28:/mnt/mike/branches/5210-dev/test #
> vol_id /dev/mapper/SIQSTOR_iQ2880_000388BE0E0000A5-part1 
> ID_FS_USAGE=raid
> ID_FS_TYPE=LVM2_member
> ID_FS_VERSION=LVM2 001
> ID_FS_UUID=2iEgCE-1e7C-2orM-QImw-Gw3a-OVdi-vciaYD
> ID_FS_LABEL=
> ID_FS_LABEL_SAFE=
> dell1900-28:/mnt/mike/branches/5210-dev/test #
> parted /dev/mapper/SIQSTOR_iQ2880_000388BE0E0000A5
> GNU Parted 1.8.8.1.84-e1e7
> Using /dev/mapper/SIQSTOR_iQ2880_000388BE0E0000A5
> Welcome to GNU Parted! Type 'help' to view a list of commands.
> (parted)
> p                                                                
> Model: Linux device-mapper (multipath) (dm)
> Disk /dev/mapper/SIQSTOR_iQ2880_000388BE0E0000A5: 107GB
> Sector size (logical/physical): 512B/512B
> Partition Table: gpt
> 
> Number  Start   End     Size    File system  Name    Flags
>  1      17.4kB  94.5GB  94.5GB  reiserfs     mike01       
> 
> (parted)
> quit                                                             
> dell1900-28:/mnt/mike/branches/5210-dev/test # 
> 
> 
> -- 
> Mike Hwang
> 
> http://www.iqstor.com
> Phone: 62974477-612
> 
> _______________________________________________
> parted-devel mailing list
> [email protected]
> http://lists.alioth.debian.org/mailman/listinfo/parted-devel

-- 
Joel Andres Granados
Red Hat / Brno Czech Republic

_______________________________________________
parted-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/parted-devel

Reply via email to