statfs()

Intrebari despre limbajul C++, standardul C++, STL, OOP in C++ sau alte subiecte nelegate de VisualC++
Post Reply
sclaudiu031181
Junior
Junior
Posts: 1
Joined: 11 Jan 2015, 11:19
Judet: Vrancea

statfs()

Post by sclaudiu031181 » 11 Jan 2015, 11:27

De ce exista o diferenta intre spatiul raportat de statfs() si domanda df (linux) ?
unde gresesc ?

bash-4.1$ ./freespace
statvfs() completed successfully.
Id file sys :61267
Block Size :4096
Blocks :1027056
Free blocks :1005690
Non root fb :953518
Inodes :261120
Free Inodes :261015
FS Id :15775499179247577639
Max fn leng :255
space :4119306240

bash-4.1$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda6 4108224 85464 3814072 3% /tmp



User avatar
Ovidiu Cucu
Fondator
Fondator
Posts: 3778
Joined: 11 Jul 2007, 16:10
Judet: Iaşi
Location: Iasi
Contact:

Re: statfs()

Post by Ovidiu Cucu » 11 Jan 2015, 15:20

sclaudiu031181 wrote:De ce exista o diferenta intre spatiul raportat de statfs() si domanda df (linux) ?
statfs nu este o functie standard.
De ce exista diferente intre ce da statfs si ce da comnada df?
Intreaba-i pe cei care bibilesc sistemul si librariile linux.

Post Reply