Skip to content

Instantly share code, notes, and snippets.

@jtimberman
Created February 23, 2009 21:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jtimberman/69174 to your computer and use it in GitHub Desktop.
Save jtimberman/69174 to your computer and use it in GitHub Desktop.
irb(main):001:0> File.stat("/dev/mapper/exportvg-testlv")
=> #<File::Stat dev=0xe, ino=2210485, mode=060660, nlink=1, uid=0, gid=6, rdev=0xfe03, size=0, blksize=4096, blocks=0, atime=Mon Feb 23 13:35:48 -0700 2009, mtime=Mon Feb 23 12:04:22 -0700 2009, ctime=Mon Feb 23 12:04:22 -0700 2009>
irb(main):002:0> File.stat("/dev/exportvg/testlv")
Errno::EACCES: Permission denied - /dev/exportvg/testlv
from (irb):2:in `stat'
from (irb):2
from :0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment