|
@@ -37,21 +37,19 @@ class INodeDirectoryWithQuota extends INodeDirectory {
|
|
|
* @param dsQuota Diskspace quota to be assigned to this indoe
|
|
|
* @param other The other inode from which all other properties are copied
|
|
|
*/
|
|
|
- INodeDirectoryWithQuota(long nsQuota, long dsQuota, INodeDirectory other)
|
|
|
- throws QuotaExceededException {
|
|
|
+ INodeDirectoryWithQuota(long nsQuota, long dsQuota,
|
|
|
+ INodeDirectory other) {
|
|
|
super(other);
|
|
|
INode.DirCounts counts = new INode.DirCounts();
|
|
|
other.spaceConsumedInTree(counts);
|
|
|
- this.nsCount= counts.getNsCount();
|
|
|
+ this.nsCount = counts.getNsCount();
|
|
|
this.diskspace = counts.getDsCount();
|
|
|
setQuota(nsQuota, dsQuota);
|
|
|
}
|
|
|
|
|
|
/** constructor with no quota verification */
|
|
|
- INodeDirectoryWithQuota(
|
|
|
- PermissionStatus permissions, long modificationTime,
|
|
|
- long nsQuota, long dsQuota)
|
|
|
- {
|
|
|
+ INodeDirectoryWithQuota(PermissionStatus permissions, long modificationTime,
|
|
|
+ long nsQuota, long dsQuota) {
|
|
|
super(permissions, modificationTime);
|
|
|
this.nsQuota = nsQuota;
|
|
|
this.dsQuota = dsQuota;
|
|
@@ -59,9 +57,8 @@ class INodeDirectoryWithQuota extends INodeDirectory {
|
|
|
}
|
|
|
|
|
|
/** constructor with no quota verification */
|
|
|
- INodeDirectoryWithQuota(String name, PermissionStatus permissions,
|
|
|
- long nsQuota, long dsQuota)
|
|
|
- {
|
|
|
+ INodeDirectoryWithQuota(String name, PermissionStatus permissions,
|
|
|
+ long nsQuota, long dsQuota) {
|
|
|
super(name, permissions);
|
|
|
this.nsQuota = nsQuota;
|
|
|
this.dsQuota = dsQuota;
|