Copy of my patch from https://bugs.launchpad.net/ubuntu/+source/obexfs/+bug/135812, reapplied to 0.12
I've implemented getting total/free space statistics for my phone - Nokia N70. It should work for other Nokia phones too, please report results here.
Since phone may have several memory devices (e.g. internal memory and memory card), you must specify which one you want to use. obexfs now have '-r' (or '--root') option for that. If it is omitted (which is equivalent to --root="/"), obexfs will work as usual and show folders like 'c:' and 'e:' in mount point, but it will fail to report total/free space. This is just for compatibility with unpatched version.
In order to get proper space statistics, you must specify a root, like --root=e: (trailing slash or backslash may be appended and is ignored). Then obexfs will report space statistics properly. You may also specify some folder as root, like --root="e:/Video".
You can view list of available memory devices with 'obexftp --capability'.
If your phone isn't supported or you still get zero statistics, there is a hack: give "--report-space=100000" option to obexfs and it will report this number of bytes as both total and free space.
If you have problems with space statistics, please use 'obexfs <options> -- -odebug <mountpoint> 2>&1 | tee obexfs.log' and send log to me together with output of 'obexftp <device-options> --capability' and 'obexftp <device-options> --list /'.
Patch is attached. Built package is located in my PPA.
obexfs isn't yet fully usable, it sometimes crashes, but this is result of bugs in obexftp.
Log in to post a comment.