[Bug 1579] New: mount: nfs_strerror() broken for EDQUOT on mips

bugzilla at busybox.net bugzilla at busybox.net
Fri Apr 16 00:15:17 UTC 2010


https://bugs.busybox.net/show_bug.cgi?id=1579

            Target: mips
             Build: 1.16.1
           Summary: mount: nfs_strerror() broken for EDQUOT on mips
           Product: Busybox
           Version: 1.16.x
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: trivial
          Priority: P5
         Component: Other
        AssignedTo: unassigned at busybox.net
        ReportedBy: jonas.gorski+bbbugs at gmail.com
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0


Compiling busybox for mips produces a warning on compilation of mount.c that a
too long value was truncated.

Reason is that:

static const uint8_t nfs_err_errnum[] = {
        EPERM , ENOENT      , EIO      , ENXIO , EACCES, EEXIST,
        ENODEV, ENOTDIR     , EISDIR   , EINVAL, EFBIG , ENOSPC,
        EROFS , ENAMETOOLONG, ENOTEMPTY, EDQUOT, ESTALE, EREMOTE
};

but asm/errno.h for mips has:

#define EDQUOT          1133    /* Quota exceeded */

changing nfs_err_errnum to uint16_t should fix this.

P.S: MIPS isn't the only architecture with errnums bigger than 255, but the
only one with one used here.


-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list