Does anyone have example code for getting File System info on AIX


 
Thread Tools Search this Thread
Top Forums Programming Does anyone have example code for getting File System info on AIX
# 1  
Old 01-20-2005
Does anyone have example code for getting File System info on AIX

I'm looking for example C source of how to get file system information on AIX systems. Does anyone have anything?
# 2  
Old 01-20-2005
If your system is SUS1-compliant try

man statvfs.

If your kernel supports it, I'll post an exemple.
# 3  
Old 01-21-2005
Jim,

Thanks for your reply.

Forgive me but I'm very new to AIX so I don't know how to check if my system is is SUS1-compliant. Can you tell me how to do this? Also, what is the significance of this?

I tried man statvfs but it doesn't look like I have the help for this installed. Also tried the command statvfs and get a message ksh:statvfs: not found.

Many thanks

Stuart
# 4  
Old 01-21-2005
From the command line:
Code:
lslv

will list logical volumes for you
try man lslv

Inside of C you have to call a library routine - statvfs is one that gives information on a lot of systems.

Your sysadmin will know what command (from the command line) does what.

What precisely are you trying to do?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

Command to find file system details on AIX

Hi , Could you please tell me how to find the following on AIX? 1.Command to find file system details? 2.What are all the files exist under a specific directory along with their sizes? In general we use, du -sh * | grep M under a directory which returns files having size of MB,... (18 Replies)
Discussion started by: Maddy123
18 Replies

2. AIX

AIX file system tuning

how do i determine the percentage of the following befor i install oracle 11g maxperm% maxclient% v_pinshm lgpg_regions lgpg_size (3 Replies)
Discussion started by: thecobra151
3 Replies

3. UNIX for Dummies Questions & Answers

Copy a file from a dvd to the local AIX file system

Hi, I am a newbie to AIX, so please bear with me. I have mounted a dvd drive on AIX. I am trying to copy the file that is on the dvd drive on to the local machine. However, I get an error: cp: c1m_0001.gz: A system call received a parameter that is not valid. Can some one point me to the... (1 Reply)
Discussion started by: anurag1510
1 Replies

4. AIX

Cannot grow jfs file system on AIX 5.2

Hello all, I'm trying to grow a file system by 500MB using SMIT on AIX 5.2 but I receive this error: "0516-404 allocp: This system cannot fulfill the allocation request. There are not enough free partitions or not enough physical volumes to keep strictness and satisfy allocation requests.... (3 Replies)
Discussion started by: need2bageek
3 Replies

5. AIX

How to export AIX File system NFS to Windows ?

Hello, Can someone please point to an easy document or steps how to export AIX file system /whatever to Windows O/S Basically Windows should see this filesystem / directory and should be able to write in this filesystem / directory Thanks (2 Replies)
Discussion started by: filosophizer
2 Replies

6. UNIX for Advanced & Expert Users

The best way to skin a cat OR how do I get file system info on the most basic level?

Hi, We have an FTP server (vsftpd) running on Linux, that I've kinda built a "Data Management" system around. I could use some ideas as to the best way to handle/create "triggers" for file notifications. Internal users drag 'n drop files from their Windows boxes to the server via Samba... (2 Replies)
Discussion started by: mph
2 Replies

7. Programming

System info

Does anyone know graceful way to get information about system? Information I am interested in is: Total size of physical memory. Total and free size of swap. Number of processors, their types and frequency. Mount point of file system for known directory. Is there a good way to get such... (4 Replies)
Discussion started by: kandrewo
4 Replies

8. UNIX for Advanced & Expert Users

AIX 5.2 using jfs2 file system

We are using AIX 5.2 using jfs2 almost all excpt one mount. Is it possible for a non root user id to mount one file system without journaling turned on, perform some activities and then remount (un-mount and mount) the same file system again. Please advise if this is possible Thanks (2 Replies)
Discussion started by: jerardfjay
2 Replies

9. UNIX for Advanced & Expert Users

Mounting an ISO As a file system in AIX

I want to mount an ISO image as a file system in AIX, have been unable to find a utility to do so after scouring the net. Bryan (1 Reply)
Discussion started by: murdaugh
1 Replies
Login or Register to Ask a Question