NetBSD/usr.sbin/sysinst/msg.pm.pl

167 lines
6.8 KiB
Perl
Raw Permalink Normal View History

/* $NetBSD: msg.pm.pl,v 1.4 2020/11/05 11:10:11 martin Exp $ */
Rework internal data structures and "interfaces to user interface" functions to get rid of all disklabel assumptions. Previously (even for GPT partitioning) struct disklabel was used, which obviously breaks large disk setups. Also many MD parts and parts of the user interface assumed (a) a struct disklabel is used internally to store partitioning information and (b) partitions are named 'a' ... $MAXPART. Get rid of this and replace it with a quite abstract interface that should be able to deal with all variants in partition storage: - partitions are stored in a (partly abstract) struct disk_partitions and most parts of it are only accessed via accessor functions provided by a "partitioning scheme". - implement partitioning schemes for MBR, disklabel and GPT (with likely RDB [amiga] and Apple Partition Map [mac*] to follow soon) - partitioning schemes may be cascaded, e.g. on x86 when using MBR as "outer partitions", we have disklabel as "inner partitions". - all user interface goes via accessor functions in the partitioning scheme, some of which return pointers to special user interface descriptors (e.g. to allow editing partition flags, which are scheme specific) Overall the user interface changes (in this initial step) are minimal but noticable. A new Anita is needed for automatic test setups - many thanks to Andreas Gustafsson for lots of early testing and a new Anita version, and to Manuel Bouyer for cooperation and tests of the Anita release. This work was sponsored by The NetBSD Foundation, Inc.
2019-06-12 09:20:17 +03:00
/*
* Copyright 1997 Piermont Information Systems Inc.
* All rights reserved.
*
* Written by Philip A. Nelson for Piermont Information Systems Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. The name of Piermont Information Systems Inc. may not be used to endorse
* or promote products derived from this software without specific prior
* written permission.
*
* THIS SOFTWARE IS PROVIDED BY PIERMONT INFORMATION SYSTEMS INC. ``AS IS''
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL PIERMONT INFORMATION SYSTEMS INC. BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
*/
/* extended partition manager message catalog -- Polish, machine independent */
message fillzeros {Wype<EFBFBD>nij zerami}
message fillrandom {Wype<EFBFBD>nij losowymi danymi}
message raid0 {0 - brak parzysto<EFBFBD>ci, tylko proste rozk<EFBFBD>adanie.}
message raid1 {1 - Mirroring. Parytet jest lustro.}
message raid4 {4 - Malowanie z parytetu przechowywanych w ostatniej cz<EFBFBD><EFBFBD>ci.}
message raid5 {5 - Malowanie z parytetu w tych wszystkich element<EFBFBD>w.}
message wannaunblock {Urz<EFBFBD>dzenie jest zablokowane. Czy chcesz, aby zmusi<EFBFBD> go odblokowa<EFBFBD> i kontynuowa<EFBFBD>?}
message wannatry {Czy chcesz spr<EFBFBD>bowa<EFBFBD>?}
message create_cgd {Utw<EFBFBD>rz wolumen kryptograficznych (CGD)}
message create_vnd {Utw<EFBFBD>rz wirtualnego obraz dysku (VND)}
Rework internal data structures and "interfaces to user interface" functions to get rid of all disklabel assumptions. Previously (even for GPT partitioning) struct disklabel was used, which obviously breaks large disk setups. Also many MD parts and parts of the user interface assumed (a) a struct disklabel is used internally to store partitioning information and (b) partitions are named 'a' ... $MAXPART. Get rid of this and replace it with a quite abstract interface that should be able to deal with all variants in partition storage: - partitions are stored in a (partly abstract) struct disk_partitions and most parts of it are only accessed via accessor functions provided by a "partitioning scheme". - implement partitioning schemes for MBR, disklabel and GPT (with likely RDB [amiga] and Apple Partition Map [mac*] to follow soon) - partitioning schemes may be cascaded, e.g. on x86 when using MBR as "outer partitions", we have disklabel as "inner partitions". - all user interface goes via accessor functions in the partitioning scheme, some of which return pointers to special user interface descriptors (e.g. to allow editing partition flags, which are scheme specific) Overall the user interface changes (in this initial step) are minimal but noticable. A new Anita is needed for automatic test setups - many thanks to Andreas Gustafsson for lots of early testing and a new Anita version, and to Manuel Bouyer for cooperation and tests of the Anita release. This work was sponsored by The NetBSD Foundation, Inc.
2019-06-12 09:20:17 +03:00
message create_vg {Utw<EFBFBD>rz grup<EFBFBD> wolumin<EFBFBD>w (LVM VG)}
message create_lv {Utw<EFBFBD>rz wolumin logiczny}
message create_raid {Utw<EFBFBD>rz oprogramowania RAID}
message updpmlist {Aktualizuj list<EFBFBD> urz<EFBFBD>dze<EFBFBD>}
message savepm {Zapisz zmiany}
message pmblocked {ZABLOK.}
message pmunchanged {BEZ ZMIAN}
message pmused {U<EFBFBD>YWANE}
message pmmounted {(zamontowany)}
message pmunused {(nieu<EFBFBD>ywany)}
message pmgptdisk {Dysku z GPT}
message finishpm {Zako<EFBFBD>cz partycjonowanie}
message limitcount {Limit liczby urz<EFBFBD>dze<EFBFBD> zosta<EFBFBD> osi<EFBFBD>gni<EFBFBD>ty!}
message invaliddev {Nieprawid<EFBFBD>owy urz<EFBFBD>dzenie!}
message avdisks {Dost<EFBFBD>pne dysk<EFBFBD>w:}
message nofreedev {Nie mo<EFBFBD>na przydzieli<EFBFBD> w<EFBFBD>ze<EFBFBD>!}
message partman_header
{Partition Manager. Wszystkie dyski, partycje oraz itp. tam wy<EFBFBD>wietlane.
Je<EFBFBD>li chcesz korzysta<EFBFBD> z RAID, LVM lub CGD, wykonaj nast<EFBFBD>puj<EFBFBD>ce kroki:
1) Tworzenie partycji z potrzebnego typu;
2) Utw<EFBFBD>rz RAID / LVM VG / CGD korzystania z tych partycji; 3) Zapisz go;
4) Tworzenie partycji dla RAID / CGD lub Logical Volumes dla LVM.}
/* used to form strings like: "vnd0 on /var/tmp/disk1.img" */
message pm_menu_on {on}
/* Called with: Example
* $0 = device name raid0
* $1 = raid level 1
*/
message raid_menufmt {$0 (level $1)}
message raid_err_menufmt {EMPTY RAID!}
message raid_disks_fmt {Dyski}
message raid_spares_fmt {Cz<EFBFBD><EFBFBD>ci zamienne}
message raid_level_fmt {Poziom RAID}
message raid_numrow_fmt {numRow}
message raid_numcol_fmt {numCol}
message raid_numspare_fmt {numSpare}
message raid_sectpersu_fmt {sectPerSU}
message raid_superpar_fmt {SUsPerParityUnit}
message raid_superrec_fmt {SUsPerReconUnit}
message raid_nomultidim {Tablice wielowymiarowe nie s<EFBFBD> obs<EFBFBD>ugiwane!}
message raid_numrow_ask {numRow?}
message raid_numcol_ask {numCol?}
message raid_numspare_ask {numSpare?}
message raid_sectpersu_ask {sectPerSU?}
message raid_superpar_ask {SUsPerParityUnit?}
message raid_superrec_ask {SUsPerReconUnit?}
message raid_disks {Dyski w RAID}
message vnd_err_menufmt {<EFBFBD>CIE<EFBFBD>KA NIE ZDEFINIOWANE!}
message vnd_assign {ASSIGN}
message vnd_path_fmt {<EFBFBD>cie<EFBFBD>ka}
message vnd_assign_fmt {Create new image}
message vnd_size_fmt {Rozmiar}
message vnd_ro_fmt {Tylko do odczytu}
message vnd_geom_fmt {Ustaw geometri<EFBFBD> r<EFBFBD>cznie}
message vnd_bps_fmt {Bajt<EFBFBD>w na sektor<EFBFBD>w}
message vnd_spt_fmt {Sektory na <EFBFBD>cie<EFBFBD>ki}
message vnd_tpc_fmt {Utwory na cylinder}
message vnd_cyl_fmt {Si<EFBFBD>owniki}
message vnd_path_ask {File Path?}
message vnd_size_ask {Rozmiar (MB)?}
message vnd_bps_ask {Bajt<EFBFBD>w na sektor?}
message vnd_spt_ask {Sektory na <EFBFBD>cie<EFBFBD>k<EFBFBD>?}
message vnd_tpc_ask {Utwory na cylinder?}
message vnd_cyl_ask {Cylindry}
message cgd_err_menufmt {DISK NIE ZDEFINIOWANE!}
message cgd_dev_fmt {Urz<EFBFBD>dzenie podstawy}
message cgd_enc_fmt {Encryption}
message cgd_key_fmt {Rozmiar klucza}
message cgd_iv_fmt {Algorytm IV}
message cgd_keygen_fmt {Generowanie kluczy}
message cgd_verif_fmt {Metoda weryfikacji}
message lvm_disks {Dyski w VG}
message lvm_err_menufmt {EMPTY VG!}
message lvm_disks_fmt {PV's}
message lvm_name_fmt {Nazwa}
message lvm_maxlv_fmt {MaxLogicalVolumes}
message lvm_maxpv_fmt {MaxPhysicalVolumes}
message lvm_extsiz_fmt {PhysicalExtentSize}
message lvm_name_ask {Nazwa?}
message lvm_maxlv_ask {MaxLogicalVolumes?}
message lvm_maxpv_ask {MaxPhysicalVolumes?}
message lvm_extsiz_ask {PhysicalExtentSize (MB)?}
message lvmlv_menufmt {Wolumin logiczny}
message lvmlv_name_fmt {Nazwa}
message lvmlv_size_fmt {Rozmiar}
message lvmlv_ro_fmt {Read-only}
message lvmlv_cont_fmt {S<EFBFBD>siaduj<EFBFBD>cy}
message lvmlv_extnum_fmt {LogicalExtentsNumber}
message lvmlv_minor_fmt {Mniejsza liczba}
message lvmlv_mirrors_fmt {Mirrors}
message lvmlv_regsiz_fmt {MirrorLogRegionSize}
message lvmlv_pers_fmt {Trwa<EFBFBD>e drobne numer}
message lvmlv_readahsect_fmt {ReadAheadSectors ceny}
message lvmlv_stripes_fmt {Stripes}
message lvmlv_stripesiz_fmt {StripeSize}
message lvmlv_zero_fmt {Zerowanie pierwszej KB}
message lvmlv_name_ask {Nazwa?}
message lvmlv_size_ask {Rozmiar (MB)?}
message lvmlv_extnum_ask {LogicalExtentsNumber?}
message lvmlv_minor_ask {Mniejsza liczba?}
message lvmlv_mirrors_ask {Mirrors?}
message lvmlv_regsiz_ask {MirrorLogRegionSize?}
message lvmlv_readahsect_ask {ReadAheadSectors?}
message lvmlv_stripes_ask {Stripes?}
message notsupported {Operacja nie jest obslugiwana!}
message edit_parts {Edytuj partycje}
message switch_parts {Switch partitioning scheme}
message fmtasraid {Formatuj jako RAID}
message fmtaslvm {Formatuj jak LVM PV}
message encrypt {Szyfrowanie (CGD)}
message erase {Bezpieczne kasowanie}
message undo {Cofanie zmian}
message unconfig {Cofnij konfiguracje}
message edit {Edytuj}
message doumount {Wymus odmontowanie}