On Thu, Jul 12, 2018 at 2:00 PM David Howells <dhowells@xxxxxxxxxx> wrote: > > > for example: > > fd = fsopen("ext4", FSOPEN_CLOEXEC); > fsconfig(fd, fsconfig_blockdev, "dev.data", "/dev/sda1", ...); > fsconfig(fd, fsconfig_blockdev, "dev.journal", "/dev/sda2", ...); Ok, that looks good to me. It also avoids the parsing issue with using an interface like "write()", where the expectation is that you can append things etc. Linus -- To unsubscribe from this list: send the line "unsubscribe linux-api" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html