From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2D2C4386F036; Fri, 2 Oct 2020 13:17:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2D2C4386F036 From: "jrtc27 at jrtc27 dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/23960] [2.28 Regression]: New getdents{64} implementation breaks qemu-user Date: Fri, 02 Oct 2020 13:17:15 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.28 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jrtc27 at jrtc27 dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Oct 2020 13:17:16 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D23960 --- Comment #63 from Jessica Clarke --- (In reply to Danny Milosavljevic from comment #62) > (In reply to Florian Weimer from comment #60) > > (In reply to Danny Milosavljevic from comment #59) > > > It's impossible to store a 64 bit result into a 32 bit slot. > >=20 > > You can do something like that if you can maintain a translation table. >=20 > Mathematically speaking, no, you can't. There cannot be a 1:1 mapping > between all 64 bit values and all 32 bit values. >=20 > I know what you mean--in practice it could be good enough, if the directo= ry > doesn't have too many entries (or, depending on implementation, telldir > isn't called too often--though first that implementation with only telldir > doing the counting has to be possible. Is it?). >=20 > But that's just kicking the can down the road--eventually, someone somewh= ere > will have that many entries. And then, the mapping will fail. If you have more than 4 billion files then you really should not be using a 32-bit system. That is a very different (if related) problem from a single = >4 GiB file. Even https://lwn.net/Articles/400629/ split the 1 billion files up into 1 thousand directories each with 1 million files. --=20 You are receiving this mail because: You are on the CC list for the bug.=