hi

i am not able to mount a nfs share with busybox mount;
the original redhat mount works:

./mount -?
./mount: invalid option -- ?
BusyBox v1.5.0 (2007-04-18 17:25:08 CEST) multi-call binary

Usage: mount [flags] DEVICE NODE [-o options,more-options]

# strace ./mount -t nfs abc:/xyz /mnt/xyz
...
mount("abc:/xyz", "/mnt/xyz", "nfs", 0x8000, 0x8191d48) = -1 EINVAL (Invalid 
argument)
...
# mount --version
mount: mount-2.10r
# strace mount -t nfs abc:/xyz /mnt/xyz
mount("abc:/xyz", "/mnt/xyz", "nfs", 0xc0ed0000, 0x8057a00) = 0

# man 2 mount
tells me:

> The rwflag argument has the magic number 0xC0ED in the top 16  bits,  and  
> various
> mount  flags  (as defined in <linux/fs.h> for libc4 and libc5 and in 
> <sys/mount.h>
> for glibc2) in the low order 16 bits:
> ...
> If the magic number is absent, then the last two arguments are not used.

but this magic number is not used here, busybox uses 0x8000 

# strace ./mount -t nfs -o ro abc:/xyz /mnt/xyz
mount("abc:/xyz", "/mnt/xyz", "nfs", MS_RDONLY|0x8000, 0) = -1 EINVAL (Invalid 
argument)

# strace mount -t nfs -o ro abc:/xyz /mnt/xyz
mount("abc:/xyz", "/mnt/xyz", "/mnt/serviw2-part1", "nfs", 
MS_RDONLY|0xc0ed0000, 0x8057a00) = 0

what can be wrong here?

mfg hermann

Attachment: pgpepMUBGU1Zb.pgp
Description: PGP signature

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

Reply via email to