Skip to contentSkip to conversation

Fixes building nfs on msys2/mingw

PATCH Superseded Yonggang Luo 2 participants 12 messages Oct 13, 2020 – Nov 5, 2020 Block layer

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

v2 cover Fixes building nfs on msys2/mingw

V1-V2
Apply suggestion from Peter Lieven

Yonggang Luo (2):
block: Fixes nfs compiling error on msys2/mingw
block: enable libnfs on msys2/mingw in cirrus.yml

 .cirrus.yml |  1 +
 block/nfs.c | 15 +++++++++++++++
 2 files changed, 16 insertions(+)
Signature · 1 line
2.28.0.windows.1
#1 lore raw

PATCH v2 1/2 block: Fixes nfs compiling error on msys2/mingw

These compiling errors are fixed:
../block/nfs.c:27:10: fatal error: poll.h: No such file or directory
27 | #include <poll.h>

      |          ^~~~~~~~

compilation terminated.

../block/nfs.c:63:5: error: unknown type name 'blkcnt_t'

   63 |     blkcnt_t st_blocks;
      |     ^~~~~~~~

../block/nfs.c: In function 'nfs_client_open':
../block/nfs.c:550:27: error: 'struct _stat64' has no member named 'st_blocks'
550 | client->st_blocks = st.st_blocks;
| ^
../block/nfs.c: In function 'nfs_get_allocated_file_size':
../block/nfs.c:751:41: error: 'struct _stat64' has no member named 'st_blocks'
751 | return (task.ret < 0 ? task.ret : st.st_blocks * 512);
| ^
../block/nfs.c: In function 'nfs_reopen_prepare':
../block/nfs.c:805:31: error: 'struct _stat64' has no member named 'st_blocks'
805 | client->st_blocks = st.st_blocks;
| ^
../block/nfs.c: In function 'nfs_get_allocated_file_size':
../block/nfs.c:752:1: error: control reaches end of non-void function [-Werror=return-type]
752 | }

      | ^

On msys2/mingw, there is no st_blocks in struct _stat64 yet, we disable the usage of it on msys2/mingw, and create a typedef long long blkcnt_t; for further implementation

---
 block/nfs.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
block/nfs.c +15 -0
index f86e660374..cf8795fb49 100644
@@ -24,7 +24,9 @@
 
 #include "qemu/osdep.h"
 
+#if !defined(_WIN32)
 #include <poll.h>
+#endif
 #include "qemu/config-file.h"
 #include "qemu/error-report.h"
 #include "qapi/error.h"
@@ -51,6 +53,10 @@
 #define QEMU_NFS_MAX_PAGECACHE_SIZE (8388608 / NFS_BLKSIZE)
 #define QEMU_NFS_MAX_DEBUG_LEVEL 2
 
+#if defined(_WIN32)
+typedef long long blkcnt_t;
+#endif
+
 typedef struct NFSClient {
     struct nfs_context *context;
     struct nfsfh *fh;
@@ -545,7 +551,9 @@ static int64_t nfs_client_open(NFSClient *client, BlockdevOptionsNfs *opts,
     }
 
     ret = DIV_ROUND_UP(st.st_size, BDRV_SECTOR_SIZE);
+#if !defined(_WIN32)
     client->st_blocks = st.st_blocks;
+#endif
     client->has_zero_init = S_ISREG(st.st_mode);
     *strp = '/';
     goto out;
@@ -706,6 +714,7 @@ static int nfs_has_zero_init(BlockDriverState *bs)
     return client->has_zero_init;
 }
 
+#if !defined(_WIN32)
 /* Called (via nfs_service) with QemuMutex held.  */
 static void
 nfs_get_allocated_file_size_cb(int ret, struct nfs_context *nfs, void *data,
@@ -748,6 +757,7 @@ static int64_t nfs_get_allocated_file_size(BlockDriverState *bs)
 
     return (task.ret < 0 ? task.ret : st.st_blocks * 512);
 }
+#endif
 
 static int coroutine_fn
 nfs_file_co_truncate(BlockDriverState *bs, int64_t offset, bool exact,
@@ -800,7 +810,9 @@ static int nfs_reopen_prepare(BDRVReopenState *state,
                        nfs_get_error(client->context));
             return ret;
         }
+#if !defined(_WIN32)
         client->st_blocks = st.st_blocks;
+#endif
     }
 
     return 0;
