Rockbox

Tasklist

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

Attached to Project: Rockbox
Opened by Dominik Riebeling (bluebrother) - Tuesday, 09 October 2007, 17:11 GMT
Last edited by Barry Wardell (barrywardell) - Saturday, 13 October 2007, 16:28 GMT
Task Type Patches
Category Rbutil
Status Closed
Assigned To Dominik Riebeling (bluebrother)
Operating System Another
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
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 ;-)
This task depends upon

Closed by  Barry Wardell (barrywardell)
Saturday, 13 October 2007, 16:28 GMT
Reason for closing:  Fixed
Additional comments about closing:  Works great!
Comment by Barry Wardell (barrywardell) - Saturday, 13 October 2007, 15:27 GMT
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, 15:47 GMT
added the includes I forgot and fixed typos.

Loading...