LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-18-2009, 10:22 AM   #1
HeartBeat
LQ Newbie
 
Registered: May 2009
Posts: 5

Rep: Reputation: 0
File System statistics


Hi All,

I have one basic question.
I have 512MB Compact Flash (EXT2 file system) which shall have 14 partitions.
I know that we shall use statfs system call to get to know the statistics of a filesystem. My question is if I use the statfs system call to these partitions, will the statfs system call return the statistics of the entire file sytem (ext2) or only the statistics of a partition to which the statfs is applied.
Please clarify it.

Regards,
HeartBeat
 
Old 06-18-2009, 08:15 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,311

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
A filesystem (in this context) only exists on one partition. You could have the same or different fs types on each partition.
Here's a good page about statfs() and related calls.
http://linux.die.net/man/2/statfs

If you're using LVMs, the FS can cover more than on partition, but the point of LVMs is to make partitions invisible.

Last edited by chrism01; 06-18-2009 at 08:16 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
C library for *nix system statistics CoderMan Programming 2 02-02-2009 12:26 AM
System Hardware statistics? Lola Kews Linux - Software 7 10-01-2007 07:19 PM
Collecting file modification statistics f97mp Linux - Newbie 4 02-06-2007 01:18 PM
System monitor/statistics TBKDan Linux - Software 5 01-14-2006 03:28 AM
Statistics on file accesses (Samba) ? intens Linux - Software 5 01-19-2004 11:57 AM


All times are GMT -5. The time now is 11:51 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration