Ensure destination directory exists when adding storage to a jail
When a destination is selected in jails, if the mentioned folders don't exist, they should be created on adding a mount.
We risk breaking the jails mount point functionality.
For destination field, a path should be specified in the jail where the folder doesn't exist e.g, for "mnt/iocage/jails/jail1/root/foo", "foo" doesn't exist when adding a mount point. However once the mount point has been added, the foo folder should now exist with a successful mount. Starting the jails should work and if there was any data in the mounted source directory, it should also be reflected under foo.
#7 Updated by Timothy Moore II about 2 years ago
- Status changed from Ready for Testing to Passed Testing
- Needs QA changed from Yes to No
Testing with FreeNAS Mini updated to FreeNAS-11.2-MASTER-201809210904:
Go to Jails and add a new simple jail. Open Mount Points for that jail and add a new mount point where the Destination is a new directory inside the jail directory structure. Save, Start the jail, open the jail Shell, and the new directory was created and is visible in the jail.