]> git.proxmox.com Git - proxmox-backup.git/log
proxmox-backup.git
3 years agoui: wrap regexText in gettext() for translations
Oguz Bektas [Thu, 4 Feb 2021 15:32:47 +0000 (16:32 +0100)]
ui: wrap regexText in gettext() for translations

also fix a small typo in recovery keys text

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
3 years agoui: tape/ChangerStatus: add 'is labeled' column for tapes
Dominik Csapak [Thu, 4 Feb 2021 12:56:32 +0000 (13:56 +0100)]
ui: tape/ChangerStatus: add 'is labeled' column for tapes

so that a user can see if a tape in a library is not yet labeled

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: tape/PoolConfig: add flex to columns
Dominik Csapak [Thu, 4 Feb 2021 12:56:31 +0000 (13:56 +0100)]
ui: tape/PoolConfig: add flex to columns

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: tape/PoolEdit: add selector for encryption keys
Dominik Csapak [Thu, 4 Feb 2021 12:56:30 +0000 (13:56 +0100)]
ui: tape/PoolEdit: add selector for encryption keys

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: tape: add EncryptionPanel to add/remove encryption keys
Dominik Csapak [Thu, 4 Feb 2021 12:56:29 +0000 (13:56 +0100)]
ui: tape: add EncryptionPanel to add/remove encryption keys

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agodocs: index: update copyright years
Thomas Lamprecht [Thu, 4 Feb 2021 15:06:38 +0000 (16:06 +0100)]
docs: index: update copyright years

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 1.0.8-1 v1.0.8
Thomas Lamprecht [Thu, 4 Feb 2021 11:39:46 +0000 (12:39 +0100)]
bump version to 1.0.8-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agodocs: tech overview: avoid 'we' and other small style fixes/additions
Thomas Lamprecht [Thu, 4 Feb 2021 11:27:13 +0000 (12:27 +0100)]
docs: tech overview: avoid 'we' and other small style fixes/additions

"we" should be avoided, it's never quite clear who is "we" in the
context here and it leads to some technical wrong meanings, e.g., we
(here assumed to be "we developers") do not read any backup data, the
Proxmox Backup client does.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agodocs: tech overfiew: fix line length
Thomas Lamprecht [Thu, 4 Feb 2021 11:05:27 +0000 (12:05 +0100)]
docs: tech overfiew: fix line length

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agodocs: explain some technical details about datastores/chunks
Dominik Csapak [Fri, 11 Dec 2020 12:17:09 +0000 (13:17 +0100)]
docs: explain some technical details about datastores/chunks

adds explanations for:
* what datastores are
* their relation with snapshots/chunks
* basic information about chunk directory structures
* fixed-/dynamically-sized chunks
* special handling of encrypted chunks
* hash collision probability
* limitation of file-based backups

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: task summary: add verification jobs to count
Dylan Whyte [Wed, 3 Feb 2021 13:15:57 +0000 (14:15 +0100)]
ui: task summary: add verification jobs to count

fixes a bug in which verification jobs were being excluded from the
verify task summary.

Signed-off-by: Dylan Whyte <d.whyte@proxmox.com>
3 years agotape: MediaPool - replace use_offline_media with changer_name
Dietmar Maurer [Thu, 4 Feb 2021 09:15:18 +0000 (10:15 +0100)]
tape: MediaPool - replace use_offline_media with changer_name

This way, we can improve location_is_available, because we only
consider media from that changer as available.

3 years agotape: improve code reuse
Dietmar Maurer [Thu, 4 Feb 2021 08:39:16 +0000 (09:39 +0100)]
tape: improve code reuse

3 years agotape: fix tests for BlockedReader
Dietmar Maurer [Thu, 4 Feb 2021 07:54:54 +0000 (08:54 +0100)]
tape: fix tests for BlockedReader

3 years agotape: add multi volume reader/writer implementations
Dietmar Maurer [Thu, 4 Feb 2021 07:36:35 +0000 (08:36 +0100)]
tape: add multi volume reader/writer implementations

