generic/204: use available blocks to determine the number of files to create