Re: [systemd-devel] [PATCH v2] fstab-generator: add x-systemd.requires and x-systemd.requires-mounts-for

2015-05-14 Thread systemd github import bot
Patchset imported to github. Pull request: https://github.com/systemd-devs/systemd/compare/master...systemd-mailing-devs:1431602860-31075-1-git-send-email-kzak%40redhat.com -- Generated by https://github.com/haraldh/mail2git ___ systemd-devel mailing

Re: [systemd-devel] [PATCH v2] fstab-generator: add x-systemd.requires and x-systemd.requires-mounts-for

2015-05-14 Thread Lennart Poettering
On Thu, 14.05.15 13:27, Karel Zak (k...@redhat.com) wrote: +r = fstab_filter_options(opts, x-systemd.requires\0, NULL, arg, NULL); +if (r 0) +return log_warning_errno(r, Failed to parse options: %m); +if (r == 0) +return 0; + +

[systemd-devel] [PATCH v2] fstab-generator: add x-systemd.requires and x-systemd.requires-mounts-for

2015-05-14 Thread Karel Zak
Currently we have no way how to specify dependencies between fstab entries (or another units) in the /etc/fstab. It means that users are forced to bypass fstab and write .mount units manually. The patch introduces new systemd fstab options: x-systemd.requires=PATH - to specify dependence an

Re: [systemd-devel] [PATCH v2] fstab-generator: add x-systemd.requires and x-systemd.requires-mounts-for

2015-05-14 Thread Karel Zak
On Thu, May 14, 2015 at 01:27:40PM +0200, Karel Zak wrote: +static int write_requires_mounts_for(FILE *f, const char *opts) { +_cleanup_free_ char **optsv = NULL, **paths = NULL, *res = NULL; _cleanup_strv_free_ **optsv = NULL, **paths = NULL; Do I need to resend the patch? ;-)