The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Lustre::LFS::Dir - IO::Dir like module with lustre support

SYNOPSIS

  use strict;
  use Lustre::LFS::Dir;
  
  my $fh = Lustre::LFS::Dir;
  $d = Lustre::LFS::Dir->new(".");
  my $stripes = $d->get_stripe;
  $d->delete_stripe; # delete default striping
  $d->set_stripe(Count=>3);
  

DESCRIPTION

"Lustre::LFS::Dir" inherits from "IO::Dir" (which inherits from "IO::Handle"), so a Lustre::LFS::Dir reference can do everything that an "IO::Dir" ref could do.

CONSTRUCTOR

    See IO::Dir for details.

METHODS

get_stripe

Returns striping information about the opened directory as reported by lfs getstripe --verbose. Returns undef on error.

set_stripe ( [ARGS] )

Updates the stripe settings for the opened directory. Valid key-value pairs are:

  Size     Stripe size to use
  Offset   OST Offset
  Count    How many stripes the files in this directory shall use
  Pool     Put directory into a specific pool

Returns FALSE on error.

delete_stripe

Remove any custom stripe settings from current directory. Returns FALSE on error (0 or undef)

AUTHOR

Copyright (C) 2010, Adrian Ulrich <adrian.ulrich@id.ethz.ch>

SEE ALSO

Lustre::LFS, Lustre::LFS::File, IO::File, IO::Handle, Lustre::Info, http://www.lustre.org