From nobody@FreeBSD.ORG  Fri Dec 10 17:25:01 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 5BED014E64; Fri, 10 Dec 1999 17:25:01 -0800 (PST)
Message-Id: <19991211012501.5BED014E64@hub.freebsd.org>
Date: Fri, 10 Dec 1999 17:25:01 -0800 (PST)
From: timlee@netcom.com
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: edquota -p copies current usage as well as quota
X-Send-Pr-Version: www-1.0

>Number:         15410
>Category:       bin
>Synopsis:       edquota -p copies current usage as well as quota
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 10 17:30:01 PST 1999
>Closed-Date:    Sat Dec 27 08:20:50 PST 2003
>Last-Modified:  Sun Feb  4 01:50:15 GMT 2007
>Originator:     Timothy J. Lee
>Release:        3.2-19990726-STABLE i386
>Organization:
>Environment:
FreeBSD 3.2-19990726-STABLE i386 with "options QUOTA" in the kernel
configuration file.  Filesystems are FFS with softupdates.  /etc/fstab
specifies userquota, and quotacheck has been run.
>Description:
"edquota -p someuser otherusr" copies someuser's current usage as well
as quotas to the otherusr.  Need to run quotacheck again to fix the
current usage.
>How-To-Repeat:
quota -v someuser
quota -v otherusr
edquota -p someuser otherusr
quota -v otherusr
>Fix:
Workaround:  run quotacheck after using "edquota -p".
Fix:  ???  Code in setquota() in
/usr/src/sys/ufs/ufs/ufs_quota.c looks like it should
ignore changes in the current usage (edquota does not
check the current usage values when copying from one
user to another with -p).

>Release-Note:
>Audit-Trail:

From: Peter Avalos <pavalos@theshell.com>
To: freebsd-gnats-submit@freebsd.org
Cc: pavalos@theshell.com
Subject: Re: bin/15410: edquota -p copies current usage as well as quota
Date: Sun, 21 Apr 2002 00:56:29 -0700

 I couldn't reproduce this on 4-STABLE, but I don't have softupdates.
State-Changed-From-To: open->closed 
State-Changed-By: ceri 
State-Changed-When: Sat Dec 27 08:20:18 PST 2003 
State-Changed-Why:  
This is not reproducible on today's FreeBSD. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=15410 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/15410: commit references a PR
Date: Sun,  4 Feb 2007 01:41:49 +0000 (UTC)

 mpp         2007-02-04 01:41:33 UTC
 
   FreeBSD src repository
 
   Modified files:
     usr.sbin/edquota     edquota.c 
   Log:
   If quotas are not currently enabled for a file system, edquota -p
   will operate directly on the quota file.  It will incorrectly write
   the prototype user's usage information for each new quota it sets.
   
   Fixed to read in the current quota information and update the
   file correctly.
   
   If quotas are enabled the kernel handles this case fine.
   
   PR:     bin/15410
   
   Revision  Changes    Path
   1.25      +63 -8     src/usr.sbin/edquota/edquota.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
