source: MondoRescue/branches/3.3/MondoRescue/bin/mr-disk-list@ 3650

Last change on this file since 3650 was 3650, checked in by Bruno Cornec, 7 years ago
  • Fix versions given back for mr-* tools
  • Log pb and mr versions in mindi log
  • mr-getparam now prints a version
  • Property svn:executable set to *
File size: 1.2 KB
Line 
1#!/usr/bin/perl -w
2#
3# $Id$
4# Copyright B. Cornec 2005-2016
5# Provided under the GPL v2
6#
7# Test mr_disk_list to get the list of all disks
8#
9use strict;
10use Data::Dumper;
11# For pbdebug
12use ProjectBuilder::Base;
13use MondoRescue::Version;
14use MondoRescue::Disk;
15
16=pod
17
18=head1 NAME
19
20mr-disk-list lists all the disks on the system
21
22=head1 DESCRIPTION
23
24mr-disk-list lists all the disks on the system
25
26=head1 SYNOPSIS
27
28mr-disk-list
29
30=head1 WEB SITES
31
32The main Web site of the project is available at L<http://www.mondorescue.org>. Bug reports should be filled using the trac instance of the project at L<http://trac.mondorescue.org/>.
33
34=head1 USER MAILING LIST
35
36For community exchanges around MondoRescue please use the list L<http://sourceforge.net/mailarchive/forum.php?forum_name=mondo-devel>
37
38=head1 AUTHORS
39
40The MondoRescue team lead by Bruno Cornec L<mailto:bruno@mondorescue.org>.
41
42=head1 COPYRIGHT
43
44MondoRescue is distributed under the GPL v2.0 license or later,
45described in the file C<COPYING> included with the distribution.
46
47=cut
48
49if ((defined $ARGV[0]) && ($ARGV[0] eq "-v")) {
50 shift;
51 $pbdebug = 2;
52}
53
54my $txt = "";
55my $txt2 = "";
56my @ans;
57
58@ans = mr_disk_list();
59pb_log(0, "The list of disks on this system are: @ans\n");
60
61exit(0);
Note: See TracBrowser for help on using the repository browser.