Package: mhddfs

Version: 0.1.35

Severity: minor

Tags: patch

 

When filling a filesystem mhddfs will normally fill one of the component
filesystems to a fixed amount less than the total capacity of the
filesystem before it moves onto the next. If the filesystems have
different capacities the percentage of free space remaining cannot be
forced into the range suggested at the maximum by the filesystem
writers. Eg. If you arrange for the free space on one drive to be 25% of
the capacity a drive of half the capacity will end up at 50% and a drive
of double will end up at 12%.  The default value mean that a modern hard
disk will be filled up to 100% before moving onto the next drive.

 

The attached patch uses a free percentage calculation so that the drives
will be filled one by one as now, but to a free percentage before moving
onto the next drive. Once all the drives have been filled to this
percentage the drive space will be allocated to the drive with the
minimum allocated (integer) percentage. The use of an integer means that
related files are likely to be clustered on the same drive as subsequent
files will be placed on the same drive until the percentage value ticks
over to the next integer value.

 

This has several advantages; the simplest being that a default setup of
(say) 25% is good for all drives. Others are all the reasons for keeping
a filesystem under 85% usage in the first place.

I have chosen 25% free as the default because it gives a good headroom
to go buy an extra drive before you hit the 85% I mentioned before.

 

 

Robert de Bath

rdeb...@tvisiontech.co.uk

 

Attachment: percent_patch.diff.gz
Description: percent_patch.diff.gz

Reply via email to