summary refs log tree commit diff stats
path: root/results/classifier/gemma3:12b/files/1865048
diff options
context:
space:
mode:
authorChristian Krinitsin <mail@krinitsin.com>2025-07-03 07:27:52 +0000
committerChristian Krinitsin <mail@krinitsin.com>2025-07-03 07:27:52 +0000
commitd0c85e36e4de67af628d54e9ab577cc3fad7796a (patch)
treef8f784b0f04343b90516a338d6df81df3a85dfa2 /results/classifier/gemma3:12b/files/1865048
parent7f4364274750eb8cb39a3e7493132fca1c01232e (diff)
downloadqemu-analysis-d0c85e36e4de67af628d54e9ab577cc3fad7796a.tar.gz
qemu-analysis-d0c85e36e4de67af628d54e9ab577cc3fad7796a.zip
add deepseek and gemma results
Diffstat (limited to 'results/classifier/gemma3:12b/files/1865048')
-rw-r--r--results/classifier/gemma3:12b/files/186504843
1 files changed, 43 insertions, 0 deletions
diff --git a/results/classifier/gemma3:12b/files/1865048 b/results/classifier/gemma3:12b/files/1865048
new file mode 100644
index 000000000..02d60140a
--- /dev/null
+++ b/results/classifier/gemma3:12b/files/1865048
@@ -0,0 +1,43 @@
+
+qemu-img --force-share does not disable file locking
+
+The new option "--force-share" for qemu-img does not disable file locking.
+
+I tried it with version qemu-img version 2.11.1(Debian 1:2.11+dfsg-1ubuntu7.21~cloud0) and I traced the source code of the current git trunk.
+
+Sample to demonstrate:
+
+# strace qemu-img info --force-share testfile.qcow2   2>&1 | grep F_RDLCK
+fcntl(11, F_OFD_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=100, l_len=1}) = 0
+fcntl(11, F_OFD_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=100, l_len=1}) = 0
+fcntl(11, F_OFD_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=100, l_len=1}) = 0
+fcntl(11, F_OFD_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=100, l_len=1}) = 0
+fcntl(11, F_OFD_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=100, l_len=1}) = 0
+fcntl(11, F_OFD_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=100, l_len=1}) = 0
+fcntl(11, F_OFD_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=100, l_len=1}) = 0
+fcntl(11, F_OFD_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=100, l_len=1}) = 0
+fcntl(11, F_OFD_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=100, l_len=1}) = 0
+
+I traced the passing of the --force-share option through the source code (I used commit 6c599282f8 as of Mon Feb 17 13:32:25 2020 +0000)
+
+qemu-img.c:img_info()
+        force_share = true;
+qemu-img.c:collect_image_info_list(force_share)
+qemu-img.c:img_open(force_share)
+qemu-img.c:img_open_file(force_share)
+        qdict_put_bool(options, BDRV_OPT_FORCE_SHARE, true);
+block/block-backend.c:blk_new_open(options)
+block.c:bdrv_open(options)
+block.c:bdrv_open_inheritoptions()
+block.c:bdrv_open_common(options)
+        bs->force_share = qemu_opt_get_bool(opts, BDRV_OPT_FORCE_SHARE, false);
+block.c:bdrv_open_driver(bs)
+include/block/block_int.h:int (*bdrv_file_open)(BlockDriverState *bs, QDict *options, int flags,
+block/file-posix.c:.bdrv_file_open = raw_open,
+block/file-posix.c:raw_open_common(bs)
+        locking = qapi_enum_parse(&OnOffAuto_lookup,
+                              qemu_opt_get(opts, "locking"),
+                              ON_OFF_AUTO_AUTO, &local_err);
+        ignoring bs->force_share
+
+At the end, bs->force_share is ignored in determining the locking value.
\ No newline at end of file