Changeset 17081 for trunk/Nebulous/lib
- Timestamp:
- Mar 20, 2008, 3:53:36 PM (18 years ago)
- Location:
- trunk/Nebulous/lib/Nebulous
- Files:
-
- 2 edited
-
Client.pm (modified) (2 diffs)
-
Client.pod (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous/lib/Nebulous/Client.pm
r17073 r17081 1 # Copyright (c) 2004 Joshua Hoblitt1 # Copyright (c) 2004-2008 Joshua Hoblitt 2 2 # 3 # $Id: Client.pm,v 1.4 0 2008-03-20 23:21:58jhoblitt Exp $3 # $Id: Client.pm,v 1.41 2008-03-21 01:53:36 jhoblitt Exp $ 4 4 5 5 package Nebulous::Client; … … 705 705 } 706 706 707 708 sub 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 707 730 sub stat { 708 731 my $self = shift; -
trunk/Nebulous/lib/Nebulous/Client.pod
r16180 r17081 23 23 my $path = $neb->find( "key" ); 24 24 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 ); 29 29 my $stats = $neb->stat( "key" ); 30 my $mounts = $neb->mounts(); 30 31 31 32 =head1 DESCRIPTION … … 378 379 Returns an arrayref of scalars. 379 380 381 =item * mounts() 382 383 Accepts 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 ] 380 400 381 401 =back … … 410 430 =head1 COPYRIGHT 411 431 412 Copyright (C) 2004-200 5Joshua Hoblitt. All rights reserved.432 Copyright (C) 2004-2008 Joshua Hoblitt. All rights reserved. 413 433 414 434 This program is free software; you can redistribute it and/or modify it under
Note:
See TracChangeset
for help on using the changeset viewer.
