From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] build: file-systems: Allow for bind mounting regular files. Date: Tue, 18 Aug 2015 17:52:24 +0200 Message-ID: <87614coapz.fsf@gnu.org> References: <87a8uarf6g.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> <87bnepriup.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46658) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRjBf-00042k-SA for guix-devel@gnu.org; Tue, 18 Aug 2015 11:52:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZRjBb-00064s-S7 for guix-devel@gnu.org; Tue, 18 Aug 2015 11:52:31 -0400 In-Reply-To: (David Thompson's message of "Sun, 2 Aug 2015 08:43:10 -0400") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: "Thompson, David" Cc: guix-devel , Alex Kost "Thompson, David" skribis: > +(define (regular-file? file-name) > + "Return #t if FILE-NAME is a regular file." > + (eq? (stat:type (stat file-name)) 'regular)) I see you moved this procedure to (gnu build file-systems), which is reasonable. I wonder if it should use =E2=80=98lstat=E2=80=99 instead of =E2=80=98stat= =E2=80=99? Ludo=E2=80=99.