@@ -869,7 +881,10 @@ static BlockDriver bdrv_nfs = {
     .create_opts                    = &nfs_create_opts,
 
     .bdrv_has_zero_init             = nfs_has_zero_init,
+/* libnfs does not provide the allocated filesize of a file on win32. */
+#if !defined(_WIN32)
     .bdrv_get_allocated_file_size   = nfs_get_allocated_file_size,
+#endif
     .bdrv_co_truncate               = nfs_file_co_truncate,
 
     .bdrv_file_open                 = nfs_file_open,
Signature · 1 line
2.28.0.windows.1
#2 lore raw

Re: [PATCH v2 1/2] block: Fixes nfs compiling error on msys2/mingw

Quoted 38 lines · Yonggang Luo

These compiling errors are fixed:
../block/nfs.c:27:10: fatal error: poll.h: No such file or directory

    27 | #include <poll.h>
       |          ^~~~~~~~

compilation terminated.

../block/nfs.c:63:5: error: unknown type name 'blkcnt_t'

    63 |     blkcnt_t st_blocks;
       |     ^~~~~~~~

../block/nfs.c: In function 'nfs_client_open':
../block/nfs.c:550:27: error: 'struct _stat64' has no member named 'st_blocks'
550 | client->st_blocks = st.st_blocks;
| ^
../block/nfs.c: In function 'nfs_get_allocated_file_size':
../block/nfs.c:751:41: error: 'struct _stat64' has no member named 'st_blocks'
751 | return (task.ret < 0 ? task.ret : st.st_blocks * 512);
| ^
../block/nfs.c: In function 'nfs_reopen_prepare':
../block/nfs.c:805:31: error: 'struct _stat64' has no member named 'st_blocks'
805 | client->st_blocks = st.st_blocks;
| ^
../block/nfs.c: In function 'nfs_get_allocated_file_size':
../block/nfs.c:752:1: error: control reaches end of non-void function [-Werror=return-type]
752 | }

       | ^

On msys2/mingw, there is no st_blocks in struct _stat64 yet, we disable the usage of it on msys2/mingw, and create a typedef long long blkcnt_t; for further implementation

---
  block/nfs.c | 15 +++++++++++++++
  1 file changed, 15 insertions(+)
block/nfs.c +0 -0
index f86e660374..cf8795fb49 100644

[...]

block/nfs.c line 57

Quoted 6 lines
block/nfs.c +2 -0
@@ -51,6 +53,10 @@
  #define QEMU_NFS_MAX_PAGECACHE_SIZE (8388608 / NFS_BLKSIZE)
  #define QEMU_NFS_MAX_DEBUG_LEVEL 2
 
+#if defined(_WIN32)
+typedef long long blkcnt_t;

This makes me uneasy. Is there a guarantee that this type will never be defined in a mingw environment (which would then result in a new compile error)?

Can’t we just give NFSClient.st_blocks a different type, i.e. uint64_t?

Apart from that, looks good to me.

#3 lore raw

Re: [PATCH v2 1/2] block: Fixes nfs compiling error on msys2/mingw

Quoted 8 lines · Max Reitz
Quoted 6 lines · Yonggang Luo

These compiling errors are fixed:
../block/nfs.c:27:10: fatal error: poll.h: No such file or directory

    27 | #include <poll.h>
       |          ^~~~~~~~

compilation terminated.

Quoted 5 lines
Quoted 5 lines

../block/nfs.c:63:5: error: unknown type name 'blkcnt_t'

    63 |     blkcnt_t st_blocks;
       |     ^~~~~~~~

../block/nfs.c: In function 'nfs_client_open':
../block/nfs.c:550:27: error: 'struct _stat64' has no member named

'st_blocks'

Quoted 4 lines
Quoted 4 lines
   550 |     client->st_blocks = st.st_blocks;
       |                           ^

../block/nfs.c: In function 'nfs_get_allocated_file_size':
../block/nfs.c:751:41: error: 'struct _stat64' has no member named

'st_blocks'

Quoted 4 lines
Quoted 4 lines
   751 |     return (task.ret < 0 ? task.ret : st.st_blocks * 512);
       |                                         ^

../block/nfs.c: In function 'nfs_reopen_prepare':
../block/nfs.c:805:31: error: 'struct _stat64' has no member named

'st_blocks'

