From unknown Sat Jun 14 19:02:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#78574: gnome-disks cannot format partitions unless udisksd is run as root Resent-From: Denis 'GNUtoo' Carikli Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 24 May 2025 02:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 78574 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 78574@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.174805376727044 (code B ref -1); Sat, 24 May 2025 02:30:02 +0000 Received: (at submit) by debbugs.gnu.org; 24 May 2025 02:29:27 +0000 Received: from localhost ([127.0.0.1]:53980 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uIeda-000720-PP for submit@debbugs.gnu.org; Fri, 23 May 2025 22:29:27 -0400 Received: from lists.gnu.org ([2001:470:142::17]:35724) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uIedZ-000716-9L for submit@debbugs.gnu.org; Fri, 23 May 2025 22:29:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uIedT-0002aM-Dd for bug-guix@gnu.org; Fri, 23 May 2025 22:29:19 -0400 Received: from cyberdimension.org ([2001:678:938:3ff::36] helo=rockpro64.cyberdimension.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1uIedQ-0001y0-Rc for bug-guix@gnu.org; Fri, 23 May 2025 22:29:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=dkim; bh=dNBVvHSH4PkLbiF 6xNHXdwFMTFoThCBJoX0rr40MYtw=; h=subject:to:from:date; d=cyberdimension.org; b=SgszB5mE9F3VEvpmy7GIOQBPyfeKD0Pw2PzWaemXW6TJip 2p7uIQKpFNUzTADRkHTy9Q8xaXIa59lAkdW+PZuru2h3tzpBizZt6lEI3I3VLBA7UKiBz2 Pw3yk1fx/wh1P9ioYB3nhJm25GQY1hKG9a7vNF8TTGYDUpWIy+IH4nRBZpLhWbWFd7Sw1O z8UNMXECetN+upQ++WlfJ6hgUW3Ag7EjNqJJ506xbr35zFIgx0OtJyMPA7V5KXoND5e41B iDA16emY9rManquDtzXb2V5Df2bWL2VVyhKl0BWPDOySAk1e4UtPzJkvFBiDkcWfqyA61E KnqdFacD320yzIyA== Received: from primarylaptop.localdomain (localhost [127.0.0.1]) by rockpro64.cyberdimension.org (OpenSMTPD) with ESMTP id a52a6c15 for ; Sat, 24 May 2025 02:29:12 +0000 (UTC) Date: Sat, 24 May 2025 04:28:28 +0200 From: Denis 'GNUtoo' Carikli Message-ID: <20250524042828.4f321dcc@primarylaptop.localdomain> X-Mailer: Claws Mail 4.3.0 (GTK 3.24.43; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/VXNQnQ/wP3LNwXw7A_+A/5g"; protocol="application/pgp-signature"; micalg=pgp-sha256 Received-SPF: pass client-ip=2001:678:938:3ff::36; envelope-from=GNUtoo@cyberdimension.org; helo=rockpro64.cyberdimension.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) --Sig_/VXNQnQ/wP3LNwXw7A_+A/5g Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi, When running gnome-disks, even as root, I cannot format partitions with it: the only "filesystem" that works is "unformated". Ext4 seems available but when selected it fails to format the partition and the rest of the filesystems are greyed out. This is with (service udisks-service-type) in my system configuration. However if run 'killall udisksd' and manually run udisksd as root, gnome-disks can format most filesystems. What happens behind the scenes is that gnome-disks uses some dbus wrapper functions to ask the information to Udisks2 through the /org/freedesktop/UDisks2/Manager org.freedesktop.UDisks2.Manager CanFormat function. It then caches it. I've confirmed with d-spy that this function returns true with parameters like like 'exfat' (with the quotes) when udisksd runs as root and false when it doesn't. Udisksd then uses the bd_fs_can_mkfs function from blockdev to get the information. I've not read yet the bd_utils_check_util_version that does the actual check though.=20 I've also tried to call bd_fs_can_mkfs in a standalone C program but it didn't work (it probably needs a bit more setup than copying the udisksd call to it). And I also didn't look at the udisks-service-type yet. I'll try to find more time to dig into bd_utils_check_util_version to understand why it fails. PS: I've tried to send a bug report on Codeberg to be able to test it but I only found 'guix-mirror' and no way to bug report there yet and I can't see the only bug report either due to Anubis even while being logged to Codeberg. Denis. --Sig_/VXNQnQ/wP3LNwXw7A_+A/5g Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEeC+d2+Nrp/PU3kkGX138wUF34mMFAmgxLswACgkQX138wUF3 4mNYiw//aNvvL36V61wTIj5fvD/4VTb8sWxQwBgB89V6gRNhLDOccMBVhedH2rlA 8yapxzLRwbf6+ia9tY69aU2cm8qzND1pAqovtYu57w7yRhx0ZO3MGpP45phRtHN0 bbJiZd5MAOv7HLiY5n6Jb6UO05jiONArSf3CxPGzaNeh8IGUtq7Sdkt4D3hD8TCA cRtmKSBnY5bCMlzeEePqvL0rg3VZ1p9lDle40bkxt2qG3d5HhePnffBJohpvi37V IN3TmjytR2BO/X6JkwD3+92w7nT+T6VYsHrS3fPKPxcQiyA9uF50/zWxKTo78Oz9 yLGc7yqpaPktiZSYU3S2stSCOl4VxRD/FPHxNCu8t58mkd+8Pm7SM6x/IXvBJRnn /XsrueTZUWC10tPTmensb5ryKojoZK/C4CNIASWBWRaGBC1TGG+JXjRbVoorYr6M uSh5YlLHUgouSQljvb/L1FjmY6ZlX3ciMIMvKFgBoapmaPB5nRw/NEnx1iTIA1tV 0qLZDzJ805znQ0YT4b+8g1HLyTvYhIIdhQkebAM66PsKT+gxa1NnXUytxHs2R/Y6 nAhwPPfrP3xq/TgnD7VdIwbhOmDQyIOiZDhPnQ4cmP+7rLUaRR9IAbhrypF8zHV4 JDo+y1ewD2QJQfILxQ0cg4KgWfrwkG62Bo8hzWqPzXSEPSlZhCw= =VZH7 -----END PGP SIGNATURE----- --Sig_/VXNQnQ/wP3LNwXw7A_+A/5g--