lkml.org 
[lkml]   [1996]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectFix for edquota
Hey,

This isn't really kernel related but I don't know where the quota list is.
There has been a bug for a long time in edquota when you do
edquota -p user1 user2
it would also copy the actual file count and only for the first filesystem
with the quotas. I finally had time to look into it and it ended up being
a tiny fix.

Here attached is the diff. i did it in 5 minutes so I hope it's not buggy
:)

works for me,

I don't really what the standard way is for doing a diff so plz excuse
mine if it's not standard. I include the diff at the end in case some ppl
can't read MIME

Andi Gutmans
,,,
(o o)
================================oOO==(_)==OOo=================================
Andi Gutmans - Computer Science, Israel Institute of Technology (Technion)

Email: s8152862@t2.technion.ac.il
andi@actcom.co.il
andi@vipe.technion.ac.il
andi@ccarik.technion.ac.il

.oooO Oooo.
================================( )==( )==================================
\ ( ) /
\_) (_/

79c79
< struct quotause *qup, *protoprivs, *curprivs;
---
> struct quotause *qup, *protoprivs, *curprivs, *curp;
119c119
< for (qup = protoprivs; qup; qup = qup->next) {
---
> /* for (qup = protoprivs; qup; qup = qup->next) {
122c122
< }
---
> } */
127,128c127,132
< protoprivs->dqblk.dqb_curblocks = curprivs->dqblk.dqb_curblocks;
< protoprivs->dqblk.dqb_curinodes = curprivs->dqblk.dqb_curinodes;
---
> for (qup = protoprivs, curp = curprivs; qup; qup = qup->next, curp = curp->next) {
> qup->dqblk.dqb_curblocks = curp->dqblk.dqb_curblocks;
> qup->dqblk.dqb_curinodes = curp->dqblk.dqb_curinodes;
> qup->dqblk.dqb_btime = 0;
> qup->dqblk.dqb_itime = 0;
> }
79c79
< struct quotause *qup, *protoprivs, *curprivs;
---
> struct quotause *qup, *protoprivs, *curprivs, *curp;
119c119
< for (qup = protoprivs; qup; qup = qup->next) {
---
> /* for (qup = protoprivs; qup; qup = qup->next) {
122c122
< }
---
> } */
127,128c127,132
< protoprivs->dqblk.dqb_curblocks = curprivs->dqblk.dqb_curblocks;
< protoprivs->dqblk.dqb_curinodes = curprivs->dqblk.dqb_curinodes;
---
> for (qup = protoprivs, curp = curprivs; qup; qup = qup->next, curp = curp->next) {
> qup->dqblk.dqb_curblocks = curp->dqblk.dqb_curblocks;
> qup->dqblk.dqb_curinodes = curp->dqblk.dqb_curinodes;
> qup->dqblk.dqb_btime = 0;
> qup->dqblk.dqb_itime = 0;
> }
\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.089 / U:2.932 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site