Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Why do inode number start from 1 and not 0 ?

Answers were Sorted based on User's Feedback



Why do inode number start from 1 and not 0 ?..

Answer / satish

1) All block and inode addresses start at 1. The first
block on the disk is block 1. 0 is used to indicate no
block.
2)0 is used as a sentinel value to indicate null or no
inode. similar to how pointers can be NULL in C. without a
sentinel, you'd need an extra bit to test if an inode in a
struct was set or not.

Is This Answer Correct ?    17 Yes 2 No

Why do inode number start from 1 and not 0 ?..

Answer / virupakshicm

0 indicates no inode. We know that directory contains data
in the form of entries and each entry contains inode number
and filename. Suppose if we delete a particular file from
the directory, then that entries inode number will be
changed to 0, indicating that this particular entry is
free. So when the next file is created under the directory,
then the kernel uses this entry for the new file and it
also changes the filename component to new name. This is
reason why inode 0 is not used.

Is This Answer Correct ?    14 Yes 1 No

Why do inode number start from 1 and not 0 ?..

Answer / khaja

BECAUZ INODE HAS DISK BLOCKS WHICH START FROM 0 ie: inode
is 1.

Is This Answer Correct ?    4 Yes 7 No

Post New Answer

More Unix AllOther Interview Questions

process id for kernell process?

4 Answers   TCS,


Explain iostat, vmstat and netstat.

2 Answers  


how can we create the script in crontab at mid night on sunday,satuarday,fiday 0n monyh october,november,january? please give me answer if anybody knows ? because on important purpose.

2 Answers  


What are each of the standard files and what are they normally associated with?

1 Answers   ITCO,


What is ant_build.sh? Have u seen that file?

0 Answers   BMC,


. Using sed and grep, write a command which lists files and directories with following properties: (i) created in 1999 (ii) with user's as owner and group

0 Answers  


What is mean by Mac os? Why it is named as like that? Which purprose it is using? Please answer me. Advance thanks.

2 Answers   Excel, GeniusPort,


What are the events done by the Kernel after a process is being swapped out from the main memory?

0 Answers  


What is a FIFO?

2 Answers  


in unix profile contains

1 Answers   BFL,


Is this the command to connect oracle from unix? sqlplus -s username/password. Then what is the -S here...????

1 Answers   TCS,


how to check GDE,EME,Java,Oracle9i Enterprise Edition Release versions Versions on unix system

1 Answers  


Categories