quotas for xfs

This commit is contained in:
usmannasir
2024-09-18 15:35:07 +05:00
parent 83ee98e81e
commit 2df62efd84
2 changed files with 18 additions and 7 deletions

View File

@@ -3663,7 +3663,8 @@ pm.max_spare_servers = 3
if parts[1] == '/' and parts[3].find(options_to_add) == -1 and len(parts[3]) > 4:
parts[3] = f'{parts[3]},{options_to_add}'
finalString = '\t'.join(parts)
tempParts = [item for item in parts if item.strip()]
finalString = '\t'.join(tempParts)
print(finalString)
WriteToFile.write(finalString)
@@ -3672,7 +3673,8 @@ pm.max_spare_servers = 3
for ii, p in enumerate(parts):
if p.find('defaults') > -1 or p.find('discard') > -1:
parts[ii] = f'{parts[ii]},{options_to_add}'
finalString = '\t'.join(parts)
tempParts = [item for item in parts if item.strip()]
finalString = '\t'.join(tempParts)
print(finalString)
WriteToFile.write(finalString)
else: