Method: LinuxStat::Filesystem.stat_raw

Defined in:
lib/linux_stat/filesystem.rb

.stat_raw(fs = ?..freeze) ⇒ Object

stat_raw(fs = ‘.’)

Where fs is the directory of the file system (like / or /tmp/ or /run/media/thumbdrive).

It returns a Hash with the following data (for example):

{:block_size=>4096, :fragment_size=>4096, :blocks=>29292283, :block_free=>10535967, :block_avail_unpriv=>10535967, :inodes=>58612160, :free_inodes=>56718550, :filesystem_id=>2050, :mount_flags=>1024, :max_filename_length=>255}

If the stat can’t be acquired, this method will return an empty Hash.



110
111
112
# File 'lib/linux_stat/filesystem.rb', line 110

def stat_raw(fs = ?..freeze)
	LinuxStat::FS.stat(fs)
end