Menu

#29 Report free/used space

obexftp-0.24.2-0.25
open-accepted
None
5
2014-02-21
2009-11-17
Anonymous
No

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.

Discussion

  • Nobody/Anonymous

     
  • Hendrik Sattler

    Hendrik Sattler - 2010-04-15
    • assigned_to: nobody --> zany
     
  • Hendrik Sattler

    Hendrik Sattler - 2014-02-19
    • status: open --> pending
    • assigned_to: Christian W. Zuckschwerdt --> Hendrik Sattler
    • Group: --> obexftp-0.24.2-0.25
     
  • Hendrik Sattler

    Hendrik Sattler - 2014-02-21
    • status: pending --> open-accepted
     
  • Hendrik Sattler

    Hendrik Sattler - 2014-02-21

    I added the patch to my gitorious repository but splitted it into three patches and made some style adjustments. I used you real-name as author entry

     

Log in to post a comment.