Creating a folder with limited size
To create a folder with fixed size, one of the solutions is to create a limited size filesystem and mount it.
Create a file that will be a container of the filesystem. Just take ANY file on your system that has a suitable size, or create one by
Format the file with the FS you want
Mount the FS