Quoted 4 lines
Quoted 4 lines
   805 |         client->st_blocks = st.st_blocks;
       |                               ^

../block/nfs.c: In function 'nfs_get_allocated_file_size':
../block/nfs.c:752:1: error: control reaches end of non-void function

[-Werror=return-type]

Quoted 4 lines
Quoted 4 lines
   752 | }
       | ^

On msys2/mingw, there is no st_blocks in struct _stat64 yet, we disable

the usage of it

Quoted 1 line
Quoted 1 line

on msys2/mingw, and create a typedef long long blkcnt_t; for further

implementation

Quoted 17 lines
Quoted 10 lines
---
  block/nfs.c | 15 +++++++++++++++
  1 file changed, 15 insertions(+)
block/nfs.c +0 -0
index f86e660374..cf8795fb49 100644

[...]

Quoted 4 lines
block/nfs.c +0 -0
@@ -51,6 +53,10 @@
  #define QEMU_NFS_MAX_PAGECACHE_SIZE (8388608 / NFS_BLKSIZE)
  #define QEMU_NFS_MAX_DEBUG_LEVEL 2
 
Quoted 6 lines

block/nfs.c line 57

Quoted 2 lines
block/nfs.c +2 -0
+#if defined(_WIN32)
+typedef long long blkcnt_t;

This makes me uneasy. Is there a guarantee that this type will never be defined in a mingw environment (which would then result in a new compile error)?

That's be sure, mingw is compat with msvcrt.dll, so blkcnt_t are always not defined.

Quoted 5 lines

Can’t we just give NFSClient.st_blocks a different type, i.e. uint64_t?

Apart from that, looks good to me.

--
此致
礼
罗勇刚
Yours
sincerely,
Yonggang Luo

#4 lore raw

Re: [PATCH v2 1/2] block: Fixes nfs compiling error on msys2/mingw

Quoted 57 lines · 罗勇刚(Yonggang Luo)
Quoted 8 lines · On Thu, Nov 5, 2020 at 7:29 PM Max Reitz <[email protected]…
Quoted 6 lines · Yonggang Luo

These compiling errors are fixed:
../block/nfs.c:27:10: fatal error: poll.h: No such file or directory 27 | #include <poll.h>
       |          ^~~~~~~~
compilation terminated.

Quoted 5 lines
Quoted 5 lines

../block/nfs.c:63:5: error: unknown type name 'blkcnt_t' 63 |     blkcnt_t st_blocks;
       |     ^~~~~~~~
../block/nfs.c: In function 'nfs_client_open':
../block/nfs.c:550:27: error: 'struct _stat64' has no member named

'st_blocks'

Quoted 4 lines
Quoted 4 lines

   550 |     client->st_blocks = st.st_blocks;
       |                           ^
../block/nfs.c: In function 'nfs_get_allocated_file_size':
../block/nfs.c:751:41: error: 'struct _stat64' has no member named

'st_blocks'

Quoted 4 lines
Quoted 4 lines

   751 |     return (task.ret < 0 ? task.ret : st.st_blocks * 512); |                                         ^ ../block/nfs.c: In function 'nfs_reopen_prepare':
../block/nfs.c:805:31: error: 'struct _stat64' has no member named

'st_blocks'

Quoted 4 lines
Quoted 4 lines

   805 |         client->st_blocks = st.st_blocks; |                               ^ ../block/nfs.c: In function 'nfs_get_allocated_file_size':
../block/nfs.c:752:1: error: control reaches end of non-void

function [-Werror=return-type]

Quoted 4 lines
Quoted 4 lines

   752 | }
       | ^

On msys2/mingw, there is no st_blocks in struct _stat64 yet, we

disable the usage of it

Quoted 1 line
Quoted 1 line

on msys2/mingw, and create a typedef long long blkcnt_t; for

further implementation

Quoted 2 lines
Quoted 2 lines

<mailto:[email protected]>>

Quoted 15 lines
Quoted 8 lines

---
  block/nfs.c | 15 +++++++++++++++

  1 file changed, 15 insertions(+)
block/nfs.c +0 -0
index f86e660374..cf8795fb49 100644

[...]

Quoted 4 lines
block/nfs.c +0 -0
@@ -51,6 +53,10 @@
   #define QEMU_NFS_MAX_PAGECACHE_SIZE (8388608 / NFS_BLKSIZE)
   #define QEMU_NFS_MAX_DEBUG_LEVEL 2
 