We currently do not use it. Added anaways, to show the possibility.

3 years agotape: cleanup - move tape file readers/writers into src/tape/file_formats folder
Dietmar Maurer [Thu, 4 Feb 2021 06:58:34 +0000 (07:58 +0100)]
tape: cleanup - move tape file readers/writers into src/tape/file_formats folder

3 years agotape: allow to abort restore tasks
Dietmar Maurer [Thu, 4 Feb 2021 06:05:43 +0000 (07:05 +0100)]
tape: allow to abort restore tasks

3 years agocleanup: use task_log macro
Dietmar Maurer [Thu, 4 Feb 2021 05:55:18 +0000 (06:55 +0100)]
cleanup: use task_log macro

3 years agoHttpsConnector: use hostname instead of URL again
Wolfgang Bumiller [Wed, 3 Feb 2021 14:09:19 +0000 (15:09 +0100)]
HttpsConnector: use hostname instead of URL again

fixes connecting to hosts with valid certificates without a
pinned fingerprint
this was accidentally changed in the tokio-1.0 updates
apparently

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Fixes: 0f860f712f86 ("tokio 1.0: update to new tokio-openssl interface")
3 years agotape: BlockedReader - always consume EOF
Dietmar Maurer [Wed, 3 Feb 2021 12:15:18 +0000 (13:15 +0100)]
tape: BlockedReader - always consume EOF

3 years agoupdate copyright years
Thomas Lamprecht [Wed, 3 Feb 2021 11:04:27 +0000 (12:04 +0100)]
update copyright years

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 1.0.7-1 v1.0.7
Thomas Lamprecht [Mon, 1 Feb 2021 15:29:45 +0000 (16:29 +0100)]
bump version to 1.0.7-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agodocs: tfa: add screenshots
Thomas Lamprecht [Wed, 3 Feb 2021 09:33:32 +0000 (10:33 +0100)]
docs: tfa: add screenshots

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: tfa: fix emptyText for password
Thomas Lamprecht [Wed, 3 Feb 2021 09:21:56 +0000 (10:21 +0100)]
ui: tfa: fix emptyText for password

One needs to enter their password, not the one from the user one
adds/deletes TFA.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agod/control: update
Thomas Lamprecht [Wed, 3 Feb 2021 09:36:11 +0000 (10:36 +0100)]
d/control: update

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agotape: add media pool regression tests
Dietmar Maurer [Wed, 3 Feb 2021 09:23:04 +0000 (10:23 +0100)]
tape: add media pool regression tests

3 years agotape: add regresion test for media state
Dietmar Maurer [Wed, 3 Feb 2021 08:34:31 +0000 (09:34 +0100)]
tape: add regresion test for media state

3 years agotape: improve pmt command line completion
Dietmar Maurer [Wed, 3 Feb 2021 07:54:12 +0000 (08:54 +0100)]
tape: improve pmt command line completion

3 years agodepend on proxmox 0.10.1
Dietmar Maurer [Wed, 3 Feb 2021 07:53:34 +0000 (08:53 +0100)]
depend on proxmox 0.10.1

3 years agoui: tape: add TapeInventory panel
Dominik Csapak [Tue, 2 Feb 2021 13:00:39 +0000 (14:00 +0100)]
ui: tape: add TapeInventory panel

since we do not show the tapes anymore in the BackupOverview, add
another panel where we can list the available tapes in the inventory

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: tape: add Restore Window
Dominik Csapak [Tue, 2 Feb 2021 13:00:38 +0000 (14:00 +0100)]
ui: tape: add Restore Window

in the BackupOverview, when a media-set is selected

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: tape: TapeBackupWindow: add missing DriveSelector
Dominik Csapak [Tue, 2 Feb 2021 13:00:37 +0000 (14:00 +0100)]
ui: tape: TapeBackupWindow: add missing DriveSelector

and make it a bit wider

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: tape: rework BackupOverview
Dominik Csapak [Tue, 2 Feb 2021 13:00:36 +0000 (14:00 +0100)]
ui: tape: rework BackupOverview

