Bug 30816

Summary: usr.sbin/edquota new option [-f]
Product: Base System Reporter: Dmitry Morozovsky <marck>
Component: binAssignee: Yar Tikhiy <yar>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Dmitry Morozovsky 2001-09-25 15:30:00 UTC
Adding new filesystem to the existing system with enabled quotas may produce
problems with distributing quotas for existing user accounts on new filesystem.
Although edquota has option -p, it's virtually impossible to set quotas
on the filesystem created. 

Solution would look as proposed: add `-f fspath' option to edquota to
restrict editable (or distributable via -p) filesystem list to single
filesystem. It look reasonable to specify fs either via special device or 
via mountpoint path.

How-To-Repeat: 
Sample (real) situation: system with enabled quotas, mainly equal for all users,
but with some exceptions. New disk added, new filesystem created and mounted
Proto-user quotas has beed edited to reflect new usual needs. However, there's
no simple way to distribute this value for each of users of particular
UID range.

With -f functionality, it's rather simple (given fs mount to /ar2, proto uid is 5000, uid range is 5001-5999):

edquota -p 5000 -f /ar2 5001-5999
Comment 1 Yar Tikhiy freebsd_committer freebsd_triage 2001-09-28 11:23:13 UTC
State Changed
From-To: open->analyzed

Committed to -current, thanks. MFC pending... 


Comment 2 Yar Tikhiy freebsd_committer freebsd_triage 2001-09-28 11:23:13 UTC
Responsible Changed
From-To: freebsd-bugs->yar

I'll take care of it.
Comment 3 Yar Tikhiy freebsd_committer freebsd_triage 2001-11-14 05:17:24 UTC
State Changed
From-To: analyzed->closed

Merged to -stable as well. Thanks!