Operating System - Linux
1752367 Members
5894 Online
108787 Solutions
New Discussion юеВ

Re: Regarding statvfs and fstatvfs

 
dudekulashameer
Occasional Contributor

Regarding statvfs and fstatvfs

Hi Friends,

Could u please provide me answers for the below questions.

1. Call statvfs() on an existing file. Check file system block and inode counts. Check file system ID.
2. Call statvfs() on non-existent file.
3. Call statvfs() with NULL pathname.
4. Call statvfs() with component of pathname non-directory.
5. Call statvfs() with pathname that has one component without search permission.
6. Call statvfs() with invalid pathname.
7. Call statvfs() with invalid buf address.
8. Call statvfs() using pathname that is a symbolic link with a circular loop.
9. Call statvfs() with a pathname that is too long.
10. Call statvfs() with a pathname component that is too long.
11. Call fstatvfs() on an existing file. Check file system block and inode counts. Check file system ID.
12. Call fstatvfs() invalid file descriptor.
13. Call fstatvfs() with unopened file descriptor.
14. Call fstatvfs() with invalid buf address.

тАв Expected Result:

1. Success.
2. Failure with ENOENT(2).
3. Failure with ENOENT(2).
4. Failure with ENOTDIR(20).
5. Failure with EACCES(13).
6. Failure with EFAULT(14).
7. Failure with EFAULT(14).
8. Failure with ELOOP(249).
9. Failure with ENAMETOOLONG(248).
10. Failure with ENAMETOOLONG(248).
11. Success.
12. Failure with EBADF(9).
13. Failure with EBADF(9).
14. Failure with EFAULT(14).



Please help me in doing this...I need to submit these answers by tommorow afternoon.
Please help me..

Thanks in Advance,
Shammer.
4 REPLIES 4
Dennis Handly
Acclaimed Contributor

Re: Regarding statvfs and fstatvfs

You seem to already have the answers. What more do you want, a test case for each?
dudekulashameer
Occasional Contributor

Re: Regarding statvfs and fstatvfs

Hi,
Thanks for your reply :)

Absolutely right...


I need testcases for it.Please help me..


Thanks,
Shammeer.

dudekulashameer
Occasional Contributor

Re: Regarding statvfs and fstatvfs

Could u please compile this in HPUX Itanium 11.31 machine.

Please let me know u have this machine ..

Thanks,
shammer
James R. Ferguson
Acclaimed Contributor

Re: Regarding statvfs and fstatvfs

Hi:

> Please help me in doing this...I need to submit these answers by tommorow afternoon.

Homework assignments are not the purpose of this forum, if that correctly represents your intent.

As for testing, see:

http://www.testdrive.hp.com/os/

Regards!

...JRF...