#if Mike Hall > I just uploaded my version for the Linux 'statfs' and 'getmntent' calls. > Might be OK for BSD, also? > It's modeled after the standard 'etc' extension. Good... but may I suggest some renaming to make it easier to use the module without referring to the documentation ? > http://www.enteract.com/~mghall/ruby/filesystem-0.1.tgz > > module FileSystem > Filesystem.stat( directory ) > Filesystem.mounts( optional file name ) > Filesystem.mounts( optional file name ) { |mt| optional block } > (the default 'mounts' filename is "/etc/mtab") > > Struct FSstat FileSystem::Stat > fs.path given directory path > fs.bsize optimal transfer block size block_size > fs.blocks total data blocks in file system > fs.bfree free blocks in file system free_blocks > fs.bavail free blocks avail to non-superuser blocks_available > fs.files total file nodes in file system node_count > fs.ffree free file nodes in file system free_nodes > fs.type numeric file system type filesystem_type (note that 'type' clashes with Object#type) > fs.fsname name of file system type filesystem_type_name > fs.namelen maximum length of filenames max_filename_length > Struct FSmount FileSystem::Mount > mt.fsname file system (i.e. partition device) name filesystem_name > mt.dir mount point directory > mt.type file system type filesystem_type > mt.options mount options > mt.freq dump frequency in days dump_frequency > mt.pass pass number of file system check check_pass Rik