New Dataset, What is Share Type "Apps"

Dot19408

Cadet
Joined
Apr 17, 2015
Messages
3
Just installed Scale on new hardware and setting up my first dataset.

Under Share Type, I see the type of "Apps".
I don't recall seeing this type before, and searching for share types only finds info about SMB, and a couple on Generic. Not a single item on Share Type "Apps".

ShareTypeApps.png


Is this specifically for the storage of App containers, or is there more to it?
 

tux-box1

Dabbler
Joined
Jul 9, 2020
Messages
18
I just noticed it as well and was wanting to know the same.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
I just noticed it as well and was wanting to know the same.
It pre-configures permissions so that the apps user (568) has write access to it.
Code:
        elif data['share_type'] == 'APPS':
            data['casesensitivity'] = 'SENSITIVE'
            data['atime'] = 'OFF'
            data['acltype'] = 'NFSV4'
            data['aclmode'] = 'PASSTHROUGH'
            acl_to_set = (await self.middleware.call('filesystem.acltemplate.by_path', {
                'query-filters': [('name', '=', 'NFS4_RESTRICTED')],
                'format-options': {'canonicalize': True, 'ensure_builtins': True},
            }))[0]['acl']
            acl_to_set.append({
                'tag': 'USER',
                'id': 568,
                'perms': {'BASIC': 'MODIFY'},
                'flags': {'BASIC': 'INHERIT'},
                'type': 'ALLOW'
            })


This also forces validation of parent paths to raise a ValidationError if for some reason the permissions on a path component are cutting feet out from under 568.
 
Last edited:
Top