Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755827AbbKDNXK (ORCPT ); Wed, 4 Nov 2015 08:23:10 -0500 Received: from mail-ig0-f177.google.com ([209.85.213.177]:35964 "EHLO mail-ig0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751904AbbKDNXH (ORCPT ); Wed, 4 Nov 2015 08:23:07 -0500 Subject: Re: [RFC PATCH 00/28] Linux Kernel Library To: Octavian Purdila , "Richard W.M. Jones" References: <1446582059-17355-1-git-send-email-octavian.purdila@intel.com> <20151103224545.GI29330@redhat.com> Cc: Richard Weinberger , Linux-Arch , LKML , thehajime@gmail.com From: Austin S Hemmelgarn Message-ID: <563A06B3.3050106@gmail.com> Date: Wed, 4 Nov 2015 08:22:59 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-512; boundary="------------ms070206040103040303070908" X-Antivirus: avast! (VPS 151103-4, 2015-11-03), Outbound message X-Antivirus-Status: Clean Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 6680 Lines: 117 This is a cryptographically signed message in MIME format. --------------ms070206040103040303070908 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable On 2015-11-03 18:24, Octavian Purdila wrote: > On Wed, Nov 4, 2015 at 12:45 AM, Richard W.M. Jones = wrote: >> I'm dubious that a lib-based approach could support LVM, partioning, >> ntfs-3g, qcow2, vmdk and all the other libguestfs stuff that relies on= >> userspace tools + qemu as well as just the kernel drivers. >> Nevertheless a fast subset of libguestfs supporting just kernel >> filesystem drivers could be useful. > > LKL uses the full Linux I/O stack and I think LVM and partitioning > should work out of the box. Adding support for qcow2 and vmdk should > be possible as well. ntfs-3g might be problematic. Partitioning will work fine based on what you say. MD using the old=20 metadata and automatic assembly should also work fine (assuming there is = some way to tell the library to simulate running initcalls). DM (and by = extension LVM, which is a bunch of userspace stuff on top of regular DM) = and new style MD both require userspace tools to configure and interact=20 with, this could be handled in two different ways: 1. Update the LVM and MD tools so they can be built as libraries and work directly with LKL. 2. Provide some wrapper functions to emulate dmsetup, lvm, and mdadm as distinct library calls. Of these, the first option is likely to be the best for long-term=20 support, but the second is probably going to be easier to code quickly. QCOW2 and VMDK are both VM disk formats, and while I would love to see a = driver treat them (and VDI, and VHD) like regular disk images on Linux=20 in general, that will take some effort to implement properly. NTFS-3G is a FUSE based filesystem driver, so that kind of functionality = would probably need to be implemented in the application itself=20 (although having some way to have the app just link to it instead would=20 be absolutely wonderful). --------------ms070206040103040303070908 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgMFADCABgkqhkiG9w0BBwEAAKCC Brgwgga0MIIEnKADAgECAgMRLfgwDQYJKoZIhvcNAQENBQAweTEQMA4GA1UEChMHUm9vdCBD QTEeMBwGA1UECxMVaHR0cDovL3d3dy5jYWNlcnQub3JnMSIwIAYDVQQDExlDQSBDZXJ0IFNp Z25pbmcgQXV0aG9yaXR5MSEwHwYJKoZIhvcNAQkBFhJzdXBwb3J0QGNhY2VydC5vcmcwHhcN MTUwOTIxMTEzNTEzWhcNMTYwMzE5MTEzNTEzWjBjMRgwFgYDVQQDEw9DQWNlcnQgV29UIFVz ZXIxIzAhBgkqhkiG9w0BCQEWFGFoZmVycm9pbjdAZ21haWwuY29tMSIwIAYJKoZIhvcNAQkB FhNhaGVtbWVsZ0BvaGlvZ3QuY29tMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA nQ/81tq0QBQi5w316VsVNfjg6kVVIMx760TuwA1MUaNQgQ3NyUl+UyFtjhpkNwwChjgAqfGd LIMTHAdOb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UYns5GT0pPAwpUDm6J3ipVnocGVorr93o+rcO33Y 3C7Smfv0P43YipvI16GY2D9RRvKMxPWieiu0cslyLf13blv3/fy6jXRqK58dq/r9vUnjLIFg dNOmcayP9qtKdGVCoINPrExE+JkzKw7JEqgefm/pWczBcCQI2sQvBvEygW8qDHvGzkYY80ti AP78RK1Bo7s6cxZBjzu3EoFH+LMjIXOSJKeebfrND+/pqv1IMTDr0iyybQAAAAAAAA== --------------ms070206040103040303070908-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/