Changeset 18015
- Timestamp:
- Jun 9, 2008, 10:08:46 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/Nebulous/bin/neb-stat (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous/bin/neb-stat
r16262 r18015 3 3 # Copyright (C) 2007-2008 Joshua Hoblitt 4 4 # 5 # $Id: neb-stat,v 1. 1 2008-01-28 20:43:02jhoblitt Exp $5 # $Id: neb-stat,v 1.2 2008-06-09 20:08:46 jhoblitt Exp $ 6 6 7 7 use strict; … … 39 39 unless defined $neb; 40 40 41 my $keys = $neb->stat($key); 41 my $stat = $neb->stat($key); 42 die "nebulous key: $key not found" unless $stat; 42 43 my $instances = $neb->find_instances($key); 44 die "no instances found" unless $instances; 43 45 44 46 no warnings qw(uninitialized); 45 47 print 46 "object id: ", @$ keys[0], "\n",47 "key: ", @$ keys[1], "\n",48 "read lock: ", @$ keys[2], "\n",49 "write lock: ", @$ keys[3], "\n",50 "epoch: ", @$ keys[4], "\n",51 "mtime: ", @$ keys[5], "\n",52 "n instances: ", @$ keys[6], "\n",48 "object id: ", @$stat[0], "\n", 49 "key: ", @$stat[1], "\n", 50 "read lock: ", @$stat[2], "\n", 51 "write lock: ", @$stat[3], "\n", 52 "epoch: ", @$stat[4], "\n", 53 "mtime: ", @$stat[5], "\n", 54 "n instances: ", @$stat[6], "\n", 53 55 "instance location:\n", " " x 4, 54 56 join("\n" . " " x 4, @$instances), "\n";
Note:
See TracChangeset
for help on using the changeset viewer.
