guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] build: file-systems: Allow for bind mounting regular files.


From: Thompson, David
Subject: Re: [PATCH] build: file-systems: Allow for bind mounting regular files.
Date: Tue, 18 Aug 2015 12:43:22 -0400

On Tue, Aug 18, 2015 at 11:52 AM, Ludovic Courtès <address@hidden> wrote:
> "Thompson, David" <address@hidden> 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 did this to avoid a full rebuild.  A patch for core-updates could move it.

> I wonder if it should use ‘lstat’ instead of ‘stat’?

To follow symlinks or not?  I guess the answer is "no".  I can change
it to lstat.

- Dave



reply via email to

[Prev in Thread] Current Thread [Next in Thread]