mirror of
https://github.com/samba-team/samba.git
synced 2025-03-03 12:58:35 +03:00
disk_quotas: style fix
Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
parent
6689499488
commit
91eeeb76f0
@ -712,8 +712,9 @@ bool disk_quotas(connection_struct *conn, const char *path, uint64_t *bsize,
|
||||
} else if (D.softlimit==0 && D.hardlimit==0) {
|
||||
goto try_group_quota;
|
||||
} else {
|
||||
if (D.softlimit == 0)
|
||||
if (D.softlimit == 0) {
|
||||
D.softlimit = D.hardlimit;
|
||||
}
|
||||
*dfree = D.softlimit - D.curblocks;
|
||||
*dsize = D.softlimit;
|
||||
}
|
||||
@ -750,8 +751,9 @@ try_group_quota:
|
||||
} else if (D.softlimit==0 && D.hardlimit==0) {
|
||||
return False;
|
||||
} else {
|
||||
if (D.softlimit == 0)
|
||||
if (D.softlimit == 0) {
|
||||
D.softlimit = D.hardlimit;
|
||||
}
|
||||
*dfree = D.softlimit - D.curblocks;
|
||||
*dsize = D.softlimit;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user