Amanda-Users

Destructive tape-writing test

2005-12-13 20:45:22
Subject: Destructive tape-writing test
From: Ian Turner <ian AT zmanda DOT com>
To: amanda-hackers AT amanda DOT org, amanda-users AT amanda DOT org
Date: Tue, 13 Dec 2005 20:24:28 -0500
Hello all,

It seems that the amcheck manpage is presently a lie. It reads:

-w     Enables a DESTRUCTIVE check for write-protection  on  the  tape
              (which would otherwise cause the subsequent amdump to fail). If
              the tape is writable, this check causes all data after the tape
              label  to  be erased. If the label_new_tapes option is enabled,
              this check may ERASE any non-Amanda tape in the drive or chang-
              er. The check implies -t and is only made if the tape is other-
              wise correct.

The problem is that while this was probably true at some point in the past,
 it is not true today: amcheck -w just checks that you can open the device
 with O_WRONLY, and doesn't poke at it beyond that.

My understanding, however, is that merely opening the device is not
 sufficient to check for a write-protected tape on many operating systems, so
 I lobby to change this back to the original (documented) behavior, namely,
 rewriting the tape label.

Any thoughts, complaints, criticisms, etc., on this?

--Ian
--
Forums for Amanda discussion: http://forums.zmanda.com/

<Prev in Thread] Current Thread [Next in Thread>
  • Destructive tape-writing test, Ian Turner <=