mountpoint: "Value too large for defined data type" (not compiled with 64 bit offsets)

Bug #767244 reported by Radu Cristescu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sysvinit (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: sysvinit

mountpoint is not built with 64bit offsets, and this makes it to misbehave on certain mounts, like in the example below.

I have a samba mount: //192.168.80.215/Data-Area1/ on /mnt/static/57 type cifs (rw,mand)
I execute: mountpoint /mnt/static/57
I get: mountpoint: /mnt/static/57: Value too large for defined data type (exit code 1)

I got the source and compiled mountpoint with 64 bit offsets: gcc -D_FILE_OFFSET_BITS=64 mountpoint.c -o mountpoint
With the new binary I get: /mnt/static/57 is a mountpoint (exit code 0)

I am running 10.10 32bit, but I don't see anything related to this in the changelog for 11.04. I tested a very old 7.10 32bit system, and it doesn't show this problem. I don't have anything in-between to test to see when this got broken.

Related branches

Radu Cristescu (radu.c)
description: updated
description: updated
Revision history for this message
Radu Cristescu (radu.c) wrote :

Bug still exists in 12.04 LTS by the way.

Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (31.3 KiB)

This bug was fixed in the package sysvinit - 2.88dsf-41ubuntu1

---------------
sysvinit (2.88dsf-41ubuntu1) saucy; urgency=low

  * Merge from Debian unstable:
    - fixes typo in /lib/init/vars.sh. LP: #1146047.
  * Remaining changes:
    - Remove various initscripts (and an ifupdown hook) that have been
      replaced by upstart jobs shipped in other packages.
    - debian/sysvinit-utils.links: Compat symlink from /usr/bin/service to
      /usr/sbin/service
    - If /var/run/init.upgraded exists, call telinit u before unmounting
      the root filesystem.
    - Support Cell processor:
      + debian/initscripts.postinst: Create spu system group and /spu mount
        point if we are running on a Cell processor.
      + debian/control: Add initscripts dependency 'passwd' for groupadd.
    - debian/patches/91_sulogin_lockedpw.dpatch: Disable "root account is
      locked" warning, since this is the default in Ubuntu. Document this in
      sulogin.8.
    - debian/patches/92_sulogin_support_static_sh.patch: add support for
      /bin/static-sh as fallback if the regular shell fails to execute
    - debian/control: Drop Essential: yes from packages since we use Upstart.
    - debian/control: Do not build the sysvinit binary package any more. It
      conflicts with upstart, which is required, so it is uninstallable.
    - remove debian/postinst: this is supposed to go into the sysvinit
      package in Debian, but we don't ship that.
    - debian/control: sysvinit-utils recommends the upstart that provides
      the reload action
    - Mark all binary packages as Multi-Arch: foreign to allow for upstart
      to be installable with multi-arch (needed for armhf containers on x86)
    - Add a versioned depends to initscripts of mountall (>= 2.28), since
      everything else depends on initscripts for /run and the boot-time
      implementation is in mountall for us.
    - Drop /etc/default/tmpfs, and drop mention of it from
      debian/src/initscripts/man/rcS.5.
    - Added debian/src/initscripts/etc/init.d/ondemand: Sleep for 60 seconds,
      then set CPU Frequency Scaling governor to "ondemand" (or to
      "interactive" on systems that support it).
    - Remove mention of RAMLOCK, RAMSHM, and RAMTMP from the rcS(5) manual
      page.
    - When /dev/shm and /run/shm are both directories (not mounts), make
      /dev/shm a symlink to /run/shm.
    - d/service/service: Use 'stop/start' instead of passing restart
      directly through to upstart.
    - d/service/service.8: Document handling of upstart jobs.
    - Fix documentation for other things handled by mountall instead of
      initscripts: tmpfs, /sys (mountall lets you specify options in
      /etc/fstab), and ASYNCMOUNTNFS.
    - debian/src/initscripts/etc/init.d/sendsigs:
      + sendsigs: OMITPIDS needs to be reinitalized for every loop iteration
        before concatenating pids of upstart jobs to it.
      + only omit jobs that are in the 'start' goal or that are in state
        'stop/killed'. Those that are destined for 'stop' are waited on and
        killed like all other processes.
      + make report_unkillable use apport instead of echoing to console; but
        disable...

Changed in sysvinit (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.