instead of grouping by tape (which is rarely interesting),
group by pool -> group -> id -> mediaset

this way a user looking for a backup of specific vm can do just that

we may want to have an additional view here were we list all snapshots
included in the selected media-set ?

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: refactor get_type_icon_cls
Dominik Csapak [Tue, 2 Feb 2021 13:00:35 +0000 (14:00 +0100)]
ui: refactor get_type_icon_cls

we need this later again

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoapi2/types/tape/media: add media_set_ctime to MediaContentEntry
Dominik Csapak [Tue, 2 Feb 2021 13:00:34 +0000 (14:00 +0100)]
api2/types/tape/media: add media_set_ctime to MediaContentEntry

to be able to better sort in the ui

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agotest: define tape tests as submodule
Dietmar Maurer [Tue, 2 Feb 2021 13:38:15 +0000 (14:38 +0100)]
test: define tape tests as submodule

3 years agotape: set correct ownership on lock file
Dietmar Maurer [Tue, 2 Feb 2021 13:18:57 +0000 (14:18 +0100)]
tape: set correct ownership on lock file

3 years agotest: src/tape/inventory.rs - avoid chown when running tests
Dietmar Maurer [Tue, 2 Feb 2021 12:43:16 +0000 (13:43 +0100)]
test: src/tape/inventory.rs - avoid chown when running tests

3 years agofix debian/control
Dietmar Maurer [Tue, 2 Feb 2021 11:33:00 +0000 (12:33 +0100)]
fix debian/control

3 years agotest: add regression tests for tape inventory
Dietmar Maurer [Tue, 2 Feb 2021 11:17:54 +0000 (12:17 +0100)]
test: add regression tests for tape inventory

3 years agobump pxar to 0.8
Wolfgang Bumiller [Tue, 2 Feb 2021 10:02:08 +0000 (11:02 +0100)]
bump pxar to 0.8

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agotape: add pmt stoptions/stsethoptions/stclearoptions
Dietmar Maurer [Tue, 2 Feb 2021 07:58:02 +0000 (08:58 +0100)]
tape: add pmt stoptions/stsethoptions/stclearoptions

3 years agotape: add pmt setblk
Dietmar Maurer [Tue, 2 Feb 2021 06:19:54 +0000 (07:19 +0100)]
tape: add pmt setblk

3 years agothape: add read_tapedev_options, display driver options with status command
Dietmar Maurer [Tue, 2 Feb 2021 05:39:43 +0000 (06:39 +0100)]
thape: add read_tapedev_options, display driver options with status command

3 years agodocs: add initial TFA documentation
Thomas Lamprecht [Mon, 1 Feb 2021 18:46:07 +0000 (19:46 +0100)]
docs: add initial TFA documentation

better than nothing..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agocleanup: remove MT_ST_ prefix from SetDrvBufferOptions
Dietmar Maurer [Mon, 1 Feb 2021 16:54:53 +0000 (17:54 +0100)]
cleanup: remove MT_ST_ prefix from SetDrvBufferOptions

3 years agopaperkey: rustfmt
Fabian Grünbichler [Mon, 1 Feb 2021 13:06:18 +0000 (14:06 +0100)]
paperkey: rustfmt

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agopaperkey: simplify block generation
Fabian Grünbichler [Mon, 1 Feb 2021 13:06:17 +0000 (14:06 +0100)]
paperkey: simplify block generation

the chunk-iterator already does exactly what we want here..

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agopaperkey: allow RSA keys without passphrase
Fabian Grünbichler [Mon, 1 Feb 2021 13:06:16 +0000 (14:06 +0100)]
paperkey: allow RSA keys without passphrase

