Message ID | 20191025100152.6638-2-stefanha@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | tests/vhost-user-fs-test: add vhost-user-fs test case | expand |
On Fri, Oct 25, 2019 at 12:01:50PM +0200, Stefan Hajnoczi wrote: > tests/vhost-user-fs-test.c needs fuse.h. The private copy that > virtiofsd has can be replaced with a properly imported file using > update-linux-headers.sh. > > TODO rerun update-linux-headers.sh with upstream kernel tree! > > Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> OK I would just add this with the virtiofsd patchset. > --- > contrib/virtiofsd/fuse_lowlevel.h | 2 +- > .../fuse_kernel.h => include/standard-headers/linux/fuse.h | 0 > contrib/virtiofsd/fuse_loop_mt.c | 2 +- > contrib/virtiofsd/fuse_lowlevel.c | 2 +- > contrib/virtiofsd/fuse_virtio.c | 2 +- > scripts/update-linux-headers.sh | 3 ++- > 6 files changed, 6 insertions(+), 5 deletions(-) > rename contrib/virtiofsd/fuse_kernel.h => include/standard-headers/linux/fuse.h (100%) > > diff --git a/contrib/virtiofsd/fuse_lowlevel.h b/contrib/virtiofsd/fuse_lowlevel.h > index 79fb30a1c2..a8c92ff7e0 100644 > --- a/contrib/virtiofsd/fuse_lowlevel.h > +++ b/contrib/virtiofsd/fuse_lowlevel.h > @@ -23,7 +23,7 @@ > #endif > > #include "fuse_common.h" > -#include "fuse_kernel.h" > +#include "standard-headers/linux/fuse.h" > > #include <utime.h> > #include <fcntl.h> > diff --git a/contrib/virtiofsd/fuse_kernel.h b/include/standard-headers/linux/fuse.h > similarity index 100% > rename from contrib/virtiofsd/fuse_kernel.h > rename to include/standard-headers/linux/fuse.h > diff --git a/contrib/virtiofsd/fuse_loop_mt.c b/contrib/virtiofsd/fuse_loop_mt.c > index 2000a8902a..af7b501fac 100644 > --- a/contrib/virtiofsd/fuse_loop_mt.c > +++ b/contrib/virtiofsd/fuse_loop_mt.c > @@ -11,7 +11,7 @@ > #include "fuse_i.h" > #include "fuse_lowlevel.h" > #include "fuse_misc.h" > -#include "fuse_kernel.h" > +#include "standard-headers/linux/fuse.h" > #include "fuse_virtio.h" > > #include <stdio.h> > diff --git a/contrib/virtiofsd/fuse_lowlevel.c b/contrib/virtiofsd/fuse_lowlevel.c > index 78ccfe3a27..c1a901cb4d 100644 > --- a/contrib/virtiofsd/fuse_lowlevel.c > +++ b/contrib/virtiofsd/fuse_lowlevel.c > @@ -10,7 +10,7 @@ > */ > > #include "fuse_i.h" > -#include "fuse_kernel.h" > +#include "standard-headers/linux/fuse.h" > #include "fuse_opt.h" > #include "fuse_misc.h" > #include "fuse_virtio.h" > diff --git a/contrib/virtiofsd/fuse_virtio.c b/contrib/virtiofsd/fuse_virtio.c > index 533ef24bb7..7a0d0b2603 100644 > --- a/contrib/virtiofsd/fuse_virtio.c > +++ b/contrib/virtiofsd/fuse_virtio.c > @@ -15,7 +15,7 @@ > #include "qapi/error.h" > > #include "fuse_i.h" > -#include "fuse_kernel.h" > +#include "standard-headers/linux/fuse.h" > #include "fuse_misc.h" > #include "fuse_opt.h" > #include "fuse_virtio.h" > diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux-headers.sh > index f76d77363b..1a627ccd73 100755 > --- a/scripts/update-linux-headers.sh > +++ b/scripts/update-linux-headers.sh > @@ -184,7 +184,8 @@ EOF > > rm -rf "$output/include/standard-headers/linux" > mkdir -p "$output/include/standard-headers/linux" > -for i in "$tmpdir"/include/linux/*virtio*.h \ > +for i in "$tmpdir/include/linux/fuse.h" \ > + "$tmpdir"/include/linux/*virtio*.h \ > "$tmpdir/include/linux/qemu_fw_cfg.h" \ > "$tmpdir/include/linux/input.h" \ > "$tmpdir/include/linux/input-event-codes.h" \ > -- > 2.21.0
On Sat, Oct 26, 2019 at 05:49:11PM -0400, Michael S. Tsirkin wrote: > On Fri, Oct 25, 2019 at 12:01:50PM +0200, Stefan Hajnoczi wrote: > > tests/vhost-user-fs-test.c needs fuse.h. The private copy that > > virtiofsd has can be replaced with a properly imported file using > > update-linux-headers.sh. > > > > TODO rerun update-linux-headers.sh with upstream kernel tree! > > > > Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> > > OK I would just add this with the virtiofsd patchset. Yes, I'll talk to David. Stefan
Stefan Hajnoczi <stefanha@redhat.com> writes: > On Sat, Oct 26, 2019 at 05:49:11PM -0400, Michael S. Tsirkin wrote: >> On Fri, Oct 25, 2019 at 12:01:50PM +0200, Stefan Hajnoczi wrote: >> > tests/vhost-user-fs-test.c needs fuse.h. The private copy that >> > virtiofsd has can be replaced with a properly imported file using >> > update-linux-headers.sh. >> > >> > TODO rerun update-linux-headers.sh with upstream kernel tree! >> > >> > Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> >> >> OK I would just add this with the virtiofsd patchset. > > Yes, I'll talk to David. Catching up after the fact I see this didn't get merged. Was there a reason?
On Mon, Jun 01, 2020 at 11:28:44AM +0100, Alex Bennée wrote: > > Stefan Hajnoczi <stefanha@redhat.com> writes: > > > On Sat, Oct 26, 2019 at 05:49:11PM -0400, Michael S. Tsirkin wrote: > >> On Fri, Oct 25, 2019 at 12:01:50PM +0200, Stefan Hajnoczi wrote: > >> > tests/vhost-user-fs-test.c needs fuse.h. The private copy that > >> > virtiofsd has can be replaced with a properly imported file using > >> > update-linux-headers.sh. > >> > > >> > TODO rerun update-linux-headers.sh with upstream kernel tree! > >> > > >> > Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> > >> > >> OK I would just add this with the virtiofsd patchset. > > > > Yes, I'll talk to David. > > Catching up after the fact I see this didn't get merged. Was there a > reason? This patch series is stalled because I have been busy with other tasks. The standard-headers fuse.h header will be needed when something outside virtiofsd uses FUSE definitions for virtio-fs. At the moment nothing does so there is no need to merge this patch yet. Stefan
diff --git a/contrib/virtiofsd/fuse_lowlevel.h b/contrib/virtiofsd/fuse_lowlevel.h index 79fb30a1c2..a8c92ff7e0 100644 --- a/contrib/virtiofsd/fuse_lowlevel.h +++ b/contrib/virtiofsd/fuse_lowlevel.h @@ -23,7 +23,7 @@ #endif #include "fuse_common.h" -#include "fuse_kernel.h" +#include "standard-headers/linux/fuse.h" #include <utime.h> #include <fcntl.h> diff --git a/contrib/virtiofsd/fuse_kernel.h b/include/standard-headers/linux/fuse.h similarity index 100% rename from contrib/virtiofsd/fuse_kernel.h rename to include/standard-headers/linux/fuse.h diff --git a/contrib/virtiofsd/fuse_loop_mt.c b/contrib/virtiofsd/fuse_loop_mt.c index 2000a8902a..af7b501fac 100644 --- a/contrib/virtiofsd/fuse_loop_mt.c +++ b/contrib/virtiofsd/fuse_loop_mt.c @@ -11,7 +11,7 @@ #include "fuse_i.h" #include "fuse_lowlevel.h" #include "fuse_misc.h" -#include "fuse_kernel.h" +#include "standard-headers/linux/fuse.h" #include "fuse_virtio.h" #include <stdio.h> diff --git a/contrib/virtiofsd/fuse_lowlevel.c b/contrib/virtiofsd/fuse_lowlevel.c index 78ccfe3a27..c1a901cb4d 100644 --- a/contrib/virtiofsd/fuse_lowlevel.c +++ b/contrib/virtiofsd/fuse_lowlevel.c @@ -10,7 +10,7 @@ */ #include "fuse_i.h" -#include "fuse_kernel.h" +#include "standard-headers/linux/fuse.h" #include "fuse_opt.h" #include "fuse_misc.h" #include "fuse_virtio.h" diff --git a/contrib/virtiofsd/fuse_virtio.c b/contrib/virtiofsd/fuse_virtio.c index 533ef24bb7..7a0d0b2603 100644 --- a/contrib/virtiofsd/fuse_virtio.c +++ b/contrib/virtiofsd/fuse_virtio.c @@ -15,7 +15,7 @@ #include "qapi/error.h" #include "fuse_i.h" -#include "fuse_kernel.h" +#include "standard-headers/linux/fuse.h" #include "fuse_misc.h" #include "fuse_opt.h" #include "fuse_virtio.h" diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux-headers.sh index f76d77363b..1a627ccd73 100755 --- a/scripts/update-linux-headers.sh +++ b/scripts/update-linux-headers.sh @@ -184,7 +184,8 @@ EOF rm -rf "$output/include/standard-headers/linux" mkdir -p "$output/include/standard-headers/linux" -for i in "$tmpdir"/include/linux/*virtio*.h \ +for i in "$tmpdir/include/linux/fuse.h" \ + "$tmpdir"/include/linux/*virtio*.h \ "$tmpdir/include/linux/qemu_fw_cfg.h" \ "$tmpdir/include/linux/input.h" \ "$tmpdir/include/linux/input-event-codes.h" \
tests/vhost-user-fs-test.c needs fuse.h. The private copy that virtiofsd has can be replaced with a properly imported file using update-linux-headers.sh. TODO rerun update-linux-headers.sh with upstream kernel tree! Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> --- contrib/virtiofsd/fuse_lowlevel.h | 2 +- .../fuse_kernel.h => include/standard-headers/linux/fuse.h | 0 contrib/virtiofsd/fuse_loop_mt.c | 2 +- contrib/virtiofsd/fuse_lowlevel.c | 2 +- contrib/virtiofsd/fuse_virtio.c | 2 +- scripts/update-linux-headers.sh | 3 ++- 6 files changed, 6 insertions(+), 5 deletions(-) rename contrib/virtiofsd/fuse_kernel.h => include/standard-headers/linux/fuse.h (100%)