I want to create smb shares that are limited by a given quota size also I want to be able to modify the quota size in the future. While searching for a solution I came across the setquota command but I guess it only gives the option to implement per user and per group size quota limit but not on per folder/filesystem basis.
Then, I tried doing this using this https://superuser.com/a/976714 answer. The problem is file size modified using the "dd" command is correctly showing an increased size on the Ubuntu system, but the modified size is not reflected to the users (i.e. they still see the old size). The added space is shown as free space in parted tool.