some users might want to store the plain version of their master key for
long-term storage and rely on physical security instead of a passphrase
to protect the paper key.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agoui: tfa: adapt low recovery key hint, drop unused other hint
Thomas Lamprecht [Mon, 1 Feb 2021 14:39:56 +0000 (15:39 +0100)]
ui: tfa: adapt low recovery key hint, drop unused other hint

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: webauthn: add notes/warnings for better UX
Thomas Lamprecht [Mon, 1 Feb 2021 14:37:43 +0000 (15:37 +0100)]
ui: webauthn: add notes/warnings for better UX

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: tfa: add auto-fill button for webAuthn setup
Thomas Lamprecht [Mon, 1 Feb 2021 13:53:45 +0000 (14:53 +0100)]
ui: tfa: add auto-fill button for webAuthn setup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agochange half-ticket time range from -120..240 to -60..600
Wolfgang Bumiller [Mon, 1 Feb 2021 14:13:01 +0000 (15:13 +0100)]
change half-ticket time range from -120..240 to  -60..600

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agotape: do not use drive.open() within pmt
Dietmar Maurer [Mon, 1 Feb 2021 11:39:50 +0000 (12:39 +0100)]
tape: do not use drive.open() within pmt

Do not fail if no media is loaded. Inportant for load command.

3 years agotape: add pmt lock/unlock
Dietmar Maurer [Mon, 1 Feb 2021 11:18:20 +0000 (12:18 +0100)]
tape: add pmt lock/unlock

3 years agotape: fix tape alert flag decoding
Dietmar Maurer [Mon, 1 Feb 2021 11:17:43 +0000 (12:17 +0100)]
tape: fix tape alert flag decoding

3 years agobump apt-pkg-native dependency
Fabian Grünbichler [Mon, 1 Feb 2021 10:51:50 +0000 (11:51 +0100)]
bump apt-pkg-native dependency

our patches got applied upstream, and a release was cut, so we no longer
need to depend on a manually patched version here.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agoui: tfa: improve button text for webAuthn
Thomas Lamprecht [Mon, 1 Feb 2021 10:48:33 +0000 (11:48 +0100)]
ui: tfa: improve button text for webAuthn

So users now what to press for starting off a webauthn challenge.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agodebcargo: fix maintainer directive"
Fabian Grünbichler [Mon, 1 Feb 2021 10:02:55 +0000 (11:02 +0100)]
debcargo: fix maintainer directive"

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agotape: add pmt bsr/fsr
Dietmar Maurer [Mon, 1 Feb 2021 09:39:04 +0000 (10:39 +0100)]
tape: add pmt bsr/fsr

3 years agotape: add pmt asf
Dietmar Maurer [Mon, 1 Feb 2021 09:32:21 +0000 (10:32 +0100)]
tape: add pmt asf

3 years agotape: pmt - fix count parameter schema
Dietmar Maurer [Mon, 1 Feb 2021 09:21:25 +0000 (10:21 +0100)]
tape: pmt - fix count parameter schema

3 years agotape: add pmt fsfm/bsfm, pass count as arg_param
Dietmar Maurer [Mon, 1 Feb 2021 09:18:18 +0000 (10:18 +0100)]
tape: add pmt fsfm/bsfm, pass count as arg_param

3 years agotape: ui - remove drive from pool config
Dietmar Maurer [Mon, 1 Feb 2021 09:01:06 +0000 (10:01 +0100)]
tape: ui - remove drive from pool config

3 years agogarbage_collection: only ignore 'missing chunk' errors
Dominik Csapak [Mon, 1 Feb 2021 08:07:12 +0000 (09:07 +0100)]
garbage_collection: only ignore 'missing chunk' errors

with the fix for #2909 (improving handling missing chunks), we
changed from bailing to warning during a garbage collection when
updating the atime of a chunk.

but, updating the atime can not only fail when the chunk is missing,
but also on other occasions, e.g. no permissions or more importantly,
no space left on the device. in that case, the atime of a valid and used
chunk cannot be updated, and the second sweep of the gc will remove that chunk.
[0] is a real world example of that happening.

instead, only warn on really missin chunks, and bail on all other
errors.

0: https://forum.proxmox.com/threads/pbs-server-full-two-days-later-almost-empty.83274/

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agotape: remove drive from pool config
Dietmar Maurer [Mon, 1 Feb 2021 08:14:28 +0000 (09:14 +0100)]
tape: remove drive from pool config

