Richard W.M. Jones
1b79e22be4
generator/daemon.ml: Avoid not available macro for OCaml functions
...
Reported-by: Toolybird
Fixes: https://github.com/libguestfs/libguestfs/issues/290
2026-01-19 22:19:27 +00:00
Richard W.M. Jones
8b3fc15190
website/index.html.in: Fix stable/development branch links
2026-01-19 19:43:56 +00:00
Richard W.M. Jones
9ffe190fbe
Version 1.59.1.
v1.59.1
2026-01-19 19:42:01 +00:00
Richard W.M. Jones
da70ed1360
po: Keep LINGUAS files sorted
2026-01-19 18:51:36 +00:00
Nathan
bb649ff0ba
Added translation using Weblate (Italian)
2026-01-19 18:51:01 +00:00
Temuri Doghonadze
f887d3cb54
Translated using Weblate (Georgian)
...
Currently translated at 16.6% (160 of 962 strings)
Translation: libguestfs/libguestfs-master
Translate-URL: https://translate.fedoraproject.org/projects/libguestfs/libguestfs-master/ka/
2026-01-19 18:51:01 +00:00
Hosted Weblate
0443ba7778
Update translation files
...
Updated by "Update LINGUAS file" hook in Weblate.
Translation: libguestfs/libguestfs-docs-master
Translate-URL: https://translate.fedoraproject.org/projects/libguestfs/libguestfs-docs-master/
Update translation files
Updated by "Update LINGUAS file" hook in Weblate.
Translation: libguestfs/libguestfs-docs-master
Translate-URL: https://translate.fedoraproject.org/projects/libguestfs/libguestfs-docs-master/
Update translation files
Updated by "Update LINGUAS file" hook in Weblate.
Translation: libguestfs/libguestfs-master
Translate-URL: https://translate.fedoraproject.org/projects/libguestfs/libguestfs-master/
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: libguestfs/libguestfs-master
Translate-URL: https://translate.fedoraproject.org/projects/libguestfs/libguestfs-master/
2026-01-19 18:51:01 +00:00
Languages add-on
b6bb5b96c2
Added translation using Weblate (Italian)
...
Added translation using Weblate (Telugu)
Added translation using Weblate (Tamil)
Added translation using Weblate (Russian)
Added translation using Weblate (Polish)
Added translation using Weblate (Punjabi)
Added translation using Weblate (Odia)
Added translation using Weblate (Marathi)
Added translation using Weblate (Malayalam)
Added translation using Weblate (Kannada)
Added translation using Weblate (Georgian)
Added translation using Weblate (Hindi)
Added translation using Weblate (Gujarati)
Added translation using Weblate (Portuguese (Brazil))
2026-01-19 18:51:01 +00:00
Richard W.M. Jones
548af2929e
daemon/selinux.c: Fix compilation when no libselinux
...
/usr/bin/ld: /tmp/ccvSGq6E.ltrans7.ltrans.o:(.data.rel.ro+0x1f8): undefined reference to `optgroup_selinuxrelabel_available'
The reason is that we didn't include optgroup_selinuxrelabel_available
on the fallback / no libselinux code path.
Reported-by: David Runge
Thanks: Toolybird
Fixes: https://github.com/libguestfs/libguestfs/issues/290
Fixes: commit ed40333a23
2026-01-19 14:53:12 +00:00
Richard W.M. Jones
29162f5fe5
lib/appliance-cpu.c: Use -cpu max for RISC-V
...
Reported-by: https://github.com/Apache553
Fixes: https://github.com/libguestfs/libguestfs/issues/292
2026-01-19 14:53:00 +00:00
Anders Roxell
7fee08e53f
tar_in: add keepdirlink option for --keep-directory-symlink
...
Add a new optional boolean argument 'keepdirlink' to tar_in that passes
--keep-directory-symlink to tar. This preserves existing symlinks to
directories when extracting, which is important for usrmerge systems
where /lib is a symlink to /usr/lib.
Without this option, extracting a tarball containing lib/modules/...
to / would replace the /lib symlink with a real directory, breaking
the system.
Signed-off-by: Anders Roxell <anders.roxell@linaro.org >
2026-01-19 12:39:59 +00:00
Richard W.M. Jones
5da8102f5f
lib/qemu.c: Don't start the guest when checking QMP properties
...
When checking for QMP properties, we run a qemu command and interact
with the QMP console. However we also start the guest running (there
is no actual guest in this situation). This occasionally causes this
line to be printed:
libguestfs: generic_qmp_test: 3: {"timestamp": {"seconds": 1768823946, "microseconds": 898287}, "event": "GUEST_PANICKED", "data": {"action": "poweroff", "info": {"core": 0, "psw-addr": 0, "reason": "disabled-wait", "psw-mask": 562956395872256, "type": "s390"}}}\r\n
which confuses our parser.
As there is no reason to start the non-existent guest, add the -S
option which causes qemu to start up in a paused state.
For some reason this only happens on s390x but I think it could happen
on all architectures, so it may be a timing issue or something
particular about s390x firmware.
2026-01-19 12:03:59 +00:00
Richard W.M. Jones
bbbc982bf5
lib/qemu.c: Add debugging to generic_qmp_test()
...
This function fails sometimes on s390x, but it's hard to tell what is
going on because of insufficient debugging.
2026-01-19 10:27:24 +00:00
Richard W.M. Jones
0fe8c0492c
lib/qemu.c: Turn debug messages which are really errors into error()
...
Commit 669eda1e24 ("lib/launch-direct.c: Simplify test for KVM, remove
qemu caching") made it so that failure of generic_qmp_test() will
cause launch to fail. However we still used debug messages to print
the error, so unless you have debugging enabled you wouldn't see any
error message if this function fails.
Updates: commit 669eda1e24
2026-01-19 10:20:55 +00:00
Hosted Weblate
d16be4592b
Update translation files
...
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: libguestfs/libguestfs-master
Translate-URL: https://translate.fedoraproject.org/projects/libguestfs/libguestfs-master/
2026-01-06 12:57:49 +00:00
Andi Chandler
aeebfc34c3
Translated using Weblate (English (United Kingdom))
...
Currently translated at 55.7% (7384 of 13236 strings)
Translation: libguestfs/libguestfs-docs-master
Translate-URL: https://translate.fedoraproject.org/projects/libguestfs/libguestfs-docs-master/en_GB/
2026-01-06 12:57:49 +00:00
Richard W.M. Jones
d618d8eb0c
Version 1.58.0.
v1.58.0
2026-01-05 16:19:15 +00:00
Richard W.M. Jones
522c564298
docs/guestfs-release-notes-1.58.pod: Update for 1.58 release
2026-01-05 16:16:43 +00:00
Richard W.M. Jones
c7b204bce3
daemon/device-name-translation.c: Fix btrfs volume reverse translation
...
Devices associated with btrfs volumes are not reverse-translated
(e.g., btrfsvol:/dev/sdX to sdY).
Forward translation occurs, creating a path mismatch. This causes
errors in subsequent btrfs commands.
Thanks: Arye Yurkovsky
2025-12-10 12:31:15 +00:00
Arye Yurkovsky
62b0e2ab64
daemon: lvm_utils: Further narrow stat failure to ENOENT
...
Missed the 2nd stat
2025-12-08 17:40:59 +00:00
Arye Yurkovsky
6aebf70e18
daemon: lvm_utils: Narrow stat failure to ENOENT
...
And remove redundant parantheses.
To only catch the failure we want to catch.
2025-12-08 17:40:59 +00:00
Arye Yurkovsky
c7228cd1ce
daemon: lvm_utils: Handle stat errors
...
lvm returns logical volumes even if they're broken, for instance when a
physical volume is missing in their volume group.
In such cases, stat would fail to resolve the provided path.
Handle such cases by skipping such failures when finding the matching
lvm device.
2025-12-08 17:40:59 +00:00
Richard W.M. Jones
c56e6ff39b
Version 1.57.7.
v1.57.7
2025-12-04 13:16:56 +00:00
Susant Sahani
3c73a71626
tests: drop test-btrfs-misc perl file
...
Fixes: commit c27f3d41b1
Signed-off-by: Susant Sahani <ssahani@redhat.com >
2025-12-04 10:53:07 +00:00
Susant Sahani
1387e7f6a8
tests: nbd - convert to python
...
Signed-off-by: Susant Sahani <ssahani@redhat.com >
2025-12-03 15:39:41 +00:00
Susant Sahani
fff03b7135
tests: selinux-label - convert to python
...
Signed-off-by: Susant Sahani <ssahani@redhat.com >
2025-12-03 15:35:19 +00:00
Susant Sahani
1f739979bb
tests: lvm-mapping - convert to python
...
Signed-off-by: Susant Sahani <ssahani@redhat.com >
2025-12-03 15:32:56 +00:00
Susant Sahani
8f187bf97b
tests: console-debug - convert to python
...
Signed-off-by: Susant Sahani <ssahani@redhat.com >
2025-12-03 15:30:54 +00:00
Susant Sahani
bab46df1c6
tests: disk-labels - convert to python
...
Signed-off-by: Susant Sahani <ssahani@redhat.com >
2025-12-03 15:29:26 +00:00
Susant Sahani
7f7eeb6668
tests: btrfs - subvolume-default convert to python
...
Signed-off-by: Susant Sahani <ssahani@redhat.com >
2025-12-02 10:44:23 +00:00
Susant Sahani
c27f3d41b1
tests: btrfs - test-btrfs-misc convert to python
...
Signed-off-by: Susant Sahani <ssahani@redhat.com >
2025-12-02 10:44:23 +00:00
Susant Sahani
7df1e9c359
tests: journal - convert to python
...
Signed-off-by: Susant Sahani <ssahani@redhat.com >
2025-12-02 10:42:43 +00:00
Susant Sahani
817fb83742
tests: xfs - convert to python
...
Signed-off-by: Susant Sahani <ssahani@redhat.com >
2025-12-02 10:37:05 +00:00
Susant Sahani
bd75288c5a
fuse: use modern sigaction initialization for ignored signals
...
Signed-off-by: Susant Sahani <ssahani@redhat.com >
2025-12-01 16:28:12 +00:00
Susant Sahani
19c40e5f34
tests: tmpdirs - convert to python
...
Signed-off-by: Susant Sahani <ssahani@redhat.com >
2025-12-01 16:17:19 +00:00
Richard W.M. Jones
40fdcd0146
fish: Fix const correctness in strrchr
...
In C23, strchr or strrchr on a const parameter now returns a const
pointer. We saw this error:
destpaths.c: In function ‘complete_dest_paths_generator’:
destpaths.c:165:9: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
165 | p = strrchr (text, '/');
| ^
2025-12-01 14:00:57 +00:00
Fco. Javier F. Serrador
fa7a18ed36
Translated using Weblate (Spanish)
...
Currently translated at 4.1% (551 of 13236 strings)
Translation: libguestfs/libguestfs-docs-master
Translate-URL: https://translate.fedoraproject.org/projects/libguestfs/libguestfs-docs-master/es/
Translated using Weblate (Spanish)
Currently translated at 62.8% (605 of 962 strings)
Translation: libguestfs/libguestfs-master
Translate-URL: https://translate.fedoraproject.org/projects/libguestfs/libguestfs-master/es/
2025-12-01 12:01:42 +00:00
Susant Sahani
4349548c83
lib/create: explicitly close fd and report close(2) errors
...
Signed-off-by: Susant Sahani <ssahani@redhat.com >
2025-11-27 13:15:11 +00:00
Susant Sahani
192e086f66
lib/create: fix indentation in guestfs_impl_disk_create()
...
Convert tabs to spaces and align parameters correctly.
Signed-off-by: Susant Sahani <ssahani@redhat.com >
2025-11-27 11:04:10 +00:00
Susant Sahani
a3a4fc2ba9
lib/create: use bool for is_power_of_2() return type
...
Signed-off-by: Susant Sahani <ssahani@redhat.com >
2025-11-27 11:03:19 +00:00
Susant Sahani
60f60e9f4e
lib/create: use compound initializer for BLKDISCARD range
2025-11-27 11:02:06 +00:00
Susant Sahani
7d22402500
lib: Use bool type for allocated flag in disk creation
...
Signed-off-by: Susant Sahani <ssahani@redhat.com >
2025-11-27 08:48:25 +00:00
Susant Sahani
3aaaf4f667
lib: Use compound initialization for buffer in disk creation
...
Signed-off-by: Susant Sahani <ssahani@redhat.com >
2025-11-27 08:48:02 +00:00
Susant Sahani
cf6ac9aeba
lib: Add automatic file descriptor cleanup using CLEANUP_CLOSE attrib
...
Signed-off-by: Susant Sahani <ssahani@redhat.com >
2025-11-27 08:46:51 +00:00
Susant Sahani
40e549294e
drives: Modernize guestfs_impl_add_drive_opts initialization
...
Signed-off-by: Susant Sahani <ssahani@redhat.com >
2025-11-26 15:17:50 +00:00
Susant Sahani
b4d795c13d
lib: Modernize guestfs_int_drive_protocol_to_string to use static array
...
Signed-off-by: Susant Sahani <ssahani@redhat.com >
2025-11-26 15:17:50 +00:00
Susant Sahani
19b208777a
fuse: Modernize mount_local_readdir with compound literal struct stat init
...
Signed-off-by: Susant Sahani <ssahani@redhat.com >
2025-11-26 15:16:56 +00:00
Susant Sahani
257bfad817
appliance: Modernize guestfs_int_build_appliance with compound literal
...
No functional change.
Signed-off-by: Susant Sahani <ssahani@redhat.com >
2025-11-26 15:15:33 +00:00
Susant Sahani
0a8d1aefef
daemon: tsk - Fix memory leak
...
Signed-off-by: Susant Sahani <ssahani@redhat.com >
2025-11-24 11:15:23 +00:00
Susant Sahani
b5000cf547
daemon: send_dirent_info: Use designated compound literal for tsk_dirent
...
Signed-off-by: Susant Sahani <ssahani@redhat.com >
2025-11-24 11:15:23 +00:00