diff --git a/src/middlewared/middlewared/plugins/filesystem_/acl.py b/src/middlewared/middlewared/plugins/filesystem_/acl.py index 4d4955932dcd4..86b9823dfca51 100644 --- a/src/middlewared/middlewared/plugins/filesystem_/acl.py +++ b/src/middlewared/middlewared/plugins/filesystem_/acl.py @@ -84,6 +84,13 @@ def _common_perm_path_validate(self, schema, data, verrors, pool_mp_ok=False): f'{schema}.path', 'Path component for is currently encrypted and locked' ) + else: + statfs_flags = self.middleware.call_sync('filesystem.statfs', path)['flags'] + if 'RO' in statfs_flags: + verrors.add( + f'{schema}.path', + f'{path}: dataset underlying path has the readonly property enabled.' + ) return loc