3 years agotape: add pmt weof
Dietmar Maurer [Sun, 31 Jan 2021 16:33:07 +0000 (17:33 +0100)]
tape: add pmt weof

3 years agocleanup: avoid compiler warnings
Dietmar Maurer [Sun, 31 Jan 2021 16:02:55 +0000 (17:02 +0100)]
cleanup: avoid compiler warnings

3 years agotape: add pmt bsf
Dietmar Maurer [Sun, 31 Jan 2021 16:00:15 +0000 (17:00 +0100)]
tape: add pmt bsf

3 years agotape: add pmt fsf
Dietmar Maurer [Sun, 31 Jan 2021 15:49:48 +0000 (16:49 +0100)]
tape: add pmt fsf

3 years agotape: add pmt erase
Dietmar Maurer [Sun, 31 Jan 2021 15:34:10 +0000 (16:34 +0100)]
tape: add pmt erase

3 years agotape: add pmt command line tool
Dietmar Maurer [Sun, 31 Jan 2021 15:19:53 +0000 (16:19 +0100)]
tape: add pmt command line tool

Experimental, not installed by now.

3 years agopostinst: add user backup to group tape
Dietmar Maurer [Sat, 30 Jan 2021 10:48:49 +0000 (11:48 +0100)]
postinst: add user backup to group tape

So that it is possible to access tape and changer devcies.

3 years agotape: API type cleanup, use serde flatten to derive types
Dietmar Maurer [Sat, 30 Jan 2021 08:36:54 +0000 (09:36 +0100)]
tape: API type cleanup, use serde flatten to derive types

3 years agotape: move scan_drives API code to correct file
Dietmar Maurer [Sat, 30 Jan 2021 07:03:17 +0000 (08:03 +0100)]
tape: move scan_drives API code to correct file

3 years agoui: tape/ChangerStatus - use POST for barcode-label-media
Dietmar Maurer [Fri, 29 Jan 2021 16:06:53 +0000 (17:06 +0100)]
ui: tape/ChangerStatus - use POST for barcode-label-media

3 years agoui: tape/ChangerStatus: add missing tooltips
Dominik Csapak [Fri, 29 Jan 2021 13:57:52 +0000 (14:57 +0100)]
ui: tape/ChangerStatus: add missing tooltips

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: tape: change wrong window title
Dominik Csapak [Fri, 29 Jan 2021 13:57:51 +0000 (14:57 +0100)]
ui: tape: change wrong window title

this is the 'status' msgbox not the label information

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: tape/ChangerStatus: add import action for import/export slots
Dominik Csapak [Fri, 29 Jan 2021 13:57:50 +0000 (14:57 +0100)]
ui: tape/ChangerStatus: add import action for import/export slots

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: tape: add Changer config grid
Dominik Csapak [Fri, 29 Jan 2021 13:57:49 +0000 (14:57 +0100)]
ui: tape: add Changer config grid

analogous to the drive grid

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agotape: proxmox-tape - use API instead of direct functions calls
Dietmar Maurer [Fri, 29 Jan 2021 10:49:11 +0000 (11:49 +0100)]
tape: proxmox-tape - use API instead of direct functions calls

3 years agotape: proxmox-tape inventory: call API
Dietmar Maurer [Fri, 29 Jan 2021 10:21:57 +0000 (11:21 +0100)]
tape: proxmox-tape inventory: call API

3 years agotape: proxmox-tape - use API instead of direct functions calls
Dietmar Maurer [Fri, 29 Jan 2021 09:50:11 +0000 (10:50 +0100)]
tape: proxmox-tape - use API instead of direct functions calls

3 years agocleanup: factor out common client code to view task log/result
Dietmar Maurer [Fri, 29 Jan 2021 09:10:04 +0000 (10:10 +0100)]
cleanup: factor out common client code to view task log/result

3 years agotape: improve backup task abort behaviour
Dietmar Maurer [Fri, 29 Jan 2021 08:23:39 +0000 (09:23 +0100)]
tape: improve backup task abort behaviour

