From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id mHbeA4IYqmWvPwAA62LTzQ:P1 (envelope-from ) for ; Fri, 19 Jan 2024 07:36:50 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id mHbeA4IYqmWvPwAA62LTzQ (envelope-from ) for ; Fri, 19 Jan 2024 07:36:50 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705646210; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=ppP8p+3YM8gQ754OmVsB2048K3c3aTGSpsWhyCeQ3Ng=; b=LWn+EesGQe1fevfdxVKJbBIC3WY9wKafWx10kcZf7J86wzx5TuHX1u0xPQtBg3VAX2CL/5 vm316NoGvrKDQO4cTt7RYQWz4woozuESq/QtKndA+G/ovRdMCDYBQZ1kBePTXqPjb3Wv2K Axi3o1m6lRUchX7gGhQEmzHLYAG3em9rcUVNWJg9ljflWOHtPNjx5Nk0YJ21EOMGptreiz ugcRvdzt+Hqi2DNzItFCmVkOYIIvOiZTuqwQ8uWeY0V0d5aSgLfHMcoBgJNDJiGeIHLwrP p3LpF/151EEz9cZ2N+kkeN38hZQ6/q1E2MTDh0XDubfFdZeMplkuQ453+Xrypw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705646210; a=rsa-sha256; cv=none; b=TGRosnrFKWf6oBa/1M75hprDkrDKo1fsshBc2XTdp+uMIS04lnTewp297jMHWztBdPfmmy 9Fe2Hgd/oA6jvpg8g2NrKqe0V9mr1dhAP0NvKHTuwQR7OT+aKGMnkfxYh7B2L8POBOcotm KBxlAg6btPar+ERszItmYONwMxXBiFwejp/oz+cmhHuFdcTael0iKPUb3ESQwacZhcR8CP 8t0+UqlxJF4ztdbfrE6g2xvDhg5u7xZI2FL4aeNxljK5dRpZ4XZs/Rm7RatHfXwrEWyTYy OK0T1X/mlULRdTvPkSlHy++8hO481zuaWOcW85BIAJBIOkj/cZeOkutRqdUBjA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id F16D3B524 for ; Fri, 19 Jan 2024 07:36:49 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rQhyq-0005qE-IE; Fri, 19 Jan 2024 01:03:52 -0500 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 1rQhyp-0005q6-9U for help-guix@gnu.org; Fri, 19 Jan 2024 01:03:51 -0500 Received: from smtpout1.mo12.mail-out.ovh.ca ([51.161.45.254]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rQhyn-00079k-JA for help-guix@gnu.org; Fri, 19 Jan 2024 01:03:51 -0500 Received: from mxplan1.mail.ovh.ca (unknown [10.111.58.135]) by mo12.mail-out.ovh.ca (Postfix) with ESMTPS id C729A2010E2 for ; Fri, 19 Jan 2024 02:03:39 -0400 (AST) Received: from rodrigomorales.site (54.39.251.57) by DAG2EX1.mxpca1.local (172.16.2.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Fri, 19 Jan 2024 01:03:39 -0500 X-OVh-ClientIp: 181.65.19.197 From: Rodrigo Morales To: Subject: How to determine the supported file systems for (uuid ...)? Date: Fri, 19 Jan 2024 01:03:32 -0500 Message-ID: <87bk9huaff.fsf@rodrigomorales.site> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [54.39.251.57] X-ClientProxiedBy: DAG1EX2.mxpca1.local (172.16.2.2) To DAG2EX1.mxpca1.local (172.16.2.11) X-Ovh-Tracer-GUID: 560fd76f-9409-44a0-a647-a9166e0f3808 X-Ovh-Tracer-Id: 1205557327880723991 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvkedrvdejledgleduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvffufffkgggtihesthdtredttddttdenucfhrhhomheptfhoughrihhgohcuofhorhgrlhgvshcuoehmvgesrhhoughrihhgohhmohhrrghlvghsrdhsihhtvgeqnecuggftrfgrthhtvghrnhepheeikefgueeffeelgeeuheekfeegvdetvdejfeevudfgtdevhfehleetveegffeunecuffhomhgrihhnpehgnhhurdhorhhgnecukfhppeduvdejrddtrddtrddupdehgedrfeelrddvhedurdehjedpudekuddrieehrdduledrudeljeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepoehmvgesrhhoughrihhgohhmohhrrghlvghsrdhsihhtvgeqpdhnsggprhgtphhtthhopedupdhrtghpthhtohephhgvlhhpqdhguhhigiesghhnuhdrohhrghdpoffvtefjohhsthepmhhouddvpdhmohguvgepshhmthhpohhuth Received-SPF: pass client-ip=51.161.45.254; envelope-from=me@rodrigomorales.site; helo=smtpout1.mo12.mail-out.ovh.ca X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -5.69 X-Spam-Score: -5.69 X-Migadu-Queue-Id: F16D3B524 X-TUID: 3JjnzZouNEan In this thread [1], a user reports a problem when finding a partition by its UUID in Guix. Another user answered the following: #+BEGIN_QUOTE The code responsible for that is in (gnu build file-systems). It currently recognizes only some file system types: ISO9660, ext2/3/4, Btrfs, FAT32, FAT16, and JFS. #+END_QUOTE I confirmed that this is true because (uuid ...) returned the partition when the file system type was EXT4, but it returned #f when the file system type was EXFAT. I was wondering how I could determine the supported file system types when inspecting the source code at ./gnu/build/file-systems.scm [2]. Answering this question on my own would have been useful if I hadn't found the aforementioned thread in the mailing list archive and I had needed to answer it on the fly. By inspecting the source code at that file, I noticed a pattern and I thought that searching all ocurrences of this regular expression could answer that question: #+BEGIN_EXAMPLE ^;;;.*file systems #+END_EXAMPLE I found these matches. #+BEGIN_EXAMPLE 10 matches for "^;;;.*file systems" in buffer: file-systems.scm 70:;;; check file systems. 191:;;; Ext2 file systems. 332:;;; Bcachefs file systems. 395:;;; Btrfs file systems. 449:;;; FAT32 file systems. 491:;;; FAT16 file systems. 518:;;; ISO9660 file systems. 578:;;; JFS file systems. 744:;;; NTFS file systems. 786:;;; XFS file systems. #+END_EXAMPLE If I use this information for answering my question, then EXT2 is a supported file system type, but how I could know that EXT3 and EXT4 is also a supported file system type? Is it because when EXT2 is supported, then it is highly likely that EXT3 and EXT4 is also supported? [1] https://mail.gnu.org/archive/html/bug-guix/2020-04/msg00031.html [2] https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/build/file-systems.scm