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: Alex Kost
Subject: Re: [PATCH] build: file-systems: Allow for bind mounting regular files.
Date: Sun, 02 Aug 2015 15:10:54 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

David Thompson (2015-08-01 22:17 +0300) wrote:

> diff --git a/gnu/build/file-systems.scm b/gnu/build/file-systems.scm
> index c58d23c..f0d6f70 100644
> --- a/gnu/build/file-systems.scm
> +++ b/gnu/build/file-systems.scm
> @@ -305,6 +305,10 @@ the following:
>                 fsck code device)
>         (start-repl)))))
>  
> +(define (regular-file? file-name)
> +  "Return #t if FILE-NAME is a regular file."
> +  (eq? (stat:type (stat file-name)) 'regular))

There are similar procedures in (guix build utils): 'directory-exists?',
'executable-file?' and 'symbolic-link?'.  So I think it is better to put
'regular-file?' there.  WDYT?

-- 
Alex



reply via email to

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