• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 395
  • Last Modified:

structure of superblock and inodetable

hi sir
 from where i can access the files <sys/ino.h>,<sys/inode.h>,<sys/fs/*>,<sys/fs/s5filsys.h>
and <sys/fs/s5inode.h>
these files contains the information abt the structures of superblock and inode table
Thanks
0
davinder101
Asked:
davinder101
  • 6
  • 5
6 Solutions
 
omarfaridCommented:
Hi,

Normally these header files are under the dir /usr/include
0
 
davinder101Author Commented:
how can i access the contents of these files from terminal
0
 
omarfaridCommented:
I assume that you can telnet or ssh to the m/c to login.

Then

cd /usr/include/sys

more ino.h
more inode.h
cd fs
more s5filsys.h
more s5inode.h
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
Pétur Ingi EgilssonSoftware Engineer -- ConsultantCommented:
SSH into the box

You can use the program "putty.exe" (search for it on google) to connect from Windows computer to linux via SSH ( as long as the linux computer is accepting connections via ssh )

Use a text editor ( like vi, pico or vim )
vi filename
pico filename
vim filname

in vi\vim press "i" or INSERT to start editing the file
to exit from vi or vim press ESC and type ":q" [press enter]
:wq [press enter] to save and exit
:q! [press enter] to quit without saving

"man vi" for more information about vi
0
 
davinder101Author Commented:
i have linux as a primary disc,
ok the information about the structure of inode is stored in header file HTFS.h,
how can i access this file.?
0
 
omarfaridCommented:
If you want just view it use more:

cd /usr/include/sys  (or the dir it is in)
more HTFS.h

If you want to edit it use vi editor:

vi HTFS.h

0
 
davinder101Author Commented:
but it doesn't work
0
 
omarfaridCommented:
What is not working?

What OS do you use?

How do you access the m/c?

What exactly you want to do with the file? The word access is general.

0
 
davinder101Author Commented:
i have installed sco open server 5.03 with the following partitions
/boot->100M->EAFS
/ ->5G->HTFS
/abc->3G->HTFS

after  issuing
cd /usr/include/sys
more HTFS.h

it displays "No such file or Directory exists"

0
 
omarfaridCommented:
Ok

Please run the following command to find the location of the file:

find /usr/include -name HTFS.h

This will give you the full pathname to the file

you may then take this path and use cd to go to that dir then run

more HTFS.h

I noticed that the file name is in capital letters, if you don't find it try small letters for the file name.
0
 
davinder101Author Commented:
oh,it again says,"No such file or Directory exists"
 is it possible that HTFS.h doesn't exit in /usr/include
 
0
 
omarfaridCommented:
Ok,

try

find /usr/include  | grep -i  HTFS.h

Where you found reference for this file?
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now