3 years agoworker_task: log something when we receive an abort request
Dietmar Maurer [Fri, 29 Jan 2021 08:22:37 +0000 (09:22 +0100)]
worker_task: log something when we receive an abort request

3 years agotape: make it possible to abort tape backup tasks (check_abort)
Dietmar Maurer [Fri, 29 Jan 2021 08:07:55 +0000 (09:07 +0100)]
tape: make it possible to abort tape backup tasks (check_abort)

Also use task_log makro instead of worker.log.

3 years agodisplay_task_log: make it possible to abort tasks with CTRL-C
Dietmar Maurer [Fri, 29 Jan 2021 08:06:15 +0000 (09:06 +0100)]
display_task_log: make it possible to abort tasks with CTRL-C

3 years agoapi2/reader: asyncify the reader worker task
Dominik Csapak [Tue, 26 Jan 2021 10:17:02 +0000 (11:17 +0100)]
api2/reader: asyncify the reader worker task

this way, the code is much more readable

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agotape: use worker task for eject-media api
Dietmar Maurer [Thu, 28 Jan 2021 15:46:28 +0000 (16:46 +0100)]
tape: use worker task for eject-media api

3 years agotape: proxmox-tape - use api for erase-media and rewind
Dietmar Maurer [Thu, 28 Jan 2021 15:36:10 +0000 (16:36 +0100)]
tape: proxmox-tape - use api for erase-media and rewind

3 years agotape: gui: s/encryption/encrypt/ in media pool config panel
Dietmar Maurer [Thu, 28 Jan 2021 14:50:01 +0000 (15:50 +0100)]
tape: gui: s/encryption/encrypt/ in media pool config panel

3 years agotape: media_pool config api - set protected flags where required
Dietmar Maurer [Thu, 28 Jan 2021 14:42:32 +0000 (15:42 +0100)]
tape: media_pool config api - set protected flags where required

3 years agocleanup: avoid compiler warning
Dietmar Maurer [Thu, 28 Jan 2021 14:32:21 +0000 (15:32 +0100)]
cleanup: avoid compiler warning

3 years agotape/drive/linux_tape: fix and refactor usage of sg-tape-cmd
Dominik Csapak [Thu, 28 Jan 2021 14:11:20 +0000 (15:11 +0100)]
tape/drive/linux_tape: fix and refactor usage of sg-tape-cmd

when executing this code as non-root, we use sg-tape-cmd (a setuid binary)
to execute various ioctls on the tape device

we give the command the open tape device fd as stdin, but did not
dup it, so the std::process:Stdio handle closed it on drop,
which let subsequent operation on that file fail (since it was closed)

fix it by dup'ing it before giving it to the command, and also refactor
the calling code, so that we do not forget to do this

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agotape: change changer-drive-id to changer-drivenum
Dominik Csapak [Thu, 28 Jan 2021 11:59:55 +0000 (12:59 +0100)]
tape: change changer-drive-id to changer-drivenum

because it changed in the config

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agotape/changer: refactor marking of import/export slots from config
Dominik Csapak [Thu, 28 Jan 2021 11:59:54 +0000 (12:59 +0100)]
tape/changer: refactor marking of import/export slots from config

we did this for 'mtx', but missed it for the sg_pt_changer code
refactor it into the MtxStatus strut, and call it from both
code paths

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agotape/changer: add vendor/model to DriveStatus
Dominik Csapak [Thu, 28 Jan 2021 11:59:53 +0000 (12:59 +0100)]
tape/changer: add vendor/model to DriveStatus

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: tape: use panels in tape interface
Dominik Csapak [Thu, 28 Jan 2021 11:59:52 +0000 (12:59 +0100)]
ui: tape: use panels in tape interface

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: tape: move TapeManagement.js to tape dir
Dominik Csapak [Thu, 28 Jan 2021 11:59:51 +0000 (12:59 +0100)]
ui: tape: move TapeManagement.js to tape dir

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>