Issue 484 in psutil: Negative used value on smbfsm osx 10.9.1

8 views
Skip to first unread message

psu...@googlecode.com

unread,
Feb 24, 2014, 5:13:11 PM2/24/14
to psutil-...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 484 by Pre...@gmail.com: Negative used value on smbfsm osx 10.9.1
http://code.google.com/p/psutil/issues/detail?id=484

What steps will reproduce the problem?
Disk usage on my nas (smb) reports used diskspace as negative value.


What version of psutil are you using? What Python version?
latest psutil. python 2.7.5


On what operating system? Is it 32bit or 64bit version?
OSX 10.9.1 64 bit

Please provide any additional information below.

usage(total=616329322496, used=-3369346490368, free=3985675812864,
percent=-546.7)
partition(device='//GUEST:@Tower._smb._tcp.local/AUTODOWNLOAD',
mountpoint='/Volumes/AUTODOWNLOAD', fstype='smbfs',
opts='rw,nosuid,ignore-ownership')

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

psu...@googlecode.com

unread,
Feb 24, 2014, 5:33:12 PM2/24/14
to psutil-...@googlegroups.com

Comment #1 on issue 484 by g.rodola: Negative used value on smbfsm osx
10.9.1
http://code.google.com/p/psutil/issues/detail?id=484

Mmm... you're talking about this, right?

>>> psutil.disk_usage('/Volumes/AUTODOWNLOAD')

That looks like a precision issue. Point is psutil uses os.statvfs() in
order to determine disk usage so the problem should originate from that
(hence it's "Python's fault" hehe).

Can you paste the output of "import os;
print(os.statvfs('/Volumes/AUTODOWNLOAD'))"?

psu...@googlecode.com

unread,
Feb 24, 2014, 5:53:46 PM2/24/14
to psutil-...@googlegroups.com

Comment #2 on issue 484 by Pre...@gmail.com: Negative used value on smbfsm
osx 10.9.1
http://code.google.com/p/psutil/issues/detail?id=484

posix.statvfs_result(f_bsize=1048576, f_frsize=1024, f_blocks=601884104,
f_bfree=3892261432, f_bavail=3892261432, f_files=4294967295,
f_ffree=4294967295, f_favail=4294967295, f_flag=2, f_namemax=255)

psu...@googlecode.com

unread,
Feb 24, 2014, 6:49:36 PM2/24/14
to psutil-...@googlegroups.com

Comment #3 on issue 484 by g.rodola: Negative used value on smbfsm osx
10.9.1
http://code.google.com/p/psutil/issues/detail?id=484

Problem is f_bavail (available size) which is way higher than f_blocks
(total size), and that of course doesn't make sense.
I guess os.statvfs() just doesn't work well with SMB filesystems.

psu...@googlecode.com

unread,
Feb 24, 2014, 7:15:24 PM2/24/14
to psutil-...@googlegroups.com

Comment #4 on issue 484 by Pre...@gmail.com: Negative used value on smbfsm
osx 10.9.1
http://code.google.com/p/psutil/issues/detail?id=484

It works fine on my rpi againste the same share. Seems to be a osx issue,
I'll see if I can tried a older osx version and try there. At least the
free size is correct :p

psu...@googlecode.com

unread,
Mar 10, 2014, 8:01:43 PM3/10/14
to psutil-...@googlegroups.com

Comment #5 on issue 484 by Pre...@gmail.com: Negative used value on smbfsm
osx 10.9.1
http://code.google.com/p/psutil/issues/detail?id=484

The problem only accures with osx against a unraid share (ntfs). The size
is correct if i mount a physical drive.

psu...@googlecode.com

unread,
Mar 10, 2014, 9:02:14 PM3/10/14
to psutil-...@googlegroups.com

Comment #6 on issue 484 by g.rodola: Negative used value on smbfsm osx
10.9.1
http://code.google.com/p/psutil/issues/detail?id=484

Yep, I'd be keen on assuming this is an OSX bug. I guess the best we can do
is to signal this in the doc.

psu...@googlecode.com

unread,
Mar 29, 2014, 3:22:36 PM3/29/14
to psutil-...@googlegroups.com

Comment #7 on issue 484 by Pre...@gmail.com: Negative used value on smbfsm
osx 10.9.1
http://code.google.com/p/psutil/issues/detail?id=484

I havnt had the chance to test it on other osx version other then 10.9.1.

psu...@googlecode.com

unread,
May 26, 2014, 11:10:04 AM5/26/14
to psutil-...@googlegroups.com

Comment #8 on issue 484 by g.rodola: Negative used value on smbfsm osx
10.9.1
http://code.google.com/p/psutil/issues/detail?id=484

psutil has been migrated from Google Code to Github (see:
http://grodola.blogspot.com/2014/05/goodbye-google-code-im-moving-to-github.html).
Please do NOT reply here but use this instead:
https://github.com/giampaolo/psutil/issues/484

psu...@googlecode.com

unread,
Jan 2, 2015, 7:33:17 AM1/2/15
to psutil-...@googlegroups.com
Updates:
Status: Invalid

Comment #9 on issue 484 by g.rodola: Negative used value on smbfsm osx
10.9.1
https://code.google.com/p/psutil/issues/detail?id=484

I will assume this is an OSX bug and close this issue.
Reply all
Reply to author
Forward
0 new messages