On Saturday 08 September 2007 01:09, Phillip Liang wrote:
> Hi,
> 
> This lead to CONFIG_FEATURE_MOUNT_NFS was not set.
> It is working now.
> Thanks for help.
> 
> Phillip
> -- "Phillip Liang" <[EMAIL PROTECTED]> wrote:
> The output indicates the program skip this part,
> 
>     // Might this be an NFS filesystem?
> 
> printf(" HERE 8\n");
>     if (ENABLE_FEATURE_MOUNT_NFS
>      && (!mp->mnt_type || !strcmp(mp->mnt_type,"nfs"))
>      && strchr(mp->mnt_fsname, ':') != NULL
>     ) {
>         rc = nfsmount(mp, vfsflags, filteropts);
> printf(" HERE 9\n");
>         goto report_error;
>     }
> 
> And goes to
> 
> 
> printf(" HERE 14\n");
>     // If mount failed, clean up loop file (if any).
> 
>     if (ENABLE_FEATURE_MOUNT_LOOP && rc && loopFile) {
>         del_loop(mp->mnt_fsname);
>         if (ENABLE_FEATURE_CLEAN_UP) {
>             free(loopFile);
>             free(mp->mnt_fsname);
>         }
>     }


Wait a second here.

As your earlier strace shows, with !ENABLE_FEATURE_MOUNT_NFS
we are using uninitialized file descriptor somewhere.

It's a bug, and it still should be fixed.

Can you do the strace again, with printfs added and FEATURE_MOUNT_NFS
not set (so that it will show "Bad file descriptor" again),
and send me strace log and your modified mount.c with printfs?

--
vda
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to