Summary: | soliddevice uses statfs(), should use statvfs() on some OS's | ||
---|---|---|---|
Product: | [Plasma] plasma4 | Reporter: | Mark Davies <mark> |
Component: | general | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | NetBSD pkgsrc | ||
OS: | NetBSD | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
NetBSD patch for stat{v,}fs() issue in soliddevice
statvfs support with CMake test |
Description
Mark Davies
2007-12-27 21:34:05 UTC
Created attachment 22711 [details]
NetBSD patch for stat{v,}fs() issue in soliddevice
The ST_RDONLY in the patch is a define that happens to exist only on NetBSD's
that use statvfs() rather than statfs(). The correct way to do this would
actually be a CMake test for existence of statvfs() and ifdef based on that,
but I haven't done that yet.
Created attachment 22723 [details]
statvfs support with CMake test
Can you test the attached patch, please?
> Can you test the attached patch, please?
Looks good. Although your "#warning TODO.." at the end should now presumably read "handle systems without either statvfs() or statfs()"
SVN commit 753861 by alexmerry: Use statvfs() if available to get disk space (recommended on Linux by LSB and required on NetBSD and Solaris). BUG: 154711 M +2 -0 ConfigureChecks.cmake M +6 -0 config-workspace.h.cmake M +12 -2 plasma/dataengines/soliddevice/soliddeviceengine.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=753861 Yes, I realised that after I sent it. I'll change it before I commit it. |