Rockbox

This is the bug/patch tracker for Rockbox. Click here for more information.

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

FS#7913 - rbutil: mountpoint resolving using getmntinfo() on OS X

Attached to Project: Rockbox
Opened by Dominik Riebeling (bluebrother) - Tuesday, 09 October 2007, 19:11 GMT+2
Last edited by Barry Wardell (barrywardell) - Saturday, 13 October 2007, 18:28 GMT+2
Task Type Patches
Category Rbutil
Status Closed
Assigned To Dominik Riebeling (bluebrother)
Player Type Another
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Private No

Details

This is my first try to get mountpoint resolving on OS X running using getmntinfo(). As I can't test it myself I'm posting it as patch in the hope for someone else to test it ;-)
   autodetection-getmntinfo-osx.diff (1.5 KiB)
 autodetection.cpp |   29 +++++++++++++++++++++++------
 1 file changed, 23 insertions(+), 6 deletions(-)

This task depends upon

Closed by  Barry Wardell (barrywardell)
Saturday, 13 October 2007, 18:28 GMT+2
Reason for closing:  Fixed
Additional comments about closing:  Works great!
Comment by Barry Wardell (barrywardell) - Saturday, 13 October 2007, 17:27 GMT+2
I just tried this on my Intel mac and get these warnings:

autodetection.cpp: In member function 'QStringList Autodetection::getMountpoints()':
autodetection.cpp:178: error: 'MNT_WAIT' was not declared in this scope
autodetection.cpp:178: error: 'getmntinfo' was not declared in this scope
autodetection.cpp:180: error: invalid use of undefined type 'struct statfs'
autodetection.cpp:176: error: forward declaration of 'struct statfs'
autodetection.cpp:181: error: cannot increment a pointer to incomplete type 'statfs'
autodetection.cpp: In member function 'QString Autodetection::resolveMountPoint(QString)':
autodetection.cpp:225: error: 'MNT_WAIT' was not declared in this scope
autodetection.cpp:225: error: 'getmntinfo' was not declared in this scope
autodetection.cpp:227: error: invalid use of undefined type 'struct statfs'
autodetection.cpp:223: error: forward declaration of 'struct statfs'
autodetection.cpp:228: error: invalid use of undefined type 'struct statfs'
autodetection.cpp:223: error: forward declaration of 'struct statfs'
autodetection.cpp:229: error: invalid use of undefined type 'struct statfs'
autodetection.cpp:223: error: forward declaration of 'struct statfs'
autodetection.cpp:230: error: cannot increment a pointer to incomplete type 'statfs'
Comment by Dominik Riebeling (bluebrother) - Saturday, 13 October 2007, 17:47 GMT+2
added the includes I forgot and fixed typos.
   autodetection-getmntinfo-osx2.diff (1.7 KiB)
 autodetection.cpp |   34 ++++++++++++++++++++++++++++------
 1 file changed, 28 insertions(+), 6 deletions(-)

Loading...