Re: Failing to mount an SMB file system produces unexpected behavior

From: Urban Widmark (urban@svenskatest.se)
Date: Tue May 09 2000 - 14:38:29 EST


On Tue, 9 May 2000 peloquin@us.ibm.com wrote:

> Am seeing a problem in mount when mounting smb file systems. There is
> special code in mount for either smb or ncp where it forks to create a
> child which then execs the appropriate function. The parent waits for the
> child process to end. In the case of a failed smbmount, smbmount returns a
> status code of 1, but the value returned to the wait is apparantly shifted
> left by 8 actually returning a status code of 256 to mount. Mount

The status parameter to wait does not only return the return code of the
child, which is why there are macros such as WEXITSTATUS to access the
status value. The exit status is (apparently) not in the lowest bits. Is
the value returned by WEXITSTATUS also wrong?

A smbmount/mount related bug was found and fixed in util-linux 2.10b
(according to the HISTORY), are you using a newer or older mount program?

Try using the latest version, available from:
    ftp://ftp.win.tue.nl/pub/linux/utils/util-linux/
and if you still see the problem send a report to the maintainer of the
util-linux package, which according to the util-linux MAINTAINER file is:
util-linux@math.uio.no.

/Urban

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon May 15 2000 - 21:00:14 EST