12-05-2014
How do you find max filesize with inode information ?
How do you find the maximum file size with the following information -:
A unix filesystem has 1024 bytes block size with 32-bit address. The i-node has 12 direct and 1 indirect, 1 double indirect, and 1 triple indirect addresses. What is the maximum file size it can access ?
What is the calculation that has to be done ?
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi all
when I execute pmap command on one of my daemon process, I am able to see the following output.
Address Kbytes RSS Anon Locked Mode Mapped File
00010000 40 40 - - r-x-- irs026bmd
00028000 56 56 16 - rwx-- irs026bmd
00036000... (3 Replies)
Discussion started by: axes
3 Replies
2. Ubuntu
Hi,
If inodes need to be 3-4 times greater than fd.file-max. Can you modify the current inode in the filesystem? Can you modify it on the fly? Or only in the creation of FS.
I'm using redhat ent 4.
Thank you for any comment you may add. (1 Reply)
Discussion started by: itik
1 Replies
3. UNIX for Advanced & Expert Users
Hi Friends,
I am new to this forum.
Can any one tell me, how to access an inode using c program.
What are all the header files, functions(APIs) and libraries etc required to do that.?:confused:
Any help on this is appreciated.
Thanks in advance. (7 Replies)
Discussion started by: saravanan_c
7 Replies
4. Shell Programming and Scripting
Hi, i have a file with numbers in it and i was wondering if there's a script i could use to find the max number and have that printed to a new file?
example a.txt
18
26
47
34
27
so find the max number in a.txt and print it to b.txt.
Thanks! (17 Replies)
Discussion started by: moonbaby
17 Replies
5. Shell Programming and Scripting
Is there a simple way of calculating the max number in a set of variables, so
a=1
b=3
c=6
d=30
something that says
e=max($a, $b, $c, $d)
I've found a way to do it using:
a="1"
b="3"
c="5"
d="50"
if ;
then
t=$a
else (3 Replies)
Discussion started by: unclecameron
3 Replies
6. Shell Programming and Scripting
FILE_NAME VER TYPE DELETED_DATE CREATED_DATE SIZE LOCATION
hello 1 d 2010-08-09 2010-08-09 4096 /home/xxxxx/project/
hello 2 d 2010-08-09 2010-08-09 4096 /home/xxxxx/project/
hello 3 d 2010-08-09 2010-08-09 4096 /home/xxxxx/project/
hello 4 d 2010-08-09 2010-08-09 4096 /home/xxxxx/project/
... (4 Replies)
Discussion started by: classic
4 Replies
7. Shell Programming and Scripting
Hello Experts,
I have got a txt files which has multiple columns, I want to get the max, min and diff (max-min) for each column in the same txt file. Example:
cat file.txt
a 1 4
b 2 5
c 3 6
I want ouput like:
cat file.txt
a 1 4
b 2 5
c 3 6
Max 3 6
Min 1 4
Diff 2 2
awk 'min=="" ||... (4 Replies)
Discussion started by: dixits
4 Replies
8. Shell Programming and Scripting
I have a file about cpu load like this (the first column is time, the second column is cpu load):
11:34:01 0.10
11:34:37 0.05
11:35:13 0.03
11:35:59 0.06
11:38:00 0.02
11:38:09 0.17
11:39:48 0.06
I need to find the max value of the second column so I write the script as follows
max=0... (5 Replies)
Discussion started by: muffle
5 Replies
9. Shell Programming and Scripting
Experts,
Here is my question.
I have got file like below
# cat file
XYZb,24,26,6
XYZc,24,26,6
XYZe,24,25,5
XYZf,23,29,5
XYZi,16,25,5
XYZj,24,26,7
XYZn,17,23,4
XYZz,23,29,5
Now, I want to print the line's Column1 whose Column 3 is the max of all.
My code is awk -F',' 'BEGIN {max... (9 Replies)
Discussion started by: sathyaonnuix
9 Replies
10. Shell Programming and Scripting
I need to find the max value of all columns except the 1st column and print the answer along with the 1st column.
Input
123xyz 0 0 1 2 0 0 0 0 0 0 0
234xyz 0 0 0 0 0 0 0 0 0 0 0
345xyz 0 0 1 0 0 0 ... (8 Replies)
Discussion started by: ncwxpanther
8 Replies
glutInit(3GLUT) GLUT glutInit(3GLUT)
NAME
glutInit - initialize the GLUT library.
SYNTAX
#include <GLUT/glut.h>
void glutInit(int *argcp, char **argv);
ARGUMENTS
argcp A pointer to the program's unmodified argc variable from main. Upon return, the value pointed to by argcp will be updated,
because glutInit extracts any command line options intended for the GLUT library.
argv The program's unmodified argv variable from main. Like argcp, the data for argv will be updated because glutInit extracts any
command line options understood by the GLUT library.
DESCRIPTION
glutInit will initialize the GLUT library and negotiate a session with the window system. During this process, glutInit may cause the ter-
mination of the GLUT program with an error message to the user if GLUT cannot be properly initialized. Examples of this situation include
the failure to connect to the window system, the lack of window system support for OpenGL, and invalid command line options.
glutInit also processes command line options, but the specific options parse are window system dependent.
X IMPLEMENTATION NOTES
The X Window System specific options parsed by glutInit are as follows:
-display DISPLAY
Specify the X server to connect to. If not specified, the value of the DISPLAY environment variable is used.
-geometry WxH+X+Y
Determines where window's should be created on the screen. The parameter following -geometry should be formatted as a standard X
geometry specification. The effect of using this option is to change the GLUT initial size and initial position the same as if
glutInitWindowSize or glutInitWindowPosition were called directly.
-iconic Requests all top-level windows be created in an iconic state.
-indirect
Force the use of indirect OpenGL rendering contexts.
-direct Force the use of direct OpenGL rendering contexts (not all GLX implementations support direct rendering contexts). A fatal error is
generated if direct rendering is not supported by the OpenGL implementation.
If neither -indirect or -direct are used to force a particular behavior, GLUT will attempt to use direct rendering if possible and
otherwise fallback to indirect rendering.
-gldebug
After processing callbacks and/or events, check if there are any OpenGL errors by calling glGetError. If an error is reported,
print out a warning by looking up the error code with gluErrorString. Using this option is helpful in detecting OpenGL run-time
errors.
-sync Enable synchronous X protocol transactions. This option makes it easier to track down potential X protocol errors.
SEE ALSO
glutCreateWindow, glutInitWindowPosition, glutInitWindowSize, glutMainLoop
AUTHOR
Mark J. Kilgard (mjk@nvidia.com)
GLUT
3.7 glutInit(3GLUT)