From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Function to find symlink target Date: Sat, 28 May 2022 19:55:53 +0300 Message-ID: <83leullhpi.fsf@gnu.org> References: <875ylxe98k.fsf@dataswamp.org> <878rqsyo1x.fsf@dataswamp.org> <87wneb690a.fsf@dataswamp.org> <871qwjzqg5.fsf@web.de> <87o7zn65jp.fsf@dataswamp.org> <87ilpvd5s1.fsf@web.de> <87bkvn9x12.fsf@dataswamp.org> <87czg35n3g.fsf@web.de> <871qwif973.fsf@web.de> <87fskv9gm8.fsf@dataswamp.org> <87pmjxoev5.fsf@dataswamp.org> <87leuloe7v.fsf@dataswamp.org> <83pmjxljvq.fsf@gnu.org> <87bkvhob9w.fsf@dataswamp.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5246"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 28 18:56:36 2022 Return-path: Envelope-to: geh-help-gnu-emacs@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 1nuzjw-00019b-6l for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 28 May 2022 18:56:36 +0200 Original-Received: from localhost ([::1]:51084 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nuzju-0006eW-SY for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 28 May 2022 12:56:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39562) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuzjH-0006eG-Ey for help-gnu-emacs@gnu.org; Sat, 28 May 2022 12:55:55 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59522) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuzjH-0007W4-6I for help-gnu-emacs@gnu.org; Sat, 28 May 2022 12:55:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=S8vSVuSjNSYpSajXYxvkKq8FP73TFqNjhVXXzcsG8cg=; b=X4dZ/5jBIF5y eRHP5to2d3fCSXwm0M0UO2Z4XVCM/A/TGCH1jZPS/v7ryp7k6EiuzmEc5cbQTxU3cRmGu0HqpdRCN cq7dPn1EKGRgloaCl9nagTXKw/+Hl+LVnvqS1NVcYygtG1AxZXdDAT1iWaaDgLAPewdwzCE9bXeo4 By1uyESjdcXSu4clu8kRP2Vjwjn1ObUmcJuGQf39cM4ipCpZwh3X3/047BhHUC5oE6KuaRX655BDB K8kc5DH5yjHfc4MBSVwO6ci9gGK9eFvfuFBIUEFFpjuZrxQ2Iswtfstcdz5L560Brgnb8+cmFVnmm bfgUtfPg6Nnb+UEoKxZLrQ==; Original-Received: from [87.69.77.57] (port=2443 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuzjG-0000NU-Jb for help-gnu-emacs@gnu.org; Sat, 28 May 2022 12:55:54 -0400 In-Reply-To: <87bkvhob9w.fsf@dataswamp.org> (message from Emanuel Berg on Sat, 28 May 2022 18:46:35 +0200) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:137455 Archived-At: > From: Emanuel Berg > Date: Sat, 28 May 2022 18:46:35 +0200 > > > You evidently assume that a symlink is stored in some > > particular way on disk, but the reality is different from > > your assumption. What 'ls' and 'du' show you is largely > > an illusion. > > Okay, where are they stored then? In the spare space of the inode, exactly as with small files. See https://unix.stackexchange.com/questions/609474/actual-content-of-a-symlink-file