Quoted 7 lines
Quoted 6 lines

block/nfs.c line 57

Quoted 2 lines
block/nfs.c +2 -0
+#if defined(_WIN32)
+typedef long long blkcnt_t;

This makes me uneasy.  Is there a guarantee that this type will never be defined in a mingw environment (which would then result in a new compile error)?

That's be sure, mingw is compat with msvcrt.dll, so blkcnt_t  are always not defined.

And there is no possibility of that being added in the future?

Max

#5 lore raw

Re: [PATCH v2 1/2] block: Fixes nfs compiling error on msys2/mingw

Quoted 10 lines · Max Reitz
Quoted 8 lines · 罗勇刚(Yonggang Luo)
Quoted 4 lines · On Thu, Nov 5, 2020 at 7:29 PM Max Reitz <[email protected]…
Quoted 2 lines · Yonggang Luo

These compiling errors are fixed:
../block/nfs.c:27:10: fatal error: poll.h: No such file or

directory

Quoted 46 lines
Quoted 46 lines
Quoted 9 lines
Quoted 9 lines
    27 | #include <poll.h>
       |          ^~~~~~~~

compilation terminated.

../block/nfs.c:63:5: error: unknown type name 'blkcnt_t'

    63 |     blkcnt_t st_blocks;
       |     ^~~~~~~~

../block/nfs.c: In function 'nfs_client_open':
../block/nfs.c:550:27: error: 'struct _stat64' has no member named

'st_blocks'

Quoted 4 lines
Quoted 4 lines
   550 |     client->st_blocks = st.st_blocks;
       |                           ^

../block/nfs.c: In function 'nfs_get_allocated_file_size':
../block/nfs.c:751:41: error: 'struct _stat64' has no member named

'st_blocks'

Quoted 4 lines
Quoted 4 lines
   751 |     return (task.ret < 0 ? task.ret : st.st_blocks * 512);
       |                                         ^

../block/nfs.c: In function 'nfs_reopen_prepare':
../block/nfs.c:805:31: error: 'struct _stat64' has no member named

'st_blocks'

Quoted 4 lines
Quoted 4 lines
   805 |         client->st_blocks = st.st_blocks;
       |                               ^

../block/nfs.c: In function 'nfs_get_allocated_file_size':
../block/nfs.c:752:1: error: control reaches end of non-void

function [-Werror=return-type]

Quoted 4 lines
Quoted 4 lines
   752 | }
       | ^

On msys2/mingw, there is no st_blocks in struct _stat64 yet, we

disable the usage of it

Quoted 1 line
Quoted 1 line

on msys2/mingw, and create a typedef long long blkcnt_t; for

further implementation

Quoted 2 lines
Quoted 2 lines

<mailto:[email protected]>>

Quoted 11 lines
Quoted 8 lines
---
  block/nfs.c | 15 +++++++++++++++
  1 file changed, 15 insertions(+)
block/nfs.c +0 -0
index f86e660374..cf8795fb49 100644

[...]

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

block/nfs.c line 57

Quoted 6 lines
block/nfs.c +2 -0
@@ -51,6 +53,10 @@
  #define QEMU_NFS_MAX_PAGECACHE_SIZE (8388608 / NFS_BLKSIZE)
  #define QEMU_NFS_MAX_DEBUG_LEVEL 2
 
+#if defined(_WIN32)
+typedef long long blkcnt_t;

This makes me uneasy. Is there a guarantee that this type will

never be

Quoted 1 line
Quoted 1 line
Quoted 1 line

defined in a mingw environment (which would then result in a new

compile

Quoted 5 lines
Quoted 3 lines
Quoted 1 line

error)?

That's be sure, mingw is compat with msvcrt.dll, so blkcnt_t are always not defined.

And there is no possibility of that being added in the future?

If that's the case, what's the better option.

Quoted 3 lines

Max

--
此致
礼
罗勇刚
Yours
sincerely,
Yonggang Luo

#6 lore raw

Re: [PATCH v2 1/2] block: Fixes nfs compiling error on msys2/mingw

Quoted 73 lines · 罗勇刚(Yonggang Luo)
Quoted 5 lines · On Thu, Nov 5, 2020 at 7:44 PM Max Reitz <[email protected]…
Quoted 3 lines · 罗勇刚(Yonggang Luo)

On Thu, Nov 5, 2020 at 7:29 PM Max Reitz <[email protected]

<mailto:[email protected]>

Quoted 5 lines
Quoted 5 lines

<mailto:[email protected] <mailto:[email protected]>>> wrote:
 >
 > On 13.10.20 02:15, Yonggang Luo wrote:
 > > These compiling errors are fixed:
 > > ../block/nfs.c:27:10: fatal error: poll.h: No such file or

directory

Quoted 8 lines
Quoted 8 lines

 > >     27 | #include <poll.h>
 > >        |          ^~~~~~~~
 > > compilation terminated.
 > >
 > > ../block/nfs.c:63:5: error: unknown type name 'blkcnt_t' > >     63 |     blkcnt_t st_blocks;
 > >        |     ^~~~~~~~
 > > ../block/nfs.c: In function 'nfs_client_open':

Quoted 8 lines
Quoted 8 lines

 > > ../block/nfs.c:550:27: error: 'struct _stat64' has no member named 'st_blocks'
 > >    550 |     client->st_blocks = st.st_blocks;
 > >        |                           ^
 > > ../block/nfs.c: In function 'nfs_get_allocated_file_size':
 > > ../block/nfs.c:751:41: error: 'struct _stat64' has no member named 'st_blocks'
 > >    751 |     return (task.ret < 0 ? task.ret : st.st_blocks *

512);

Quoted 10 lines
Quoted 10 lines

 > >        |                                         ^
 > > ../block/nfs.c: In function 'nfs_reopen_prepare':
 > > ../block/nfs.c:805:31: error: 'struct _stat64' has no member named 'st_blocks'
 > >    805 |         client->st_blocks = st.st_blocks;
 > >        |                               ^
 > > ../block/nfs.c: In function 'nfs_get_allocated_file_size':
 > > ../block/nfs.c:752:1: error: control reaches end of non-void function [-Werror=return-type]
 > >    752 | }

Quoted 8 lines
Quoted 8 lines

 > >        | ^
 > >
 > > On msys2/mingw, there is no st_blocks in struct _stat64 yet, we disable the usage of it
 > > on msys2/mingw, and create a typedef long long blkcnt_t; for further implementation
 > >
 > > Signed-off-by: Yonggang Luo <[email protected]

<mailto:[email protected]>

Quoted 12 lines
Quoted 12 lines

<mailto:[email protected] <mailto:[email protected]>>> > > ---
 > >   block/nfs.c | 15 +++++++++++++++
 > >   1 file changed, 15 insertions(+)
 > >
 > > diff --git a/block/nfs.c b/block/nfs.c
 > > index f86e660374..cf8795fb49 100644
 > > --- a/block/nfs.c
 > > +++ b/block/nfs.c
 >
 > [...]
 >

Quoted 8 lines
Quoted 8 lines

 > > @@ -51,6 +53,10 @@
 > >   #define QEMU_NFS_MAX_PAGECACHE_SIZE (8388608 / NFS_BLKSIZE) > >   #define QEMU_NFS_MAX_DEBUG_LEVEL 2
 > >
 > > +#if defined(_WIN32)
 > > +typedef long long blkcnt_t;
 >
 > This makes me uneasy.  Is there a guarantee that this type will

never be

Quoted 1 line
Quoted 1 line

 > defined in a mingw environment (which would then result in a new

Quoted 8 lines

compile

Quoted 2 lines
Quoted 2 lines

 > error)?
That's be sure, mingw is compat with msvcrt.dll, so blkcnt_t  are

always

Quoted 3 lines
Quoted 1 line

not defined.

And there is no possibility of that being added in the future?

If that's the case, what's the better option.

As I said, just making NFSClient.st_blocks a uint64_t.

Max

#7 lore raw

Re: [PATCH v2 1/2] block: Fixes nfs compiling error on msys2/mingw

Updated with fixes.

Quoted 22 lines · Max Reitz
Quoted 20 lines · 罗勇刚(Yonggang Luo)
Quoted 5 lines · On Thu, Nov 5, 2020 at 7:44 PM Max Reitz <[email protected]…
Quoted 3 lines · 罗勇刚(Yonggang Luo)

On Thu, Nov 5, 2020 at 7:29 PM Max Reitz <[email protected]

<mailto:[email protected]>

Quoted 5 lines
Quoted 5 lines
Quoted 4 lines · <mailto:[email protected] <mailto:[email protected]>>> wrote:
Quoted 2 lines · Yonggang Luo

These compiling errors are fixed:
../block/nfs.c:27:10: fatal error: poll.h: No such file or

directory

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
    27 | #include <poll.h>
       |          ^~~~~~~~

compilation terminated.

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

../block/nfs.c:63:5: error: unknown type name 'blkcnt_t'

    63 |     blkcnt_t st_blocks;
       |     ^~~~~~~~

../block/nfs.c: In function 'nfs_client_open':
../block/nfs.c:550:27: error: 'struct _stat64' has no member

named

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

'st_blocks'

Quoted 4 lines
Quoted 4 lines
   550 |     client->st_blocks = st.st_blocks;
       |                           ^

../block/nfs.c: In function 'nfs_get_allocated_file_size':
../block/nfs.c:751:41: error: 'struct _stat64' has no member

named

Quoted 6 lines
Quoted 6 lines
Quoted 2 lines
Quoted 2 lines

'st_blocks'

Quoted 1 line
Quoted 1 line

751 | return (task.ret < 0 ? task.ret : st.st_blocks *

512);

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

| ^
../block/nfs.c: In function 'nfs_reopen_prepare':
../block/nfs.c:805:31: error: 'struct _stat64' has no member

named

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

'st_blocks'

Quoted 4 lines
Quoted 4 lines
   805 |         client->st_blocks = st.st_blocks;
       |                               ^

../block/nfs.c: In function 'nfs_get_allocated_file_size':
../block/nfs.c:752:1: error: control reaches end of non-void

function [-Werror=return-type]

Quoted 4 lines
Quoted 4 lines
   752 | }
       | ^

On msys2/mingw, there is no st_blocks in struct _stat64 yet,

we

Quoted 34 lines
Quoted 34 lines
Quoted 5 lines
Quoted 5 lines

disable the usage of it

Quoted 1 line
Quoted 1 line

on msys2/mingw, and create a typedef long long blkcnt_t; for

further implementation

Quoted 2 lines
Quoted 2 lines

<mailto:[email protected]>

Quoted 12 lines
Quoted 12 lines

<mailto:[email protected] <mailto:[email protected]>>>

Quoted 11 lines
Quoted 8 lines
---
  block/nfs.c | 15 +++++++++++++++
  1 file changed, 15 insertions(+)
block/nfs.c +0 -0
index f86e660374..cf8795fb49 100644

[...]

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

block/nfs.c line 57

Quoted 6 lines
block/nfs.c +2 -0
@@ -51,6 +53,10 @@
  #define QEMU_NFS_MAX_PAGECACHE_SIZE (8388608 / NFS_BLKSIZE)
  #define QEMU_NFS_MAX_DEBUG_LEVEL 2
 
+#if defined(_WIN32)
+typedef long long blkcnt_t;

This makes me uneasy. Is there a guarantee that this type will

never be

Quoted 1 line
Quoted 1 line
Quoted 1 line

defined in a mingw environment (which would then result in a new

compile

Quoted 2 lines
Quoted 2 lines
Quoted 1 line

error)?

That's be sure, mingw is compat with msvcrt.dll, so blkcnt_t are

always

Quoted 2 lines
Quoted 1 line

not defined.

Quoted 7 lines
Quoted 2 lines
Quoted 1 line

And there is no possibility of that being added in the future?

If that's the case, what's the better option.

As I said, just making NFSClient.st_blocks a uint64_t.

Max

--
此致
礼
罗勇刚
Yours
sincerely,
Yonggang Luo

#8 lore raw

PATCH v2 2/2 block: enable libnfs on msys2/mingw in cirrus.yml

In reply to Yonggang Luo

At the begging libnfs are not enabled because of compiling error, now it's fixed so enable it

---
 .cirrus.yml | 1 +
 1 file changed, 1 insertion(+)
.cirrus.yml +1 -0
index f42ccb956a..2c6bf45e6d 100644
@@ -109,6 +109,7 @@ windows_msys2_task:
           mingw-w64-x86_64-cyrus-sasl \
           mingw-w64-x86_64-curl \
           mingw-w64-x86_64-gnutls \
+          mingw-w64-x86_64-libnfs \
           "
         bitsadmin /transfer msys_download /dynamic /download /priority FOREGROUND `
           https://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-python-sphinx-2.3.1-1-any.pkg.tar.xz `
Signature · 1 line
2.28.0.windows.1
#9 lore raw

Re: [PATCH v2 2/2] block: enable libnfs on msys2/mingw in cirrus.yml

Quoted 13 lines · Yonggang Luo

At the begging libnfs are not enabled because of compiling error, now it's fixed so enable it

---
  .cirrus.yml | 1 +
  1 file changed, 1 insertion(+)
.cirrus.yml +0 -0
index f42ccb956a..2c6bf45e6d 100644

.cirrus.yml windows_msys2_task: · line 115

Quoted 7 lines
.cirrus.yml +1 -0
@@ -109,6 +109,7 @@ windows_msys2_task:
            mingw-w64-x86_64-cyrus-sasl \
            mingw-w64-x86_64-curl \
            mingw-w64-x86_64-gnutls \
+          mingw-w64-x86_64-libnfs \
            "
          bitsadmin /transfer msys_download /dynamic /download /priority FOREGROUND `
            https://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-python-sphinx-2.3.1-1-any.pkg.tar.xz `

I’d love to test this, unfortunately git.qemu.org has some issues now and so I can’t run Cirrus tests. :/

I suppose I’ll retry when git.qemu.org works again.

Max

#10 lore raw

Re: [PATCH v2 2/2] block: enable libnfs on msys2/mingw in cirrus.yml

Quoted 10 lines · Max Reitz
Quoted 8 lines · Yonggang Luo

At the begging libnfs are not enabled because of compiling error, now it's fixed so enable it

---
  .cirrus.yml | 1 +
  1 file changed, 1 insertion(+)
Quoted 11 lines

.cirrus.yml windows_msys2_task: · line 114

Quoted 11 lines
.cirrus.yml +1 -0
index f42ccb956a..2c6bf45e6d 100644
@@ -109,6 +109,7 @@ windows_msys2_task:
            mingw-w64-x86_64-cyrus-sasl \
            mingw-w64-x86_64-curl \
            mingw-w64-x86_64-gnutls \
+          mingw-w64-x86_64-libnfs \
            "
          bitsadmin /transfer msys_download /dynamic /download

/priority FOREGROUND `

Quoted 1 line
Quoted 1 line

https://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-python-sphinx-2.3.1-1-any.pkg.tar.xz
`

Quoted 8 lines

I’d love to test this, unfortunately git.qemu.org has some issues now and so I can’t run Cirrus tests. :/

I suppose I’ll retry when git.qemu.org works again.

Max

Maybe we arealdy switched to gitlab?

--
此致
礼
罗勇刚
Yours
sincerely,
Yonggang Luo

#11 lore raw

Re: [PATCH v2 2/2] block: enable libnfs on msys2/mingw in cirrus.yml

Quoted 30 lines · 罗勇刚(Yonggang Luo)
Quoted 6 lines · On Thu, Nov 5, 2020 at 7:43 PM Max Reitz <[email protected]…
Quoted 4 lines · Yonggang Luo

At the begging libnfs are not enabled because of compiling error, now it's fixed so enable it

<mailto:[email protected]>>

Quoted 4 lines
Quoted 4 lines

---
  .cirrus.yml | 1 +

  1 file changed, 1 insertion(+)
Quoted 11 lines
Quoted 11 lines
.cirrus.yml +1 -0
index f42ccb956a..2c6bf45e6d 100644
@@ -109,6 +109,7 @@ windows_msys2_task:
             mingw-w64-x86_64-cyrus-sasl \
             mingw-w64-x86_64-curl \
             mingw-w64-x86_64-gnutls \
+          mingw-w64-x86_64-libnfs \

            "
          bitsadmin /transfer msys_download /dynamic /download

/priority FOREGROUND `

Quoted 1 line
Quoted 1 line

https://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-python-sphinx-2.3.1-1-any.pkg.tar.xz <https://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-python-sphinx-2.3.1-1-any.pkg.tar.xz> `

Quoted 2 lines

I’d love to test this, unfortunately git.qemu.org

Quoted 8 lines

<http://git.qemu.org> has some issues now

Quoted 6 lines

and so I can’t run Cirrus tests. :/

I suppose I’ll retry when git.qemu.org <http://git.qemu.org> works again.

Max

Maybe we arealdy switched to gitlab?

I hope not, or it would be really sad that I didn’t notice...

Max