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

Set format options for mkfs #44

Conversation

TimothyAsirJeyasing
Copy link

Currently format options can be specified only for doFormat
function. This patch provides options to set the format options.

Usage ex:-
format = blivet.formats.getFormat("xfs", device=lv.path)
format.formatOptions = ["-f", "-K", "-i", "size=256", "-d", ...]
blivetEnv.formatDevice(lv, format)
blivetEnv.doIt()

bug-url: https://bugzilla.redhat.com/show_bug.cgi?id=1180221
Signed-off-by: Timothy Asir Jeyasingh tjeyasin@redhat.com

Currently format options can be specified only for doFormat
function. This patch provides options to set the format options.

Usage ex:-
format = blivet.formats.getFormat("xfs", device=lv.path)
format.formatOptions = ["-f", "-K", "-i", "size=256", "-d", ...]
blivetEnv.formatDevice(lv, format)
blivetEnv.doIt()

bug-url: https://bugzilla.redhat.com/show_bug.cgi?id=1180221
Signed-off-by: Timothy Asir Jeyasingh <tjeyasin@redhat.com>
@mulkieran
Copy link
Contributor

Please also consider an equivalent patch for clone at: https://github.com/mulkieran/blivet/tree/master-tasks, as that refactors a good deal of the mkfs functionality into a separate task, and may be applied soon. Look at blivet/tasks/fsmkfs.py and maybe blivet/tasks/fsmount.py for an example.

@dwlehman
Copy link
Contributor

I would like to see this applied to all of the classes in blivet.formats so we can have a shared mechanism for specifying options to be passed to both create and setup. It could be useful for swap and luks in addition to the filesystems.

@TimothyAsirJeyasing
Copy link
Author

Yes sure, I will check it out and update the patch

@clumens
Copy link
Contributor

clumens commented May 12, 2015

I'm currently working on this as part of adding support for letting you specify arbitrary mkfs options in kickstarts, so don't worry about it if you've not gotten started.

@mulkieran
Copy link
Contributor

This PR is defunct. @TimothyAsirJeyasing I've cc'd you on the relevant bzs.

@mulkieran mulkieran closed this Jun 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants