X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=perl%2FAmanda%2FTapelist.pm;h=b2792b4574befc902276213e1c0e26d333e74ff8;hb=fd48f3e498442f0cbff5f3606c7c403d0566150e;hp=40991d0f43dc647e427b5520269aa93382aa184e;hpb=96f35b20267e8b1a1c846d476f27fcd330e0b018;p=debian%2Famanda diff --git a/perl/Amanda/Tapelist.pm b/perl/Amanda/Tapelist.pm index 40991d0..b2792b4 100644 --- a/perl/Amanda/Tapelist.pm +++ b/perl/Amanda/Tapelist.pm @@ -49,6 +49,8 @@ sub this { package Amanda::Tapelist; +*get_last_reusable_tape_label = *Amanda::Tapelistc::get_last_reusable_tape_label; +*list_new_tapes = *Amanda::Tapelistc::list_new_tapes; *C_read_tapelist = *Amanda::Tapelistc::C_read_tapelist; *C_clear_tapelist = *Amanda::Tapelistc::C_clear_tapelist; @@ -60,7 +62,6 @@ package Amanda::Tapelist; @EXPORT_OK = (); %EXPORT_TAGS = (); -use Amanda::Debug qw(:logging); =head1 NAME @@ -75,32 +76,38 @@ Amanda::Tapelist - manipulate the Amanda tapelist $tl->add_tapelabel($datestamp2, $label2, $comment); $tl->write("/path/to/tapefile"); -=head1 API STATUS - -Stable - =head1 OBJECT-ORIENTED INTERFACE -The package-level functions C and C -both return a new tapelist object. C returns C if the -tapelist does not exist. Invalid entries are silently ignored. +The package-level functions C and +C both return a new tapelist object. +C returns C if the tapelist does not exist. +Invalid entries are silently ignored. -A tapelist object is a sequence of tapelist -elements (referred to as TLEs in this document). Each TLE is a hash with the -following keys: +A tapelist object is a sequence of tapelist elements (referred to as TLEs in +this document), sorted by datestamp from newest to oldest. Each TLE is a hash +with the following keys: =over -=item C -- the one-based position of the TLE in the tapelist +=item C + +the one-based position of the TLE in the tapelist + +=item C + +the datestamp on which this was written, or "0" for an unused tape -=item C -- the datestamp on which this was written, or "0" for an -unused tape +=item C -=item C -- true if this tape can be reused when it is no longer active +true if this tape can be reused when it is no longer active -=item C