- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: inode 0 and 1
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2007 04:42 AM
02-17-2007 04:42 AM
inode 0 and 1
and if they are reserved then for what they are reserved????
thanks in advance
-=HPUX=-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2007 06:05 AM
02-17-2007 06:05 AM
Re: inode 0 and 1
I do your research then will take you to many areas you had not studied before and that you will learn a lot about this, and several tangential topics.
When you finished your homework, be sure to share your summarized findings here.
I know I'll state the obvious by recommending you to use GOOGLE as your first tool to work this question. You may want to restrict initial answers to +site:hp.com
Good luck in you travels on the web!
If you fail this mission, then by all mean check back in a few days with details how far you came, and where you would like detailed help for specific part problems. You'll find many here eager to help!
If you do reply back then kindly sign with a real person name, preferably your own name.
Best regards,
Hein van den Heuvel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2007 07:12 PM
02-17-2007 07:12 PM
Re: inode 0 and 1
Check iget.c for details, you need to know c programing.
I think swap filesystem object gets inode numbe 1 (But you cannot see it,) , and rest of the initial filesystems objects (mounted on the directories as mentioed) gets inode number 2 ,like / /stand /home /var /opt .., and 0 is not used as it does not points to a number , and inode number can have 256 or 512 bytes in length.
Also check vx_inode.h and inode.h for details.
hth,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2007 04:50 AM
02-18-2007 04:50 AM
Re: inode 0 and 1
and
Hein van den Heuvel i m bck with my real name....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2007 09:17 AM
02-18-2007 09:17 AM
Re: inode 0 and 1
Great. I didn't know you could do that!
For future readers: When I replied to the topic the Author was indicated as "HPUX Hunter". The HPUX was clearly artificial. The "Hunter" might have been artificial, but turned out the be real. Ok.
The reason I replied is that IMHO the actual
question is irrelevant in a business context. Inode numbers are 'opaque'. Yeah, deep down they have some secret meaning, but as long as they work, who cares. And whether 0 and 1 have a special meaning would seem extra irrelevant for production purposes, but interesting for academic research.
Regards,
Hein
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2007 09:51 AM
02-18-2007 09:51 AM
Re: inode 0 and 1
My thinking on the earlier post wasn't entirely correct.
The root inode is the root of the file system. Inode 0 can't be used for normal purposes and historically bad blocks were linked to inode 1, thus
the root inode is 2 (inode 1 is no longer used for this purpose, however numerous dump tapes make this assumption, so we are stuck with it).
Check Berkeley.edu and Dr.Watson documentation and pages if you really interested to know more,
Enjoy,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2007 09:57 AM
02-18-2007 09:57 AM
Re: inode 0 and 1
An example how it works:
/* iget isn't really right if the inode is currently unallocated!!
* ext2_read_inode currently does appropriate checks, but
* it might be "neater" to call ext2_get_inode first and check
* if the inode is valid.....
*/
inode = iget(sb, ino);
if (inode == NULL)
return ERR_PTR(-ENOMEM);
if (is_bad_inode(inode)
|| (generation && inode->i_generation != generation)
) {
/* we didn't find the right inode.. */
iput(inode);
return ERR_PTR(-ESTALE);
}
/* now to find a dentry.
* If possible, get a well-connected one
*/
result = d_alloc_anon(inode);
if (!result) {
iput(inode);
return ERR_PTR(-ENOMEM);
}
return result;
/* check further.. */
Enjoy the forum,
Have fun,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2007 10:09 AM
02-18-2007 10:09 AM
Re: inode 0 and 1
Also check the filesystem header file, fs.h from 1991 Free BSD page , it is written pretty clearly ,
http://freebsd.active-venture.com/FreeBSD-srctree/newsrc/i386/boot/dosboot/fs.h.html
Have fun,
Raj.
http://66.34.90.71/ITRCForumsEtiquette/after.html cheers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2007 04:06 PM
02-18-2007 04:06 PM
Re: inode 0 and 1
yea u r right! i asked that question from academic point of view....because i m newbie for HPUX and till this date no more in a business related to HPUX...
-=HPUX=-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2007 11:23 PM
02-18-2007 11:23 PM
Re: inode 0 and 1
inodes 0 and 1 are taken up by the file system SuperBlock.
regards,
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2007 02:58 PM
02-19-2007 02:58 PM
Re: inode 0 and 1
Check this:
Inode 0 can't be used for normal purposes and inode 1 is used to represent the bad blocks in the superblock.
Hence inodes starts from number 2 ,
Cheers,
Raj.