obexfs - Nokia 6630 over USB can't create dir

Help
Andrew
2006-08-03
2013-05-01
  • Andrew

    Andrew - 2006-08-03

    I'm trying to use obexfs with my Nokia 6630 over USB on Debian. I managed to compile and install obexfs 0.8, and after applying this patch from the
    forums:

    http://sourceforge.net/forum/message.php?msg_id=3616891

    it also works with USB. However, although I can copy files into the mounted filesystem, I can't create directories, either in the 'C:'
    directory (phone memory) or the 'E:' directory (MMC card). Here's an example invocation and error message:

    root@laura:/home/ferriera$ obexfs -u 1 /mnt/phone/
    root@laura:/mnt/phone/E:$ mkdir blah
    mkdir: cannot create directory `blah': No such file or directory

    I've tried 'strace mkdir blah', and I think this part might be relevant, although I'm not sure whether it helps:

    umask(0)                                = 077
    umask(077)                              = 0
    mkdir("blah", 0777)                     = -1 ENOENT (No such file or directory)
    stat64("blah", 0xbf95bb50)              = -1 ENOENT (No such file or directory)
    open("/usr/share/locale/locale.alias", O_RDONLY) = 3
    fstat64(3, {st_mode=S_IFREG|0644, st_size=2539, ...}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f47000
    read(3, "# Locale name alias data base.\n#"..., 4096) = 2539
    read(3, "", 4096)                       = 0
    close(3)                                = 0

    Is this a known problem? Does anyone have any further suggestions for diagnosing it?

    It appears to be possible to create directories with obexftp without a problem:

    root@laura:/home/ferriera$ obexftp -u 1 -C 'E:/Blah'
    Connecting...done
    Sending "E:"... Sending "Blah"... done
    Disconnecting...done
    root@laura:/home/ferriera$ obexfs -u 1 /mnt/phone/
    root@laura:/home/ferriera$ ls -l /mnt/phone/E\:/
    total 3.0K
    drwxr-xr-x  1 root root 0 2008-05-07 11:56 Blah
    drwxr-xr-x  1 root root 0 2006-06-07 12:22 Images
    drwxr-xr-x  1 root root 0 2006-07-07 07:56 MP3s
    drwxr-xr-x  1 root root 0 2006-10-07 22:23 Others
    drwxr-xr-x  1 root root 0 2006-06-07 12:22 Sounds
    drwxr-xr-x  1 root root 0 2006-06-07 12:22 Videos

     
    • Christian W. Zuckschwerdt

       
    • Andrew

      Andrew - 2006-08-03

      OK, I've upgraded obexfs to 0.10 and obexftp to 0.21. The general obex libraries are also upgraded to 1.3 from 1.2.

      Unfortunately, I'm still seeing the same error:

      root@laura:/mnt/phone/E:$ mkdir wibble
      mkdir: cannot create directory `wibble': No such file or directory

      Every other operation (file create, modify, delete, directory delete) seems to work, so I'm wondering if it's a problem with the obexfs implementation of mkdir?

       
    • Andrew

      Andrew - 2006-08-03

      Also, the following is what I get when I invoke obexfs with the -d option and try to create a directory:

      unique: 5, opcode: LOOKUP (1), nodeid: 2, insize: 46
      LOOKUP /E:/blah5
      ofs_getattr() '/E:/blah5'
      ofs_connect() >>>blocking<<<
      ofs_disconnect() <<<unblocking>>>
         unique: 5, error: -2 (No such file or directory), outsize: 16
      unique: 6, opcode: MKDIR (9), nodeid: 2, insize: 54
      MKDIR /E:/blah5
      /E:/blah5ofs_connect() >>>blocking<<<
      ofs_disconnect() <<<unblocking>>>
      ofs_getattr() '/E:/blah5'
      ofs_connect() >>>blocking<<<
      ofs_disconnect() <<<unblocking>>>
         unique: 6, error: -2 (No such file or directory), outsize: 16
      unique: 7, opcode: LOOKUP (1), nodeid: 2, insize: 46
      LOOKUP /E:/blah5
      ofs_getattr() '/E:/blah5'
      ofs_connect() >>>blocking<<<
      ofs_disconnect() <<<unblocking>>>
         unique: 7, error: -2 (No such file or directory), outsize: 16

       
      • Christian W. Zuckschwerdt

        Thanks. I know where to look now and will see to it.

         

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks