Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rbd: add mkfsOptions to the StorageClass and pass them to mkfs #3692

Merged
merged 5 commits into from
Mar 8, 2023

Commits on Mar 8, 2023

  1. rbd: cleanup passing mkfs arguments for NodeStageVolume

    Storing the default `mkfs` arguments in a map with key per filesystem
    type makes this a little more modular. It prepares th code for fetching
    the `mkfs` arguments from the VolumeContext.
    
    Signed-off-by: Niels de Vos <ndevos@ibm.com>
    nixpanic committed Mar 8, 2023
    Configuration menu
    Copy the full SHA
    7d07b4a View commit details
    Browse the repository at this point in the history
  2. rbd: allow setting mkfsOptions in the StorageClass

    Add `mkfsOptions` to the StorageClass and pass them to the `mkfs`
    command while creating the filesystem on the RBD device.
    
    Fixes: ceph#374
    Signed-off-by: Niels de Vos <ndevos@ibm.com>
    nixpanic committed Mar 8, 2023
    Configuration menu
    Copy the full SHA
    8d2f13d View commit details
    Browse the repository at this point in the history
  3. e2e: replace CephFS in messages for RBD tests

    Signed-off-by: Niels de Vos <ndevos@ibm.com>
    nixpanic committed Mar 8, 2023
    Configuration menu
    Copy the full SHA
    f30f086 View commit details
    Browse the repository at this point in the history
  4. e2e: add test for mkfsOptions in RBD StorageClass

    Create a 1G volume, with ext4 and only 1024 inodes. Use `df` to check if
    the number of inodes is correct.
    
    Signed-off-by: Niels de Vos <ndevos@ibm.com>
    nixpanic committed Mar 8, 2023
    Configuration menu
    Copy the full SHA
    6fc3dfc View commit details
    Browse the repository at this point in the history
  5. rbd: do not run mkfs on a BlockMode volume

    Signed-off-by: Niels de Vos <ndevos@ibm.com>
    nixpanic committed Mar 8, 2023
    Configuration menu
    Copy the full SHA
    4f19b9f View commit details
    Browse the repository at this point in the history