IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17081


Ignore:
Timestamp:
Mar 20, 2008, 3:53:36 PM (18 years ago)
Author:
jhoblitt
Message:

add Nebulous::Client::mounts()

Location:
trunk/Nebulous
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous/Changes

    r17079 r17081  
    330.07
    44    - modify neb-df to use Nebulous::Client::mounts()
     5    - add Nebulous::Client::mounts()
    56    - server/client split into Nebulous::Server and Nebulous::Client packages
    67    - add support for storing instances in multi-tier 'hashed' directories
  • trunk/Nebulous/MANIFEST

    r17078 r17081  
    101101t/63_client_stat.t
    102102t/64_client_find_objects.t
     103t/65_client_mounts.t
    103104t/90_nebclient.t
    104105t/TEST.PL
  • trunk/Nebulous/lib/Nebulous/Client.pm

    r17073 r17081  
    1 # Copyright (c) 2004  Joshua Hoblitt
     1# Copyright (c) 2004-2008  Joshua Hoblitt
    22#
    3 # $Id: Client.pm,v 1.40 2008-03-20 23:21:58 jhoblitt Exp $
     3# $Id: Client.pm,v 1.41 2008-03-21 01:53:36 jhoblitt Exp $
    44
    55package Nebulous::Client;
     
    705705}
    706706
     707
     708sub mounts {
     709    my $self = shift;
     710
     711    validate_pos(@_);
     712
     713    $log->debug( "entered - @_" );
     714
     715    my $response = $self->{ 'server' }->mounts();
     716    if ( $response->fault ) {
     717        $log->error( $response->faultcode, " - ", $response->faultstring );
     718        $log->debug( "leaving" );
     719
     720        return;
     721    }
     722
     723    my $stats = $response->result;
     724
     725    $log->debug( "leaving" );
     726
     727    return $stats;
     728}
     729
    707730sub stat {
    708731    my $self = shift;
  • trunk/Nebulous/lib/Nebulous/Client.pod

    r16180 r17081  
    2323    my $path = $neb->find( "key" );
    2424    my $fh = $neb->open( "key", 'read' );
    25     $data->delete( "key" );
    26     $data->copy( "key", "new_key", "node01" );
    27     $data->move( "key", "new_key" );
    28     $data->delete_instance( $uri );
     25    $neb->delete( "key" );
     26    $neb->copy( "key", "new_key", "node01" );
     27    $neb->move( "key", "new_key" );
     28    $neb->delete_instance( $uri );
    2929    my $stats = $neb->stat( "key" );
     30    my $mounts = $neb->mounts();
    3031
    3132=head1 DESCRIPTION
     
    378379Returns an arrayref of scalars.
    379380
     381=item * mounts()
     382
     383Accepts no parameters and returns an AoA of:
     384
     385    [
     386        [
     387            mountpoint,
     388            total,
     389            used,
     390            vol_id,
     391            name,
     392            path,
     393            allocate,
     394            available,
     395            xattr,
     396        ],
     397        [ ... ],
     398        ...
     399    ]
    380400
    381401=back
     
    410430=head1 COPYRIGHT
    411431
    412 Copyright (C) 2004-2005  Joshua Hoblitt.  All rights reserved.
     432Copyright (C) 2004-2008  Joshua Hoblitt.  All rights reserved.
    413433
    414434This program is free software; you can redistribute it and/or modify it under
Note: See TracChangeset for help on using the changeset viewer.