mirror of
https://gitlab.gnome.org/GNOME/gparted
synced 2024-08-27 11:40:03 +00:00
![Mike Fleetwood](/assets/img/avatar_default.png)
In some cases creating an LVM2 Physical Volume on top of a DMRaid array reports no usage information and this partition warning: Unable to read the contents of this file system! Because of this some operations may be unavailable. The cause might be a missing software package. The following list of software packages is required for lvm2 pv file system support: lvm2. For example on Ubuntu 14.04 LTS (with GParted built with --enable-libparted-dmraid) create an LVM2 PV in a DMRaid array partition. GParted uses this command: # lvm pvcreate -M 2 /dev/mapper/isw_bacdehijbd_MyArray0p2 But LVM reports the PV having a different name: # lvm pvs PV VG Fmt Attr PSize PFree /dev/disk/by-id/dm-name-isw_bacdehijbd_MyArray0p2 lvm2 a-- 1.00g 1.00g This alternate name is loaded into the LVM2_PV_Info module cache. Hence when GParted queries partition /dev/mapper/isw_bacdehijbd_MyArray0p2 it has no PV information against that name and reports unknown usage. However they are actually the same block special device; major 252, minor 2: # ls -l /dev/mapper/isw_bacdehijbd_MyArray0p2 brw-rw---- 1 root disk 252, 2 Jul 2 11:09 /dev/mapper/isw_bacdehijbd_MyArray0p2 # ls -l /dev/disk/by-id/dm-name-isw_bacdehijbd_MyArray0p2 lrwxrwxrwx 1 root root 10 Jul 2 11:09 /dev/disk/by-id/dm-name-isw_bacdehijbd_MyArray0p2 -> ../../dm-2 # ls -l /dev/dm-2 brw-rw---- 1 root disk 252, 2 Jul 2 11:09 /dev/dm-2 To determine if two names refer to the same block special device their major, minor numbers need to be compared, instead of string comparing their names. Implement class BlockSpecial which encapsulates the name and major, minor numbers for a block special device. Also performs comparison as needed. See bug 767842 comments 4 and 5 for further investigation and decision for choosing to implement a class. Replace name strings in the LVM2_PV_Info module with BlockSpecial objects performing correct block special device comparison. Bug 767842 - File system usage missing when tools report alternate block device names
61 lines
1.2 KiB
Plaintext
61 lines
1.2 KiB
Plaintext
# List of source files containing translatable strings.
|
|
# Please keep this file sorted alphabetically.
|
|
gparted.appdata.xml.in
|
|
gparted.desktop.in.in
|
|
include/Utils.h
|
|
src/BlockSpecial.cc
|
|
src/Copy_Blocks.cc
|
|
src/Dialog_Base_Partition.cc
|
|
src/Dialog_Disklabel.cc
|
|
src/Dialog_FileSystem_Label.cc
|
|
src/Dialog_Partition_Copy.cc
|
|
src/Dialog_Partition_Info.cc
|
|
src/Dialog_Partition_Name.cc
|
|
src/Dialog_Partition_New.cc
|
|
src/Dialog_Partition_Resize_Move.cc
|
|
src/Dialog_Progress.cc
|
|
src/DialogFeatures.cc
|
|
src/DialogManageFlags.cc
|
|
src/Dialog_Rescue_Data.cc
|
|
src/DMRaid.cc
|
|
src/FileSystem.cc
|
|
src/GParted_Core.cc
|
|
src/HBoxOperations.cc
|
|
src/LVM2_PV_Info.cc
|
|
src/LUKS_Info.cc
|
|
src/OperationChangeUUID.cc
|
|
src/OperationCopy.cc
|
|
src/OperationCheck.cc
|
|
src/OperationCreate.cc
|
|
src/OperationDelete.cc
|
|
src/OperationFormat.cc
|
|
src/OperationLabelFileSystem.cc
|
|
src/OperationNamePartition.cc
|
|
src/OperationResizeMove.cc
|
|
src/Partition.cc
|
|
src/PartitionLUKS.cc
|
|
src/PartitionVector.cc
|
|
src/ProgressBar.cc
|
|
src/SWRaid_Info.cc
|
|
src/TreeView_Detail.cc
|
|
src/Utils.cc
|
|
src/Win_GParted.cc
|
|
src/btrfs.cc
|
|
src/exfat.cc
|
|
src/ext2.cc
|
|
src/f2fs.cc
|
|
src/fat16.cc
|
|
src/hfs.cc
|
|
src/hfsplus.cc
|
|
src/jfs.cc
|
|
src/linux_swap.cc
|
|
src/lvm2_pv.cc
|
|
src/luks.cc
|
|
src/main.cc
|
|
src/ntfs.cc
|
|
src/nilfs2.cc
|
|
src/reiser4.cc
|
|
src/reiserfs.cc
|
|
src/ufs.cc
|
|
src/xfs.cc
|