gparted/po
Mike Fleetwood ab2d4f5ee6 Create BlockSpecial class and use in LVM2_PV_Info (#767842)
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
2016-08-06 09:47:58 -06:00
..
.cvsignore added FIXME cleanups (mostly messagebox related) added some more 2006-02-17 21:18:07 +00:00
ar.po Updated Arabic translation 2014-07-14 19:15:23 +01:00
bg.po Updated Bulgarian translation 2012-07-10 21:14:36 +03:00
br.po Add Language headers to po files 2016-07-21 22:35:03 +02:00
bs.po Added Bosnian translation 2015-03-13 23:44:37 +00:00
ca.po Fixes to Catalan translation 2015-04-18 20:07:17 +02:00
ca@valencia.po Add Language headers to po files 2016-07-21 22:35:03 +02:00
ChangeLog Add note that ChangeLogs are no longer used 2009-04-19 15:19:15 -06:00
cs.po Updated Czech translation 2016-06-10 07:38:36 +02:00
da.po Updated Danish translation 2014-03-14 22:43:21 +01:00
de.po Add Language headers to po files 2016-07-21 22:35:03 +02:00
dz.po Add Language headers to po files 2016-07-21 22:35:03 +02:00
el.po Updated Greek translation 2016-04-17 18:39:33 +00:00
en_CA.po Add Language headers to po files 2016-07-21 22:35:03 +02:00
en_GB.po Updated British English translation 2011-10-31 22:46:41 +00:00
eo.po Add Esperanto translation 2011-05-04 18:49:25 +02:00
es.po Add Language headers to po files 2016-07-21 22:35:03 +02:00
et.po [l10n] Updated Estonian translation 2010-12-20 15:26:08 +02:00
eu.po Add Language headers to po files 2016-07-21 22:35:03 +02:00
fa.po Add Language headers to po files 2016-07-21 22:35:03 +02:00
fi.po Updated Finnish translation 2015-10-21 07:28:33 +00:00
fr.po Updated French translation 2016-06-07 08:35:36 +00:00
gd.po Updated Scottish Gaelic translation 2016-06-11 08:02:16 +00:00
gl.po Updated Galician translations 2014-01-03 02:23:02 +01:00
gu.po Add Language headers to po files 2016-07-21 22:35:03 +02:00
he.po Updated Hebrew translation. 2012-12-28 14:33:58 +02:00
hu.po Updated Hungarian translation 2016-08-04 21:59:54 +00:00
id.po Updated Indonesian translation 2016-07-08 12:56:16 +00:00
is.po Updated Icelandic translation 2016-04-19 19:58:41 +00:00
it.po Updated Italian translation 2016-06-13 09:07:21 +00:00
ja.po l10n: Update Japanese translation 2013-05-08 23:26:38 +09:00
kk.po Updated Kazakh translation 2016-05-17 10:37:49 +00:00
ko.po Add Language headers to po files 2016-07-21 22:35:03 +02:00
LINGUAS Added Bosnian translation 2015-03-13 23:44:37 +00:00
lt.po Updated Lithuanian translation 2016-03-13 21:44:34 +02:00
lv.po Updated Latvian translation 2015-08-03 21:07:35 +03:00
mk.po Add Language headers to po files 2016-07-21 22:35:03 +02:00
ml.po Updated Malayalam Translation 2013-10-21 22:27:22 +05:30
nb.po Updated Norwegian bokmål translation from ProjectX. 2015-09-07 21:59:32 +02:00
ne.po Add Language headers to po files 2016-07-21 22:35:03 +02:00
nl.po Update Dutch translation 2016-02-22 16:39:57 +01:00
nn.po Updated Norwegian Nynorsk translation 2012-10-16 21:08:30 +02:00
oc.po Updated Occitan translation 2016-04-19 17:42:52 +00:00
pa.po Completed Punjabi Translation 2016-06-09 15:12:12 -05:00
pl.po Updated Polish translation 2016-05-21 15:08:42 +02:00
POTFILES.in Create BlockSpecial class and use in LVM2_PV_Info (#767842) 2016-08-06 09:47:58 -06:00
POTFILES.skip Fixed bug #324220 with the following changes: 2008-04-21 15:22:00 +00:00
pt.po Updated Portuguese translation 2016-07-04 14:01:27 +00:00
pt_BR.po Updated Brazilian Portuguese translation 2016-05-30 20:28:07 +00:00
ro.po Updated Romanian translation 2016-06-09 19:42:33 +00:00
ru.po Updated Russian translation 2016-04-13 18:19:30 +00:00
rw.po Add Language headers to po files 2016-07-21 22:35:03 +02:00
si.po Add Language headers to po files 2016-07-21 22:35:03 +02:00
sk.po Updated Slovak translation 2016-05-21 07:31:12 +00:00
sl.po Add Language headers to po files 2016-07-21 22:35:03 +02:00
sr.po Updated Serbian translation 2016-02-21 07:59:02 +01:00
sr@latin.po Add Language headers to po files 2016-07-21 22:35:03 +02:00
sv.po Updated Swedish translation 2016-05-21 11:11:40 +00:00
te.po Add Language headers to po files 2016-07-21 22:35:03 +02:00
th.po Updated Thai translation 2015-04-07 12:46:02 +07:00
tr.po Updated Turkish translation 2016-03-28 11:19:43 +00:00
uk.po Updated Ukrainian translation 2015-10-22 17:13:01 +03:00
vi.po Add Language headers to po files 2016-07-21 22:35:03 +02:00
zh_CN.po Update zh_CN translation 2016-04-06 15:00:00 +08:00
zh_HK.po Add Language headers to po files 2016-07-21 22:35:03 +02:00
zh_TW.po Updated Chinese (Taiwan) translation 2015-03-19 14:13:38 +00:00