From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: gnulib fsusage Date: Thu, 19 Jan 2023 18:11:45 +0800 Message-ID: <875yd296la.fsf@yahoo.com> References: <87bkmv6z36.fsf.ref@yahoo.com> <87bkmv6z36.fsf@yahoo.com> <83y1pzyqed.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18264"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jan 19 11:15:30 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pIRxC-0004cM-B9 for ged-emacs-devel@m.gmane-mx.org; Thu, 19 Jan 2023 11:15:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pIRtr-0002rA-SL; Thu, 19 Jan 2023 05:12:03 -0500 Original-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 1pIRtp-0002nA-Fp for emacs-devel@gnu.org; Thu, 19 Jan 2023 05:12:01 -0500 Original-Received: from sonic304-20.consmr.mail.ne1.yahoo.com ([66.163.191.146]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pIRtn-0006XP-Or for emacs-devel@gnu.org; Thu, 19 Jan 2023 05:12:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1674123117; bh=tcuTxSQEMeMwLNth+WqSboxmmEtlUtIx0Q7Kz4Ateyc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=PAoM/1XcDA96YxLSfclNSoJ9T7bgjWkIJscqgRAZBRyO6JsbrdqsDn6p4OeQWhW1pXyaT22rv+e2Izxto4sehf9o6Cu2V7Xes1GxOsCFITKh5R8kCQhfdQitPEd1bZf0Myi+EkcdORWjpF5yHhf7n3RpmJZd+qbBebeZkx2JqgxHEvUxmrEBwNz1R3C1kax4X3MDObTqceB0Yub7sLLANBQQ0Y0Xz897D8isHW2F6z2roh0COpoV4cO//4ACJlbVeCoigFrs1VDOhfzuh3/T5HPcXxp8FLYFgY2xdSAdjwdAYqJAFStdc98VBjrwAqgfYym+9f4esndUFfnxGvd4cA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1674123117; bh=Lw53fkq6ZmO9RWTiqYb1aJqaaCaSdfsq97SQpAmxXD2=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=WEDhymutT8MTzC0c+g1ZD3PygzK1JwGv1OtlfKlTSmAEFSgscLRoBnwdCrCPWFXPRta7LhG2lkqhlee3eRAZhVXj9Ra9wld9HIKT2L+ShQL3i6OHplDYcwHwEjoFpKHKg0anbAs9q7tQQzds5uiY2js0xg/3oIP48yUmg2WTUpx41qjzhq3gXqRxcH/eOyVHUisIQCPP3gAiNKtaen2I98tW6v4CeWfxUwD+qkEMV8gjQVBADpAFwEG0vzqBOOZih9fF+TJ3f8ZVeFzV2ZtBDGg/pxbu5pGTg2hCYGp8hh7F6DuLMbjtbvZGT6135hfp2LSEUoVNS2y5BzEOzwdlig== X-YMail-OSG: s0ibawEVM1kQec2VpXXCkfaHrAHlnkzD6mUd1v8WcXyrNp2KyBdcoBtj3HETlc5 yT5tgWOpAM4AWZOAhBVsINqrSo.G8WuydWHw2_cNHgMTb2UyUC3IjI3qIFiQWD4uq9i24XN0_4Jg 5jgPDZrozcyLdx3j1otuVw0aItHbDRGsRFPezDlmk6GU168WFoG.Xc_LkEZI7bjY6aDzjgOKVQ0C QaHHS9tXxaYTnv12a9dchnGC3sbO8g00JGncYY1jzrihsAzRxHR48aYo1ciKcfnYxItUwO8dwXXK .urv.T6k4SukKollKcoEM2ZBPP9d58o.B14djSQHmzCdwJO.g4d_iHzLccueLa0yV12EJl0LKk7y WpJ_skO_UAlY0EDe8F7RSnzE2vDwP1bZ1DAh00VPTgtRlvsQo9mYOkUXwU0uM591t6tE_Nuqp68w NOfwFbwO47uuKE7kd9bqVEJBU99Ek6H6yEVKvAJY6JQKOBjzHCm.cDrR_NlJ8mMs89iPOcXQLVCe 1EZYcAEEUIfnzpr.QNcfVrg0k.oq2fXiNRQsMl1j.E7AOwTixr3P1jOmuzEJdT.VQtuY5y8ptORS jy6cV_3thuE5LLYm11o4NoFyHdKfTR43qZtBd68baNaS5A_Ryv5rpVmkLFVk.whWaNaMTt.QPbJL UXL4t_Iih2jf93LrB.AIxgGwUbmlrkoFyZj0rxXN.EsJlC8MQ7pjNXkWO6nPcHzw_PSgBJ_S9Mht e1DS_5qrSFDZeAhAMEByRnLi03ZDv_YXeSPPy_eWkwghfBZEKDa141sQ47eAErcZmTqGEL77Rfe9 yHB6JVE2DZ92eQFgGrqeNeqsUcknQqBgqeqTvE8i_C X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ne1.yahoo.com with HTTP; Thu, 19 Jan 2023 10:11:57 +0000 Original-Received: by hermes--production-sg3-84766d64d7-n5jwk (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID bc95c80d1d84aa87f7b47266157e45e9; Thu, 19 Jan 2023 10:11:51 +0000 (UTC) In-Reply-To: <83y1pzyqed.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 19 Jan 2023 08:44:42 +0200") X-Mailer: WebService/1.1.21062 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.191.146; envelope-from=luangruo@yahoo.com; helo=sonic304-20.consmr.mail.ne1.yahoo.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:302537 Archived-At: Eli Zaretskii writes: >> From: Po Lu >> Date: Thu, 19 Jan 2023 10:24:29 +0800 >> >> Apparently lib/fsusage.o is not built when there is no suitable way for >> it to get the necessary information, but it is still used >> unconditionally by Emacs. > > Not unconditionally: the implementation of file-system-info in > fileio.c is conditioned on !DOS_NT, and both MSDOS and WINDOWSNT ports > have their separate implementations which don't use Gnulib's fsusage. > >> Is this the right way to detect whether or not get_fs_usage is actually >> present? > > Which port needs to exclude it, and why? Is that port going to > implement its own version of file-system-info? We must have a > non-trivial working implementation for each supported platform, > because Dired (and Tramp?) uses it. The Android port doesn't support statvfs, because that function is missing from the Android C library, apparently for security reasons. > If the port you are considering will have its own implementation, then > the same method as DOS_NT uses will be appropriate. I cannot find any way to do such an implementation, sorry. But if someone else knows, that would be great. Thanks.