This file is indexed.

/usr/share/perl5/NetApp/Snapshot/Delta.pm is in libnetapp-perl 500.002-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
package NetApp::Snapshot::Delta;

our $VERSION = '500.002';
$VERSION = eval $VERSION;  ##  no critic: StringyEval

use strict;
use warnings;
use Carp;

use Class::Std;
use Params::Validate qw( :all );

{

    my %from_of			:ATTR( get => 'from' );
    my %to_of			:ATTR( get => 'to' );
    my %changed_of		:ATTR( get => 'changed' );
    my %time_of			:ATTR( get => 'time' );
    my %rate_of			:ATTR( get => 'rate' );
    my %summary_of		:ATTR( get => 'summary' );

    sub BUILD {

        my ($self,$ident,$args_ref) = @_;

        my @args = %$args_ref;

        my (%args) 	= validate( @args, {
            from	=> { type	=> SCALAR },
            to		=> { type	=> SCALAR },
            changed	=> { type	=> SCALAR },
            time	=> { type	=> SCALAR },
            rate	=> { type	=> SCALAR },
            summary	=> { type	=> SCALAR },
        });

        $from_of{$ident}	= $args{from};
        $to_of{$ident}		= $args{to};
        $changed_of{$ident}	= $args{changed};
        $time_of{$ident}	= $args{time};
        $rate_of{$ident}	= $args{rate};
        $summary_of{$ident}	= $args{summary};

    }

    sub is_summary {
        return shift->get_summary;
    }

}

sub _parse_snap_delta {

    my $class		= shift;
    my $line		= shift;

    $line		=~ s/Active File System/active/g;

    my @line		= split /\s+/, $line;

    my $from		= shift @line;
    my $to		= shift @line;
    my $changed		= shift @line;
    my $time		= shift @line;
    my $next		= shift @line;
    my $rate;

    if ( $next		=~ /^\d{2}:\d{2}$/ ) {
        $time		.= " $next";
        $rate		= shift @line;
    } else {
        $rate		= $next;
    }

    if ( @line || ! defined $from || ! defined $to ||
             ! defined $changed || ! defined $time || ! defined $rate ) {
        croak("Unable to parse snapshot delta: $line\n");
    }

    return {
        from		=> $from,
        to		=> $to,
        changed		=> $changed,
        time		=> $time,
        rate		=> $rate,
    };

}

1;