how to read disk read & write i/o through a c/c++ program ?

how to read disk read & write i/o through a c/c++ program ?

Post by Sankar Subburathina » Wed, 19 Apr 2000 04:00:00



Hello,

    I want to read the disk i/o details in linux through a c/c++
program. How can I do that ? Is there any system calls available ?

regards,
sankar

  s.sankar.vcf
< 1K Download
 
 
 

how to read disk read & write i/o through a c/c++ program ?

Post by Anand Krishnamoorth » Wed, 19 Apr 2000 04:00:00


Check out the *stat system calls.. Maybe they would give you what you require

Anand


> Hello,

>     I want to read the disk i/o details in linux through a c/c++
> program. How can I do that ? Is there any system calls available ?

> regards,
> sankar

>   ------------------------------------------------------------------------


>   Software Engineer
>   Digital Equipment India Limited ( A Compaq Compay )
>   Telecom Development Centre

>   Sankar Subburathinam

>   Digital Equipment India Limited ( A Compaq Compay )  HTML Mail
>   Telecom Development Centre
>   Bangalore                                            Home: 80-3440047
>   Karnataka                                            Work: 80-3370445 Extn: 3522
>   India                                                Netscape Conference Address
>   Additional Information:
>   Last Name Subburathinam
>   First NameSankar
>   Version   2.1


 
 
 

how to read disk read & write i/o through a c/c++ program ?

Post by Andre Charbonnea » Wed, 19 Apr 2000 04:00:00



> Hello,

>     I want to read the disk i/o details in linux through a c/c++
> program. How can I do that ? Is there any system calls available ?

> regards,
> sankar

What do you exactly mean by "disk i/o details"?
--
Andre Charbonneau
Software Engineer
Corel Corporation
728-0826 x5612
 
 
 

1. Read & Read/Write Groups

I am trying to achieve a solution to a (hopefully) simple scenario.

I have a Solaris 9 server that is going to be used for sharing files.

I would like to create 'shared' directories. Each directory will have
permissions assigned for two groups; one of these groups will give members
read access, the other group will give members read/write access.

Any new files created in the directory should 'inherit' these permissions.
Any file written should be able to be modified by any member of the
Read/Write group.

I realise that I will need to make use of acl's in order to achieve this
model, although I am not entirely sure how to go about doing this...

So far I have done the following:
mkdir /share
chown WriteGroup /share
chmod 2770 /share
setfacl -m 'group:ReadGroup:r-x' /share

This isn't quite giving me what I am after though.... :-(

Any suggestions, comments or requests for clarification(s)?

Thanks,
Damien

2. Need script to restart ppp after lost LCP packets

3. Sockets: write() writes OK, yet read() reads garbage...?

4. sed from x to [xX]

5. Question on writing c program implement cp function using UNIX system calls - read, write, etc.

6. Authorisation failed message

7. Need help writing C program using UNIX system calls (read, write, etc) that copies files

8. Balancing the net throughput

9. How to share read-only to one client and read-write to all others?

10. Remount read-only as read-write

11. virtual read/write fs over read-only fs

12. NFS fs read-only when mounted read-write

13. HPFS - read-only, is there a read-write version?