Hello community, here is the log from the commit of package libstorage-ng for openSUSE:Factory checked in at 2019-02-08 13:48:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libstorage-ng (Old) and /work/SRC/openSUSE:Factory/.libstorage-ng.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libstorage-ng" Fri Feb 8 13:48:55 2019 rev:40 rq:672545 version:4.1.86 Changes: -------- --- /work/SRC/openSUSE:Factory/libstorage-ng/libstorage-ng.changes 2019-02-04 16:10:07.101984026 +0100 +++ /work/SRC/openSUSE:Factory/.libstorage-ng.new.28833/libstorage-ng.changes 2019-02-08 13:48:58.826768345 +0100 @@ -1,0 +2,23 @@ +Thu Feb 7 05:52:13 UTC 2019 - weblate-nore...@opensuse.org + +- Translated using Weblate (Catalan) +- Translated using Weblate (Chinese (China)) +- Translated using Weblate (Czech) +- Translated using Weblate (Danish) +- Translated using Weblate (Japanese) +- Translated using Weblate (Russian) +- Translated using Weblate (Slovak) +- Translated using Weblate (Spanish) +- 4.1.86 + +-------------------------------------------------------------------- +Tue Feb 5 15:07:49 UTC 2019 - opensuse-packag...@opensuse.org + +- merge gh#openSUSE/libstorage-ng#611 +- Remove setters for non-permanent stored values +- Extend Bcache API with helper methods +- Use bcache command +- Increase minor version +- 4.1.85 + +-------------------------------------------------------------------- Old: ---- libstorage-ng-4.1.84.tar.xz New: ---- libstorage-ng-4.1.86.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libstorage-ng.spec ++++++ --- /var/tmp/diff_new_pack.rwWmca/_old 2019-02-08 13:49:00.310767880 +0100 +++ /var/tmp/diff_new_pack.rwWmca/_new 2019-02-08 13:49:00.310767880 +0100 @@ -18,7 +18,7 @@ %define libname %{name}1 Name: libstorage-ng -Version: 4.1.84 +Version: 4.1.86 Release: 0 Summary: Library for storage management License: GPL-2.0-only ++++++ libstorage-ng-4.1.84.tar.xz -> libstorage-ng-4.1.86.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.1.84/LIBVERSION new/libstorage-ng-4.1.86/LIBVERSION --- old/libstorage-ng-4.1.84/LIBVERSION 2019-02-02 13:52:28.000000000 +0100 +++ new/libstorage-ng-4.1.86/LIBVERSION 2019-02-07 06:52:13.000000000 +0100 @@ -1 +1 @@ -1.7.2 +1.8.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.1.84/VERSION new/libstorage-ng-4.1.86/VERSION --- old/libstorage-ng-4.1.84/VERSION 2019-02-02 13:52:28.000000000 +0100 +++ new/libstorage-ng-4.1.86/VERSION 2019-02-07 06:52:13.000000000 +0100 @@ -1 +1 @@ -4.1.84 +4.1.86 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.1.84/bindings/storage-catches.i new/libstorage-ng-4.1.86/bindings/storage-catches.i --- old/libstorage-ng-4.1.84/bindings/storage-catches.i 2019-02-02 13:52:28.000000000 +0100 +++ new/libstorage-ng-4.1.86/bindings/storage-catches.i 2019-02-07 06:52:13.000000000 +0100 @@ -155,6 +155,10 @@ %catches(storage::DeviceNotFoundByName, storage::DeviceHasWrongType, storage::Exception) storage::BlkDevice::find_by_any_name(const Devicegraph *devicegraph, const std::string &name); %catches(storage::DeviceNotFoundByName, storage::DeviceHasWrongType) storage::BlkDevice::find_by_name(Devicegraph *devicegraph, const std::string &name); %catches(storage::DeviceNotFoundByName, storage::DeviceHasWrongType) storage::BlkDevice::find_by_name(const Devicegraph *devicegraph, const std::string &name); +%catches(storage::WrongNumberOfChildren, storage::DeviceHasWrongType) storage::BlkDevice::get_bcache(); +%catches(storage::WrongNumberOfChildren, storage::DeviceHasWrongType) storage::BlkDevice::get_bcache() const; +%catches(storage::WrongNumberOfChildren, storage::DeviceHasWrongType) storage::BlkDevice::get_bcache_cset(); +%catches(storage::WrongNumberOfChildren, storage::DeviceHasWrongType) storage::BlkDevice::get_bcache_cset() const; %catches(storage::WrongNumberOfChildren, storage::DeviceHasWrongType) storage::BlkDevice::get_blk_filesystem(); %catches(storage::WrongNumberOfChildren, storage::DeviceHasWrongType) storage::BlkDevice::get_blk_filesystem() const; %catches(storage::WrongNumberOfChildren, storage::DeviceHasWrongType) storage::BlkDevice::get_encryption(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.1.84/po/ca.po new/libstorage-ng-4.1.86/po/ca.po --- old/libstorage-ng-4.1.84/po/ca.po 2019-02-02 13:52:28.000000000 +0100 +++ new/libstorage-ng-4.1.86/po/ca.po 2019-02-07 06:52:13.000000000 +0100 @@ -9,16 +9,16 @@ "Project-Id-Version: YaST (@memory@)\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-02-01 10:19+0100\n" -"PO-Revision-Date: 2018-11-23 13:37+0000\n" +"PO-Revision-Date: 2019-02-07 05:52+0000\n" "Last-Translator: David Medina <medi...@gmail.com>\n" -"Language-Team: Catalan <https://l10n.opensuse.org/projects/libstorage/ng-" -"master/ca/>\n" +"Language-Team: Catalan <https://l10n.opensuse.org/projects/libstorage/" +"ng-master/ca/>\n" "Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Weblate 2.18\n" +"X-Generator: Weblate 3.3\n" msgid "" "\n" @@ -1453,6 +1453,8 @@ "Detected a LUKS device next to a partition table on the\n" "device %1$s. The LUKS device will be ignored." msgstr "" +"S'ha detectat un dispositiu de LUKS al costat d'una taula de\n" +"particions al dispositiu %1$s. S'ignorarà el dispositiu de LUKS." #. TRANSLATORS: Error message displayed during probing, #. %1$s is replaced by the device name (e.g. /dev/sda) @@ -1461,6 +1463,8 @@ "Detected a LVM logical volume next to a partition table on the\n" "device %1$s. The LVM logical volume will be ignored." msgstr "" +"S'ha detectat un volum lògic d'LVM al costat d'una taula de\n" +"particions al dispositiu %1$s. S'ignorarà el volum lògic d'LVM." #. TRANSLATORS: Error message displayed during probing, #. %1$s is replaced by the device name (e.g. /dev/sda) @@ -1469,6 +1473,8 @@ "Detected a file system next to a partition table on the\n" "device %1$s. The file system will be ignored." msgstr "" +"S'ha detectat un sistema de fitxers al costat d'una taula de\n" +"particions al dispositiu %1$s. S'ignorarà el sistema de fitxers." #. TRANSLATORS: name of partition type msgid "Diagnostics Partition" @@ -2124,14 +2130,12 @@ msgstr "Ha fallat sondar els dispositius de bloc dispersos." #. TRANSLATORS: progress message -#, fuzzy msgid "Probing additional attributes" -msgstr "Ha fallat sondar particions" +msgstr "Sondant atributs addicionals" #. TRANSLATORS: error message -#, fuzzy msgid "Probing additional attributes failed" -msgstr "Ha fallat sondar particions" +msgstr "Ha fallat sondar atributs addicionals." #. TRANSLATORS: progress message msgid "Probing bcache" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.1.84/po/cs.po new/libstorage-ng-4.1.86/po/cs.po --- old/libstorage-ng-4.1.84/po/cs.po 2019-02-02 13:52:28.000000000 +0100 +++ new/libstorage-ng-4.1.86/po/cs.po 2019-02-07 06:52:13.000000000 +0100 @@ -13,10 +13,10 @@ "Project-Id-Version: YaST (@memory@)\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-02-01 10:19+0100\n" -"PO-Revision-Date: 2019-01-07 10:19+0000\n" -"Last-Translator: Vojtěch Zeisek <vojtech.zei...@opensuse.org>\n" -"Language-Team: Czech <https://l10n.opensuse.org/projects/libstorage/ng-" -"master/cs/>\n" +"PO-Revision-Date: 2019-02-07 05:52+0000\n" +"Last-Translator: Aleš Kastner <al...@volny.cz>\n" +"Language-Team: Czech <https://l10n.opensuse.org/projects/libstorage/" +"ng-master/cs/>\n" "Language: cs\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -1463,6 +1463,8 @@ "Detected a LUKS device next to a partition table on the\n" "device %1$s. The LUKS device will be ignored." msgstr "" +"Rozpoznána jednotka LUKS vedle tabulky oddílů jednotky\n" +"%1$s. Jednotka LUKS bude ignorována." #. TRANSLATORS: Error message displayed during probing, #. %1$s is replaced by the device name (e.g. /dev/sda) @@ -1471,6 +1473,8 @@ "Detected a LVM logical volume next to a partition table on the\n" "device %1$s. The LVM logical volume will be ignored." msgstr "" +"Rozpoznán logický svazek LVM vedle tabulky oddílů jednotky\n" +"%1$s. Logický svazek LVM bude ignorován." #. TRANSLATORS: Error message displayed during probing, #. %1$s is replaced by the device name (e.g. /dev/sda) @@ -1479,6 +1483,8 @@ "Detected a file system next to a partition table on the\n" "device %1$s. The file system will be ignored." msgstr "" +"Rozpoznán systém souborů vedle tabulky oddílů jednotky\n" +"%1$s. Systém souborů bude ignorován." #. TRANSLATORS: name of partition type msgid "Diagnostics Partition" @@ -2138,14 +2144,12 @@ msgstr "Test bludných bloků na zařízeních selhal" #. TRANSLATORS: progress message -#, fuzzy msgid "Probing additional attributes" -msgstr "Testování oddílů selhalo" +msgstr "Testuji přídavné atributy" #. TRANSLATORS: error message -#, fuzzy msgid "Probing additional attributes failed" -msgstr "Testování oddílů selhalo" +msgstr "Testování přídavných atributů selhalo" #. TRANSLATORS: progress message msgid "Probing bcache" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.1.84/po/da.po new/libstorage-ng-4.1.86/po/da.po --- old/libstorage-ng-4.1.84/po/da.po 2019-02-02 13:52:28.000000000 +0100 +++ new/libstorage-ng-4.1.86/po/da.po 2019-02-07 06:52:13.000000000 +0100 @@ -7,16 +7,16 @@ "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-02-01 10:19+0100\n" -"PO-Revision-Date: 2018-09-16 16:01+0000\n" +"PO-Revision-Date: 2019-02-07 05:52+0000\n" "Last-Translator: scootergrisen <scootergri...@gmail.com>\n" -"Language-Team: Danish <https://l10n.opensuse.org/projects/libstorage/ng-" -"master/da/>\n" +"Language-Team: Danish <https://l10n.opensuse.org/projects/libstorage/" +"ng-master/da/>\n" "Language: da\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Weblate 2.18\n" +"X-Generator: Weblate 3.3\n" msgid "" "\n" @@ -982,7 +982,7 @@ #. TRANSLATORS: name of object msgid "DM RAID" -msgstr "" +msgstr "DM-RAID" #. TRANSLATORS: displayed before action, #. %1$s is replaced by device name (e.g. /dev/bcache0), @@ -1872,7 +1872,7 @@ #. TRANSLATORS: name of object msgid "MD RAID" -msgstr "" +msgstr "MD-RAID" #. TRANSLATORS: name of object #, fuzzy @@ -1921,7 +1921,7 @@ #. TRANSLATORS: name of object msgid "Mount Point" -msgstr "" +msgstr "Monteringspunkt" #. TRANSLATORS: #. %1$s is replaced with the bcache name (e.g. /dev/bcache0), @@ -1996,7 +1996,7 @@ #. TRANSLATORS: name of object msgid "Partition" -msgstr "" +msgstr "Partition" #. TRANSLATORS: symbol for "pebi bytes" (best keep untranslated) msgid "PiB" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.1.84/po/es.po new/libstorage-ng-4.1.86/po/es.po --- old/libstorage-ng-4.1.84/po/es.po 2019-02-02 13:52:28.000000000 +0100 +++ new/libstorage-ng-4.1.86/po/es.po 2019-02-07 06:52:13.000000000 +0100 @@ -17,10 +17,10 @@ "Project-Id-Version: YaST (@memory@)\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-02-01 10:19+0100\n" -"PO-Revision-Date: 2019-01-25 15:14+0000\n" -"Last-Translator: Patricia Pazos <pms.mal...@hermestrans.com>\n" -"Language-Team: Spanish <https://l10n.opensuse.org/projects/libstorage/ng-" -"master/es/>\n" +"PO-Revision-Date: 2019-02-07 05:52+0000\n" +"Last-Translator: jcsl <t...@gmx.com>\n" +"Language-Team: Spanish <https://l10n.opensuse.org/projects/libstorage/" +"ng-master/es/>\n" "Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -1484,6 +1484,8 @@ "Detected a LUKS device next to a partition table on the\n" "device %1$s. The LUKS device will be ignored." msgstr "" +"Se ha detectado un dispositivo LUKS junto a una tabla de particiones en el\n" +"dispositivo %1$s. El dispositivo LUKS será ignorado." #. TRANSLATORS: Error message displayed during probing, #. %1$s is replaced by the device name (e.g. /dev/sda) @@ -1492,6 +1494,9 @@ "Detected a LVM logical volume next to a partition table on the\n" "device %1$s. The LVM logical volume will be ignored." msgstr "" +"Se ha detectado un volumen lógico LVM junto a una tabla de particiones en " +"el\n" +"dispositivo %1$s. El volumen lógico LVM será ignorado." #. TRANSLATORS: Error message displayed during probing, #. %1$s is replaced by the device name (e.g. /dev/sda) @@ -1500,6 +1505,9 @@ "Detected a file system next to a partition table on the\n" "device %1$s. The file system will be ignored." msgstr "" +"Se ha detectado un sistema de archivos junto a una tabla de particiones en " +"el\n" +"dispositivo %1$s. El sistema de archivos será ignorado." #. TRANSLATORS: name of partition type msgid "Diagnostics Partition" @@ -2160,14 +2168,12 @@ msgstr "Error al sondear dispositivos de bloque extraviados" #. TRANSLATORS: progress message -#, fuzzy msgid "Probing additional attributes" -msgstr "Error al sondear las particiones" +msgstr "Sondeando atributos adicionales" #. TRANSLATORS: error message -#, fuzzy msgid "Probing additional attributes failed" -msgstr "Error al sondear las particiones" +msgstr "Error al sondear atributos adicionales" #. TRANSLATORS: progress message msgid "Probing bcache" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.1.84/po/ja.po new/libstorage-ng-4.1.86/po/ja.po --- old/libstorage-ng-4.1.84/po/ja.po 2019-02-02 13:52:28.000000000 +0100 +++ new/libstorage-ng-4.1.86/po/ja.po 2019-02-07 06:52:13.000000000 +0100 @@ -11,16 +11,16 @@ "Project-Id-Version: libstorage\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-02-01 10:19+0100\n" -"PO-Revision-Date: 2018-11-23 23:55+0000\n" +"PO-Revision-Date: 2019-02-07 05:52+0000\n" "Last-Translator: Yasuhiko Kamata <belphe...@belbel.or.jp>\n" -"Language-Team: Japanese <https://l10n.opensuse.org/projects/libstorage/ng-" -"master/ja/>\n" +"Language-Team: Japanese <https://l10n.opensuse.org/projects/libstorage/" +"ng-master/ja/>\n" "Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: Weblate 2.18\n" +"X-Generator: Weblate 3.3\n" msgid "" "\n" @@ -1468,6 +1468,8 @@ "Detected a LUKS device next to a partition table on the\n" "device %1$s. The LUKS device will be ignored." msgstr "" +"デバイス %1$s 内のパーティションテーブルの直後に\n" +"LUKS デバイスが見つかりました。この LUKS デバイスは無視されます。" #. TRANSLATORS: Error message displayed during probing, #. %1$s is replaced by the device name (e.g. /dev/sda) @@ -1476,6 +1478,8 @@ "Detected a LVM logical volume next to a partition table on the\n" "device %1$s. The LVM logical volume will be ignored." msgstr "" +"デバイス %1$s 内のパーティションテーブルの直後に\n" +"LVM 論理ボリュームが見つかりました。この LVM 論理ボリュームは無視されます。" #. TRANSLATORS: Error message displayed during probing, #. %1$s is replaced by the device name (e.g. /dev/sda) @@ -1484,6 +1488,8 @@ "Detected a file system next to a partition table on the\n" "device %1$s. The file system will be ignored." msgstr "" +"デバイス %1$s 内のパーティションテーブルの直後に\n" +"ファイルシステムが見つかりました。このファイルシステムは無視されます。" #. TRANSLATORS: name of partition type msgid "Diagnostics Partition" @@ -2148,14 +2154,12 @@ msgstr "Stray ブロックデバイスの検出に失敗しました" #. TRANSLATORS: progress message -#, fuzzy msgid "Probing additional attributes" -msgstr "パーティションの検出に失敗しました" +msgstr "追加の属性を検出しています" #. TRANSLATORS: error message -#, fuzzy msgid "Probing additional attributes failed" -msgstr "パーティションの検出に失敗しました" +msgstr "追加属性の検出に失敗しました" #. TRANSLATORS: progress message msgid "Probing bcache" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.1.84/po/ru.po new/libstorage-ng-4.1.86/po/ru.po --- old/libstorage-ng-4.1.84/po/ru.po 2019-02-02 13:52:28.000000000 +0100 +++ new/libstorage-ng-4.1.86/po/ru.po 2019-02-07 06:52:13.000000000 +0100 @@ -5,8 +5,8 @@ "Project-Id-Version: libstorage.ru\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-11-23 14:23+0100\n" -"PO-Revision-Date: 2019-02-02 12:52+0000\n" -"Last-Translator: Nikita Maynagashev <maynagas...@palex.ru>\n" +"PO-Revision-Date: 2019-02-07 05:52+0000\n" +"Last-Translator: Alex Minton <alex...@gmail.com>\n" "Language-Team: Russian <https://l10n.opensuse.org/projects/libstorage/" "ng-master/ru/>\n" "Language: ru\n" @@ -1459,6 +1459,8 @@ "Detected a LUKS device next to a partition table on the\n" "device %1$s. The LUKS device will be ignored." msgstr "" +"Обнаружено устройство LUKS рядом с таблицей разделов на\n" +"устройстве %1$s. Устройство LUKS будет проигнорировано." #. TRANSLATORS: Error message displayed during probing, #. %1$s is replaced by the device name (e.g. /dev/sda) @@ -1467,6 +1469,8 @@ "Detected a LVM logical volume next to a partition table on the\n" "device %1$s. The LVM logical volume will be ignored." msgstr "" +"Обнаружен логический том LVM рядом с таблицей разделов на\n" +"устройстве %1$s. Логический том LVM будет проигнорирован." #. TRANSLATORS: Error message displayed during probing, #. %1$s is replaced by the device name (e.g. /dev/sda) @@ -1475,6 +1479,8 @@ "Detected a file system next to a partition table on the\n" "device %1$s. The file system will be ignored." msgstr "" +"Обнаружена файловая система рядом с таблицей разделов на\n" +"устройстве %1$s. Файловая система будет проигнорирована." #. TRANSLATORS: name of partition type msgid "Diagnostics Partition" @@ -2147,14 +2153,12 @@ msgstr "Ошибка проверки блочных устройств" #. TRANSLATORS: progress message -#, fuzzy msgid "Probing additional attributes" -msgstr "Ошибка проверки разделов" +msgstr "Проверка дополнительных атрибутов" #. TRANSLATORS: error message -#, fuzzy msgid "Probing additional attributes failed" -msgstr "Ошибка проверки разделов" +msgstr "Ошибка проверки дополнительных атрибутов" #. TRANSLATORS: progress message msgid "Probing bcache" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.1.84/po/sk.po new/libstorage-ng-4.1.86/po/sk.po --- old/libstorage-ng-4.1.84/po/sk.po 2019-02-02 13:52:28.000000000 +0100 +++ new/libstorage-ng-4.1.86/po/sk.po 2019-02-07 06:52:13.000000000 +0100 @@ -6,16 +6,16 @@ "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-02-01 10:19+0100\n" -"PO-Revision-Date: 2018-11-25 19:00+0000\n" +"PO-Revision-Date: 2019-02-07 05:52+0000\n" "Last-Translator: Ferdinand Galko <galko.ferdin...@gmail.com>\n" -"Language-Team: Slovak <https://l10n.opensuse.org/projects/libstorage/ng-" -"master/sk/>\n" +"Language-Team: Slovak <https://l10n.opensuse.org/projects/libstorage/" +"ng-master/sk/>\n" "Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" -"X-Generator: Weblate 2.18\n" +"X-Generator: Weblate 3.3\n" msgid "" "\n" @@ -2119,14 +2119,12 @@ msgstr "Kontrola blokových zariadení Stray" #. TRANSLATORS: progress message -#, fuzzy msgid "Probing additional attributes" -msgstr "Kontrola oddielov zlyhala" +msgstr "Skúmanie dodatočných atribútov" #. TRANSLATORS: error message -#, fuzzy msgid "Probing additional attributes failed" -msgstr "Kontrola oddielov zlyhala" +msgstr "Skúmanie dodatočných atribútov zlyhalo" #. TRANSLATORS: progress message msgid "Probing bcache" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.1.84/po/zh_CN.po new/libstorage-ng-4.1.86/po/zh_CN.po --- old/libstorage-ng-4.1.84/po/zh_CN.po 2019-02-02 13:52:28.000000000 +0100 +++ new/libstorage-ng-4.1.86/po/zh_CN.po 2019-02-07 06:52:13.000000000 +0100 @@ -10,7 +10,7 @@ "Project-Id-Version: YaST (@memory@)\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-02-01 10:19+0100\n" -"PO-Revision-Date: 2018-12-02 02:22+0000\n" +"PO-Revision-Date: 2019-02-07 05:52+0000\n" "Last-Translator: Marguerite Su <i...@marguerite.su>\n" "Language-Team: Chinese (China) <https://l10n.opensuse.org/projects/" "libstorage/ng-master/zh_CN/>\n" @@ -19,7 +19,7 @@ "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: Weblate 2.18\n" +"X-Generator: Weblate 3.3\n" msgid "" "\n" @@ -1416,7 +1416,7 @@ msgid "" "Detected a LUKS device next to a partition table on the\n" "device %1$s. The LUKS device will be ignored." -msgstr "" +msgstr "在设备 %1$s 上检测到分区表邻近有 LUKS 设备。该 LUKS 设备将被忽略。" #. TRANSLATORS: Error message displayed during probing, #. %1$s is replaced by the device name (e.g. /dev/sda) @@ -1424,7 +1424,7 @@ msgid "" "Detected a LVM logical volume next to a partition table on the\n" "device %1$s. The LVM logical volume will be ignored." -msgstr "" +msgstr "在设备 %1$s 上检测到分区表邻近有 LVM 逻辑卷。该逻辑卷将被忽略。" #. TRANSLATORS: Error message displayed during probing, #. %1$s is replaced by the device name (e.g. /dev/sda) @@ -1432,7 +1432,7 @@ msgid "" "Detected a file system next to a partition table on the\n" "device %1$s. The file system will be ignored." -msgstr "" +msgstr "在设备 %1$s 上检测到分区表邻近有文件系统。该文件系统将被忽略。" #. TRANSLATORS: name of partition type msgid "Diagnostics Partition" @@ -2075,14 +2075,12 @@ msgstr "探测离散区块设备失败" #. TRANSLATORS: progress message -#, fuzzy msgid "Probing additional attributes" -msgstr "探测分区失败" +msgstr "正在检测额外属性" #. TRANSLATORS: error message -#, fuzzy msgid "Probing additional attributes failed" -msgstr "探测分区失败" +msgstr "检测额外属性失败" #. TRANSLATORS: progress message msgid "Probing bcache" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.1.84/storage/Devices/Bcache.cc new/libstorage-ng-4.1.86/storage/Devices/Bcache.cc --- old/libstorage-ng-4.1.84/storage/Devices/Bcache.cc 2019-02-02 13:52:28.000000000 +0100 +++ new/libstorage-ng-4.1.86/storage/Devices/Bcache.cc 2019-02-07 06:52:13.000000000 +0100 @@ -152,13 +152,6 @@ } - void - Bcache::set_sequential_cutoff(unsigned long long size) - { - get_impl().set_sequential_cutoff(size); - } - - unsigned Bcache::get_writeback_percent() const { @@ -166,13 +159,6 @@ } - void - Bcache::set_writeback_percent(unsigned percent) - { - get_impl().set_writeback_percent(percent); - } - - vector<Bcache*> Bcache::get_all(Devicegraph* devicegraph) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.1.84/storage/Devices/Bcache.h new/libstorage-ng-4.1.86/storage/Devices/Bcache.h --- old/libstorage-ng-4.1.84/storage/Devices/Bcache.h 2019-02-02 13:52:28.000000000 +0100 +++ new/libstorage-ng-4.1.86/storage/Devices/Bcache.h 2019-02-07 06:52:13.000000000 +0100 @@ -133,15 +133,6 @@ unsigned long long get_sequential_cutoff() const; /** - * Sets sequential_cutoff attribute. - * - * This method does not make sense for Flash-only Bcache devices. - * - * @param[in] size size in a bytes - */ - void set_sequential_cutoff(unsigned long long size); - - /** * Returns percent of writeback dirty pages. * * This method does not make sense for Flash-only Bcache devices. @@ -149,15 +140,6 @@ unsigned get_writeback_percent() const; /** - * Sets writeback percent attribute. - * - * This method does not make sense for Flash-only Bcache devices. - * - * @param[in] percent target cache mode - */ - void set_writeback_percent(unsigned percent); - - /** * Get all Bcaches. */ static std::vector<Bcache*> get_all(Devicegraph* devicegraph); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.1.84/storage/Devices/BcacheCsetImpl.cc new/libstorage-ng-4.1.86/storage/Devices/BcacheCsetImpl.cc --- old/libstorage-ng-4.1.84/storage/Devices/BcacheCsetImpl.cc 2019-02-02 13:52:28.000000000 +0100 +++ new/libstorage-ng-4.1.86/storage/Devices/BcacheCsetImpl.cc 2019-02-07 06:52:13.000000000 +0100 @@ -35,6 +35,8 @@ #include "storage/UsedFeatures.h" #include "storage/Prober.h" #include "storage/Utils/Format.h" +#include "storage/Devicegraph.h" +#include "storage/Utils/ExceptionImpl.h" namespace storage @@ -263,7 +265,7 @@ const BlkDevice* blk_device = get_blk_devices()[0]; - string cmd_line = MAKE_BCACHE_BIN " -C " + quote(blk_device->get_name()); + string cmd_line = BCACHE_BIN " make -C " + quote(blk_device->get_name()); wait_for_devices({ blk_device }); @@ -336,11 +338,20 @@ void BcacheCset::Impl::do_deactivate() const { - string cmd_line = ECHO_BIN " 1 > " + quote(SYSFS_DIR "/fs/bcache/" + get_uuid() + "/stop"); + // TODO handle multiple caching devices? + + if(get_blk_devices().empty()) + ST_THROW(DeviceNotFound("No caching devices")); + + const BlkDevice* blk_device = get_blk_devices().front(); + + string cmd_line = BCACHE_BIN " unregister " + quote(blk_device->get_name()); SystemCmd cmd(cmd_line, SystemCmd::DoThrow); - sleep(1); // TODO + string cset_name = SYSFS_DIR "/fs/bcache/" + get_uuid(); + + wait_for_detach_devices({ cset_name }); } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.1.84/storage/Devices/BcacheImpl.cc new/libstorage-ng-4.1.86/storage/Devices/BcacheImpl.cc --- old/libstorage-ng-4.1.84/storage/Devices/BcacheImpl.cc 2019-02-02 13:52:28.000000000 +0100 +++ new/libstorage-ng-4.1.86/storage/Devices/BcacheImpl.cc 2019-02-07 06:52:13.000000000 +0100 @@ -615,29 +615,19 @@ if(get_type() == BcacheType::BACKED) { - const BlkDevice* blk_device = get_backing_device(); + const BlkDevice* backing_device = get_backing_device(); - string cmd_line = MAKE_BCACHE_BIN " -B " + quote(blk_device->get_name()); + string cmd_line = BCACHE_BIN " make -B " + quote(backing_device->get_name()); - wait_for_devices({ blk_device }); + wait_for_devices({ backing_device }); SystemCmd cmd(cmd_line, SystemCmd::DoThrow); - // TODO: is it enough? check with Coly how to recognize it - sleep(1); // give bcache some time to finish its async operation, so bcache device exists + wait_for_devices({ get_non_impl() }); - // TODO: Action for edit attributes will be needed if edit of existing bcache is allowed - cmd_line = ECHO_BIN " " + quote(toString(cache_mode)) + " > " + quote(SYSFS_DIR "/" + get_sysfs_path() + "/bcache/cache_mode"); + cmd_line = BCACHE_BIN " set-cachemode " + quote(backing_device->get_name()) + " " + quote(toString(cache_mode)); SystemCmd cmd2(cmd_line, SystemCmd::DoThrow); - - cmd_line = ECHO_BIN " " + to_string(writeback_percent) + " > " + quote(SYSFS_DIR "/" + get_sysfs_path() + "/bcache/writeback_percent"); - - SystemCmd cmd3(cmd_line, SystemCmd::DoThrow); - - cmd_line = ECHO_BIN " " + to_string(sequential_cutoff) + " > " + quote(SYSFS_DIR "/" + get_sysfs_path() + "/bcache/sequential_cutoff"); - - SystemCmd cmd4(cmd_line, SystemCmd::DoThrow); } } @@ -689,11 +679,11 @@ void Bcache::Impl::do_deactivate() const { - string cmd_line = ECHO_BIN " 1 > " + quote(SYSFS_DIR "/" + get_sysfs_path() + "/bcache/stop"); + string cmd_line = BCACHE_BIN " unregister " + quote(get_backing_device()->get_name()); SystemCmd cmd(cmd_line, SystemCmd::DoThrow); - sleep(1); // TODO + wait_for_detach_devices({ get_non_impl() }); } @@ -725,14 +715,9 @@ void Bcache::Impl::do_attach_bcache_cset() const { - const BcacheCset* bcache_cset = get_bcache_cset(); - - string cmd_line = ECHO_BIN " " + quote(bcache_cset->get_uuid()) + " > " + - quote(SYSFS_DIR "/" + get_sysfs_path() + "/bcache/attach"); + string cmd_line = BCACHE_BIN " attach " + quote(get_bcache_cset()->get_uuid()) + " " + quote(get_backing_device()->get_name()); SystemCmd cmd(cmd_line, SystemCmd::DoThrow); - - sleep(1); // TODO } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.1.84/storage/Devices/BcacheImpl.h new/libstorage-ng-4.1.86/storage/Devices/BcacheImpl.h --- old/libstorage-ng-4.1.84/storage/Devices/BcacheImpl.h 2019-02-02 13:52:28.000000000 +0100 +++ new/libstorage-ng-4.1.86/storage/Devices/BcacheImpl.h 2019-02-07 06:52:13.000000000 +0100 @@ -108,6 +108,9 @@ virtual void print(std::ostream& out) const override; + virtual Bcache* get_non_impl() override { return to_bcache(Device::Impl::get_non_impl()); } + virtual const Bcache* get_non_impl() const override { return to_bcache(Device::Impl::get_non_impl()); } + virtual void parent_has_new_region(const Device* parent) override; static void run_dependency_manager(Actiongraph::Impl& actiongraph); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.1.84/storage/Devices/BlkDevice.cc new/libstorage-ng-4.1.86/storage/Devices/BlkDevice.cc --- old/libstorage-ng-4.1.84/storage/Devices/BlkDevice.cc 2019-02-02 13:52:28.000000000 +0100 +++ new/libstorage-ng-4.1.86/storage/Devices/BlkDevice.cc 2019-02-07 06:52:13.000000000 +0100 @@ -274,6 +274,27 @@ } + bool + BlkDevice::has_bcache() const + { + return get_impl().has_bcache(); + } + + + Bcache* + BlkDevice::get_bcache() + { + return get_impl().get_bcache(); + } + + + const Bcache* + BlkDevice::get_bcache() const + { + return get_impl().get_bcache(); + } + + BcacheCset* BlkDevice::create_bcache_cset() { @@ -281,6 +302,27 @@ } + bool + BlkDevice::has_bcache_cset() const + { + return get_impl().has_bcache_cset(); + } + + + BcacheCset* + BlkDevice::get_bcache_cset() + { + return get_impl().get_bcache_cset(); + } + + + const BcacheCset* + BlkDevice::get_bcache_cset() const + { + return get_impl().get_bcache_cset(); + } + + bool BlkDevice::compare_by_dm_table_name(const BlkDevice* lhs, const BlkDevice* rhs) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.1.84/storage/Devices/BlkDevice.h new/libstorage-ng-4.1.86/storage/Devices/BlkDevice.h --- old/libstorage-ng-4.1.84/storage/Devices/BlkDevice.h 2019-02-02 13:52:28.000000000 +0100 +++ new/libstorage-ng-4.1.86/storage/Devices/BlkDevice.h 2019-02-07 06:52:13.000000000 +0100 @@ -205,6 +205,18 @@ */ Bcache* create_bcache(const std::string& name); + bool has_bcache() const; + + /** + * @throw WrongNumberOfChildren, DeviceHasWrongType + */ + Bcache* get_bcache(); + + /** + * @throw WrongNumberOfChildren, DeviceHasWrongType + */ + const Bcache* get_bcache() const; + /** * Creates an BcacheCset on the blk device. * @@ -212,6 +224,18 @@ */ BcacheCset* create_bcache_cset(); + bool has_bcache_cset() const; + + /** + * @throw WrongNumberOfChildren, DeviceHasWrongType + */ + BcacheCset* get_bcache_cset(); + + /** + * @throw WrongNumberOfChildren, DeviceHasWrongType + */ + const BcacheCset* get_bcache_cset() const; + /** * Compare (less than) two BlkDevices by DM table name. */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.1.84/storage/Devices/BlkDeviceImpl.cc new/libstorage-ng-4.1.86/storage/Devices/BlkDeviceImpl.cc --- old/libstorage-ng-4.1.84/storage/Devices/BlkDeviceImpl.cc 2019-02-02 13:52:28.000000000 +0100 +++ new/libstorage-ng-4.1.86/storage/Devices/BlkDeviceImpl.cc 2019-02-07 06:52:13.000000000 +0100 @@ -764,6 +764,27 @@ } + bool + BlkDevice::Impl::has_bcache() const + { + return has_single_child_of_type<const Bcache>(); + } + + + Bcache* + BlkDevice::Impl::get_bcache() + { + return get_single_child_of_type<Bcache>(); + } + + + const Bcache* + BlkDevice::Impl::get_bcache() const + { + return get_single_child_of_type<const Bcache>(); + } + + BcacheCset* BlkDevice::Impl::create_bcache_cset() { @@ -780,6 +801,27 @@ } + bool + BlkDevice::Impl::has_bcache_cset() const + { + return has_single_child_of_type<const BcacheCset>(); + } + + + BcacheCset* + BlkDevice::Impl::get_bcache_cset() + { + return get_single_child_of_type<BcacheCset>(); + } + + + const BcacheCset* + BlkDevice::Impl::get_bcache_cset() const + { + return get_single_child_of_type<const BcacheCset>(); + } + + void BlkDevice::Impl::wipe_device() const { @@ -825,4 +867,52 @@ } } + + void + wait_for_detach_devices(const vector<const BlkDevice*>& blk_devices) + { + vector<string> dev_names; + + for(const BlkDevice* dev : blk_devices) + { + dev_names.push_back(dev->get_name()); + } + + wait_for_detach_devices(dev_names); + } + + + void + wait_for_detach_devices(const vector<string>& dev_names) + { + SystemCmd(UDEVADMBIN_SETTLE); + + for (auto name : dev_names) + { + bool exists = access(name.c_str(), R_OK) == 0; + + y2mil("name:" << name << " exists:" << exists); + + if (exists) + { + // Waits a max of 5 seconds + for (int count = 0; count < 500; ++count) + { + if((count % 100) == 0) + y2mil("waiting for detach " << name); + + usleep(10000); + exists = access(name.c_str(), R_OK) == 0; + if (!exists) + break; + } + + y2mil("name:" << name << " exists:" << exists); + } + + if (exists) + ST_THROW(Exception("wait_for_detach_devices failed " + name)); + } + } + } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.1.84/storage/Devices/BlkDeviceImpl.h new/libstorage-ng-4.1.86/storage/Devices/BlkDeviceImpl.h --- old/libstorage-ng-4.1.84/storage/Devices/BlkDeviceImpl.h 2019-02-02 13:52:28.000000000 +0100 +++ new/libstorage-ng-4.1.86/storage/Devices/BlkDeviceImpl.h 2019-02-07 06:52:13.000000000 +0100 @@ -118,8 +118,18 @@ Bcache* create_bcache(const std::string& name); + bool has_bcache() const; + + Bcache* get_bcache(); + const Bcache* get_bcache() const; + BcacheCset* create_bcache_cset(); + bool has_bcache_cset() const; + + BcacheCset* get_bcache_cset(); + const BcacheCset* get_bcache_cset() const; + /** * This is a invasive version of BlkDevice::find_by_name(). If no * block device is found via the name a second search via the sysfs @@ -211,6 +221,13 @@ */ void wait_for_devices(const vector<const BlkDevice*>& blk_devices); + + /** + * Run "udevadm settle" and check non existence of all blk devices. + */ + void wait_for_detach_devices(const vector<const BlkDevice*>& blk_devices); + void wait_for_detach_devices(const vector<string>& dev_names); + } #endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.1.84/storage/Utils/StorageDefines.h new/libstorage-ng-4.1.86/storage/Utils/StorageDefines.h --- old/libstorage-ng-4.1.84/storage/Utils/StorageDefines.h 2019-02-02 13:52:28.000000000 +0100 +++ new/libstorage-ng-4.1.86/storage/Utils/StorageDefines.h 2019-02-07 06:52:13.000000000 +0100 @@ -74,7 +74,7 @@ #define BTRFSBIN "/sbin/btrfs" #define WIPEFSBIN "/sbin/wipefs" -#define MAKE_BCACHE_BIN "/usr/sbin/make-bcache" +#define BCACHE_BIN "/usr/sbin/bcache" #define MOUNTBIN "/bin/mount" #define UMOUNTBIN "/bin/umount"