10-20-2011
What is your intention here? If you need this to actually get stored on disk you'll need to change a lot more than a structure.
10 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
Could someone please explain to me the concept of INodes?
Colour me a DOS/MacOS junkie, but I don't quite understand.
Is there any relation to clusters, or physical distro.?
ty. (3 Replies)
Discussion started by: boris888
3 Replies
2. Solaris
Does anyone know what command I can run to check how many inodes are in use on a specific filesystem. On Data General servers I used to run the df -k command to check the status of the inodes for all file system.s (1 Reply)
Discussion started by: soliberus
1 Replies
3. Solaris
hi
i need to find all the files that r linked to the current file as i need to delete the file as well as few of its links :confused:
thnx in advance (1 Reply)
Discussion started by: livemyway
1 Replies
4. UNIX for Dummies Questions & Answers
how is the location of inodes in the physical disk.
are they sequential like:
bootblock|superblock|inode1|inode2| ....| datablock1|datablock2|datablock3
or are they distributed among data blocks like:
bootblock|superblock|inode1|datablock1|inode2|datablock2|datablock3|inode3
|datablock4 (3 Replies)
Discussion started by: gfhgfnhhn
3 Replies
5. Linux
Any good sites, tutorials that explain Inodes clearly and completely ? (3 Replies)
Discussion started by: nitin09
3 Replies
6. Solaris
Hello Experts
How can i know Number of used and free inodes in a file system?
thanx in advance.. (3 Replies)
Discussion started by: younus_syed
3 Replies
7. Solaris
Hi ,
Can someone help me to increase "inode" in solaris 9?
Thanks in advance,
Gowtham (8 Replies)
Discussion started by: gowthamakanthan
8 Replies
8. Filesystems, Disks and Memory
Hi, sorry to have written in other language i think i could do that.
I would to know
A file system use inodes indexed allocation as a method of allocating space.
In the inode blocks are 10 references to direct, 1 indirect reference to a single block, 1 block indirect reference to a reference to... (1 Reply)
Discussion started by: maryprin
1 Replies
9. Solaris
Dear Forum,
Please help me i have SUNW,Sun-Fire-V240 with sun solaris 8,if i check inode in /var like below:
# df -F ufs -o i
Filesystem iused ifree %iused Mounted on
/dev/md/dsk/d0 62354 310638 17% /
/dev/md/dsk/d3 372992 0 100% /var... (2 Replies)
Discussion started by: fredginting
2 Replies
10. Shell Programming and Scripting
Hi,
Is there a restriction in the number of inodes a particular directory can have in Solaris.
If so how can we determine that.
Regards (3 Replies)
Discussion started by: @bhi
3 Replies
hdio(7I) Ioctl Requests hdio(7I)
NAME
hdio - SMD and IPI disk control operations
SYNOPSIS
#include <sys/hdio.h>
DESCRIPTION
Note - The SMC and IPI drivers have been discontinued. dkio(7I) is now the preferred method for retrieving disk information.
The SMD and IPI disk drivers supplied with this release support a set of ioctl(2) requests for diagnostics and bad sector information.
Basic to these ioctl() requests are the definitions in <sys/hdio.h>.
IOCTLS
HDKIOCGTYPE The argument is a pointer to a hdk_type structure (described below). This ioctl() gets specific information from the hard
disk.
HDKIOCSTYPE The argument is a pointer to a hdk_type structure (described below). This ioctl() sets specific information about the hard
disk.
/*
* Used for drive info
*/
struct hdk_type {
ushort_t hdkt_hsect; /* hard sector count (read only) */
ushort_t hdkt_promrev; /* prom revision (read only) */
uchar_t hdkt_drtype; /* drive type (ctlr specific) */
uchar_t hdkt_drstat; /* drive status (ctlr specific, ro) */
};
HDKIOCGBAD The argument is a pointer to a hdk_badmap structure (described below). This ioctl() is used to get the bad sector map from
the disk.
HDKIOCSBAD The argument is a pointer to a hdk_badmap structure (described below). This ioctl() is used to set the bad sector map on
the disk.
/*
* Used for bad sector map
*/
struct hdk_badmap {
caddr_t hdkb_bufaddr; /* address of user's map buffer */
};
HDKIOCGDIAG The argument is a pointer to a hdk_diag structure (described below). This ioctl() gets the most recent command that failed
along with the sector and error number from the hard disk.
/*
* Used for disk diagnostics
*/
struct hdk_diag {
ushort_t hdkd_errcmd; /* most recent command in error */
daddr_t hdkd_errsect; /* most recent sector in error */
uchar_t hdkd_errno; /* most recent error number */
uchar_t hdkd_severe; /* severity of most recent error */
};
SEE ALSO
ioctl(2), dkio(7I)
SunOS 5.10 13 Aug 2002 hdio(7I)