Penguin

Differences between version 11 and predecessor to the previous major change of Inode.

Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History

Newer page: version 11 Last edited on Monday, June 4, 2007 1:45:49 pm by BenStaz Revert
Older page: version 5 Last edited on Saturday, July 23, 2005 2:17:29 pm by AristotlePagaltzis Revert
@@ -1,3 +1,40 @@
-An [Inode] specifies which DiskCluster~s a file occupies as well as a few attributes such as creation and last-modification times . To that end it contains a list of direct, indirect, and doubly and triply indirect pointers. On some FileSystems, very small files can be stored directly in the [Inode] itself. 
+An inode stores basic information about a regular file, directory, or other file system object . It contains a list of direct, indirect, and doubly and triply indirect pointers. On some FileSystems, very small files can be stored directly in the [Inode] itself. 
  
-Sophisticated FileSystems create [Inode]s on demand, but with most, the number of [Inode]s on a [Partition] has to be decided on during FileSystem creation. It is rare to run out of [Inode]s unless you have an unusual usage profile such as storing a news spool or [Squid] cache. To see how many [Inode]s are free , use <tt >df -i </tt >.  
+Sophisticated FileSystems create [Inode]s on demand, but with most, the number of [Inode]s on a [Partition] has to be decided on during FileSystem creation. It is rare to run out of [Inode]s unless you have an unusual usage profile such as storing a news spool or [Squid] cache. Exhaustion of the inodes will prohibit the creation of additional files even if sufficient HDD space exists.  
+  
+!!How many Inodes do I have free?  
+  
+*df - i  
+  
+!!What information does an [Inode] store?  
+  
+Note : Inodes do NOT contain filenames.  
+  
+* The size of the file in bytes.  
+* The file' s physical location (the addresses of the blocks of storage containing the file's data on a HDD)  
+* The file's permissions.  
+* The Device ID  
+* The User ID of the file's owner.  
+* The Group ID of the file.  
+* Timestamps (ctime ,mtime and atime). See [FileTimes]  
+* A reference count telling how many hard links point to the [Inode].  
+  
+!!View Inode Information for a particular file.  
+  
+For example [PhilMurray's|PhilMurray] famous macaroni and cheese recipe:  
+  
+ <verbatim >  
+$stat macaroni_and_cheese  
+  
+ File: `macaroni_and_cheese'  
+ Size: 1965 Blocks: 8 IO Block: 4096 regular file  
+Device: 305h/773d Inode: 2775423 Links: 1  
+Access: (0644/ -rw-r--r--) Uid: ( 1000/ staz) Gid: ( 1000/ staz)  
+Access: 2007-05-16 00:21:17.000000000 +1200  
+Modify: 2007-05-16 00:21:16.000000000 +1200  
+Change: 2007-05-16 00:21:16.000000000 +1200  
+ </verbatim>  
+  
+!!How to obtain a file's [Inode] number  
+  
+*ls -i <file