Skip to content

volcreate should handle no acls more gracefully #10

@macrotex

Description

@macrotex

When you run volcreate one of the steps is to set ACLs via the volume_setacls() function. That function has this line:

system($FS, 'setacl', '-path', $mtpt, '-acl', @acls) == 0

However, if @acls is empty that call fails (and the whole script dies) with the error message

fs: The field '-acl' isn't completed properly
Failed to set acls (status 8)

So, I suggest skipping the fs setacl system call if @acls is empty. (Note: there are times when I need to create a volume and there are no ACLs to set at creation time.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions