BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000988 [BusyBox] Other major always 08-08-06 04:53 02-18-08 04:05
Reporter massaware View Status public  
Assigned To BusyBox
Priority normal Resolution unable to reproduce  
Status closed   Product Version 1.2.x
Summary 0000988: mount does not support usrquota/grpquota options
Description we are trying to get quota working on a reiserfs filesystem created on an md raid device /dev/md0. However, when issuing a mount command to mount the device with the usrquota/grpquota options, the following error message is returned:

mount /dev/md0
mount: Mounting /dev/md0 on /mnt/data failed: Invalid argument

this when using the following fstab entry:

/dev/md0 /mnt/data reiserfs usrquota,grpquota,noauto,noatime 1 2

when mounting without using fstab but by forcing the options on commandline, the command succeeds:

~ # mount -t reiserfs -o usrquota,grpquota,noatime /dev/md0 /mnt/data
~ # mount
/dev/md0 on /mnt/data type reiserfs (rw,noatime)

~ # quotaon -vug /mnt/data
/dev/md0 [/mnt/data]: group quotas turned on
/dev/md0 [/mnt/data]: user quotas turned on

HOWEVER, quotas aren't really enabled, users can do whatever they want with the drive, no limits is imposed.

When using util-linux's mount, everything works without any problems, by using the same commands as stated above, so this has to be an issue with busybox's mount.
Additional Information
Attached Files

- Relationships

- Notes
(0005014)
vda
02-18-08 04:04

Just added additional -vv output support to mount.
With it, I see the following:

# mount -vv /dev/sda6 tmp -o usrquota
mount: mount('/dev/sda6','tmp','reiserfs',0x00008000,'usrquota'):0

So, "usrquota" is indeed passed to kernel. We did our part. Why quota isn't actually working for you - that's another question.

If you can get additional info - for example, how util-linux's mount() call
exactly looks like? (Not mount command, but mount() call done inside it).
Is it different from what we do? How?

Strace here doesn't help enough, you will need to build util-linux from source,
find mount(...) call and add debug printout like this:

        rc = mount(source, target, filesystemtype, mountflags, data);
+ printf("mount('%s','%s','%s',0x%08lx,'%s'):%d\n",
+ source, target, filesystemtype,
+ mountflags, (char*)data, rc);
 

- Issue History
Date Modified Username Field Change
08-08-06 04:53 massaware New Issue
08-08-06 04:53 massaware Status new => assigned
08-08-06 04:53 massaware Assigned To  => BusyBox
02-18-08 04:04 vda Status assigned => closed
02-18-08 04:04 vda Note Added: 0005014
02-18-08 04:05 vda Resolution open => unable to reproduce


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker