Skip to content

Commit e0d2469

Browse files
committed
Merge remote-tracking branch 'remotes/hreitz/tags/pull-block-2021-08-09' into staging
Block patches for 6.1-rc3: - Build fix for FUSE block exports - iotest 233 fix # gpg: Signature made Mon 09 Aug 2021 17:59:29 BST # gpg: using RSA key 91BEB60A30DB3E8857D11829F407DB0061D5CF40 # gpg: issuer "[email protected]" # gpg: Good signature from "Max Reitz <[email protected]>" [full] # Primary key fingerprint: 91BE B60A 30DB 3E88 57D1 1829 F407 DB00 61D5 CF40 * remotes/hreitz/tags/pull-block-2021-08-09: tests: filter out TLS distinguished name in certificate checks block/export/fuse.c: fix musl build Signed-off-by: Peter Maydell <[email protected]>
2 parents 370ea52 + a6d2bb2 commit e0d2469

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

block/export/fuse.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,9 @@ static void fuse_fallocate(fuse_req_t req, fuse_ino_t inode, int mode,
635635
offset += size;
636636
length -= size;
637637
} while (ret == 0 && length > 0);
638-
} else if (mode & FALLOC_FL_ZERO_RANGE) {
638+
}
639+
#ifdef CONFIG_FALLOCATE_ZERO_RANGE
640+
else if (mode & FALLOC_FL_ZERO_RANGE) {
639641
if (!(mode & FALLOC_FL_KEEP_SIZE) && offset + length > blk_len) {
640642
/* No need for zeroes, we are going to write them ourselves */
641643
ret = fuse_do_truncate(exp, offset + length, false,
@@ -654,7 +656,9 @@ static void fuse_fallocate(fuse_req_t req, fuse_ino_t inode, int mode,
654656
offset += size;
655657
length -= size;
656658
} while (ret == 0 && length > 0);
657-
} else if (!mode) {
659+
}
660+
#endif /* CONFIG_FALLOCATE_ZERO_RANGE */
661+
else if (!mode) {
658662
/* We can only fallocate at the EOF with a truncate */
659663
if (offset < blk_len) {
660664
fuse_reply_err(req, EOPNOTSUPP);

tests/qemu-iotests/233

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ $QEMU_IMG info --image-opts \
148148

149149
echo
150150
echo "== final server log =="
151-
cat "$TEST_DIR/server.log"
151+
cat "$TEST_DIR/server.log" | _filter_authz_check_tls
152152
rm -f "$TEST_DIR/server.log"
153153

154154
# success, all done

tests/qemu-iotests/233.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@ qemu-img: Could not open 'driver=nbd,host=127.0.0.1,port=PORT,tls-creds=tls0': F
6565
== final server log ==
6666
qemu-nbd: option negotiation failed: Verify failed: No certificate was found.
6767
qemu-nbd: option negotiation failed: Verify failed: No certificate was found.
68-
qemu-nbd: option negotiation failed: TLS x509 authz check for CN=localhost,O=Cthulhu Dark Lord Enterprises client1,L=R'lyeh,C=South Pacific is denied
69-
qemu-nbd: option negotiation failed: TLS x509 authz check for CN=localhost,O=Cthulhu Dark Lord Enterprises client3,L=R'lyeh,C=South Pacific is denied
68+
qemu-nbd: option negotiation failed: TLS x509 authz check for DISTINGUISHED-NAME is denied
69+
qemu-nbd: option negotiation failed: TLS x509 authz check for DISTINGUISHED-NAME is denied
7070
*** done

tests/qemu-iotests/common.filter

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,5 +332,10 @@ for fname in fnames:
332332
sys.stdout.write(result)'
333333
}
334334

335+
_filter_authz_check_tls()
336+
{
337+
$SED -e 's/TLS x509 authz check for .* is denied/TLS x509 authz check for DISTINGUISHED-NAME is denied/'
338+
}
339+
335340
# make sure this script returns success
336341
true

0 commit comments

Comments
 (0)