public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Dietmar Maurer <dietmar@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH 00/11] Userspace tape driver
Date: Wed,  7 Apr 2021 12:22:57 +0200	[thread overview]
Message-ID: <20210407102308.9750-1-dietmar@proxmox.com> (raw)

This is a userspace drive implementation using SG_IO.

Why we do not use the Linux tape driver anymore, because:

- missing features (MAM, Encryption, ...)

- strange permission handling - only root (or CAP_SYS_RAWIO) can
   do SG_IO (SYS_RAW_IO)

- unability to detect EOT (you just get EIO)


Dietmar Maurer (11):
  tape: introduce trait BlockRead
  tape: introduce trait BlockWrite
  tape: implement LTO userspace driver
  tape: implement format/erase
  tape: fix LEOM handling
  tape: make fsf/bsf driver specific
  tape: make sure there is a filemark at the end of the tape
  sgutils2: add scsi_mode_sense helper
  tape: correctly set/display drive option
  tape: pmt - re-implement fsr/bsr
  tape: pmt - re-implement lock/unlock command

 debian/proxmox-backup-server.udev       |  18 +
 src/api2/config/changer.rs              |   4 +-
 src/api2/config/drive.rs                |  44 +-
 src/api2/tape/changer.rs                |   4 +-
 src/api2/tape/drive.rs                  |  65 +--
 src/api2/tape/mod.rs                    |   4 +-
 src/api2/types/tape/drive.rs            |  34 +-
 src/bin/pmt.rs                          | 347 +++---------
 src/bin/pmtx.rs                         |   4 +-
 src/bin/proxmox-tape.rs                 |  17 +-
 src/bin/proxmox_tape/drive.rs           |   8 +-
 src/bin/sg-tape-cmd.rs                  | 189 +------
 src/config/drive.rs                     |  18 +-
 src/tape/changer/mod.rs                 |   4 +-
 src/tape/drive/linux_tape.rs            | 173 ++++--
 src/tape/drive/lto/mod.rs               | 474 ++++++++++++++++
 src/tape/drive/lto/sg_tape.rs           | 720 ++++++++++++++++++++++++
 src/tape/drive/mod.rs                   |  53 +-
 src/tape/drive/virtual_tape.rs          | 116 ++--
 src/tape/file_formats/blocked_reader.rs |  70 ++-
 src/tape/file_formats/blocked_writer.rs |  37 +-
 src/tape/helpers/emulate_tape_reader.rs |  64 +--
 src/tape/helpers/emulate_tape_writer.rs |  37 +-
 src/tape/linux_list_drives.rs           |  51 +-
 src/tape/pool_writer/mod.rs             |   2 +-
 src/tape/tape_read.rs                   |  35 +-
 src/tape/tape_write.rs                  |  61 +-
 src/tools/sgutils2.rs                   | 125 +++-
 www/Utils.js                            |   2 +-
 www/tape/DriveStatus.js                 |   8 +-
 www/tape/window/Erase.js                |   4 +-
 31 files changed, 1939 insertions(+), 853 deletions(-)
 create mode 100644 debian/proxmox-backup-server.udev
 create mode 100644 src/tape/drive/lto/mod.rs
 create mode 100644 src/tape/drive/lto/sg_tape.rs

-- 
2.20.1




             reply	other threads:[~2021-04-07 10:23 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-07 10:22 Dietmar Maurer [this message]
2021-04-07 10:22 ` [pbs-devel] [PATCH 01/11] tape: introduce trait BlockRead Dietmar Maurer
2021-04-07 10:22 ` [pbs-devel] [PATCH 02/11] tape: introduce trait BlockWrite Dietmar Maurer
2021-04-07 10:23 ` [pbs-devel] [PATCH 03/11] tape: implement LTO userspace driver Dietmar Maurer
2021-04-07 10:23 ` [pbs-devel] [PATCH 04/11] tape: implement format/erase Dietmar Maurer
2021-04-07 10:23 ` [pbs-devel] [PATCH 05/11] tape: fix LEOM handling Dietmar Maurer
2021-04-07 10:23 ` [pbs-devel] [PATCH 06/11] tape: make fsf/bsf driver specific Dietmar Maurer
2021-04-07 10:23 ` [pbs-devel] [PATCH 07/11] tape: make sure there is a filemark at the end of the tape Dietmar Maurer
2021-04-07 10:23 ` [pbs-devel] [PATCH 08/11] sgutils2: add scsi_mode_sense helper Dietmar Maurer
2021-04-07 10:23 ` [pbs-devel] [PATCH 09/11] tape: correctly set/display drive option Dietmar Maurer
2021-04-07 10:23 ` [pbs-devel] [PATCH 10/11] tape: pmt - re-implement fsr/bsr Dietmar Maurer
2021-04-07 10:23 ` [pbs-devel] [PATCH 11/11] tape: pmt - re-implement lock/unlock command Dietmar Maurer
2021-04-07 11:26 [pbs-devel] [PATCH 00/11] Userspace tape driver Dietmar Maurer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210407102308.9750-1-dietmar@proxmox.com \
    --to=dietmar@proxmox.com \
    --cc=pbs-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal