Skip to content

Passing mount and mkfs options to filesystem/config #58

@StephaneGerardVUB

Description

@StephaneGerardVUB

We use the filesystem/config from the standard library.
We would like to create a filesystem using this code in a FILESYSTEM_LAYOUT_CONFIG_SITE template :

variable DISK_VOLUME_PARAMS = {
    t = dict();
    t['osd'] = dict(
        'size',         -1,
        'mountpoint',   '/var/lib/ceph/osd/vdb',
        'fstype',       CEPH_FS,
        'type',         'partition',
        'device',       'vdb1',
        'preserve',     true,
        'mkfsopts',     CEPH_DISK_OPTIONS[CEPH_FS]['mkfsopts'],
        'mountopts',    CEPH_DISK_OPTIONS[CEPH_FS]['mountopts'],
    );
    t;
};

The first problem is that the attributes 'mkfsopts' and 'mountopts' are not taken into account. I've tried to workaround this problem by adding the necessary code in filesystem/config, but then I fall on a second problem : the mount options are not taken into account in the generation of the /etc/fstab.

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