Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 367331

Summary: sys-fs/quotatool-1.4.6: quotatool doesnt skip "rootfs / rootfs" mount entry
Product: Gentoo Linux Reporter: Marek Królikowski <admin>
Component: New packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: UNCONFIRMED ---    
Severity: major    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Marek Królikowski 2011-05-15 08:09:49 UTC
After upgrade to stable openrc, command mount show new rootfs:
WIZJA2 ~ # mount
rootfs on / type rootfs (rw)
/dev/sda2 on / type reiserfs (rw,noatime,usrquota,grpquota)

Problem is with quotatool he try use quota for rootfs not for partition /dev/sda2

Reproducible: Always

Steps to Reproduce:
1. Upgrade to stable OpenRC
2. /usr/bin/quotatool -v -u taken  -bq 150M -l 200M /
3.
Actual Results:  
quotatool: using uid taken
quotatool: setting block limit
quotatool: setting soft limit to 150M
quotatool: setting hard limit to 200M
quotatool: using filesystem /
quotatool: user 'taken' has uid 1000
quotatool: filesystem / has device node rootfs
quotatool: Error while detecting kernel quota version: No such file or directory


Expected Results:  
Set quota for user on / filesystem
Comment 1 Marek Królikowski 2011-05-15 08:14:07 UTC
I check unstable version of quotatool got this same problem:
WIZJA2 ~ # quotatool -V
  quotatool version 1.4.11
  Copyright (c) 1999-2009 Mike Glover / Johan Ekenberg
  Distributed under the GNU General Public License
  http://quotatool.ekenberg.se
WIZJA2 ~ # /usr/bin/quotatool -v -u taken  -bq 150M -l 200M /
quotatool: using uid taken
quotatool: setting block limit
quotatool: setting soft limit to 150M
quotatool: setting hard limit to 200M
quotatool: using filesystem /
quotatool: user 'taken' has uid 1000
quotatool: filesystem / has device node rootfs
quotatool: Error while detecting kernel quota version: No such file or directory
Comment 2 Marek Królikowski 2011-05-15 08:18:49 UTC
i find how to set quota don`t use a mountpoint start use a fs:
/usr/bin/quotatool -v -u taken  -bq 150M -l 200M /dev/sda2

But i think this is a bug because quotatool try set a quota for rootfs when u use a mountpoint
Comment 3 SpanKY gentoo-dev 2011-05-17 18:14:10 UTC
quotatool should skip the rootfs mount entry