io.files.info: fix circularity regression in file-systems on linux
parent
f621e69335
commit
4da6f51c91
|
@ -34,8 +34,10 @@ HOOK: file-readable? os ( path -- ? )
|
||||||
HOOK: file-writable? os ( path -- ? )
|
HOOK: file-writable? os ( path -- ? )
|
||||||
HOOK: file-executable? os ( path -- ? )
|
HOOK: file-executable? os ( path -- ? )
|
||||||
|
|
||||||
: mount-points ( -- assoc )
|
HOOK: mount-points os ( -- assoc )
|
||||||
file-systems [ [ mount-point>> canonicalize-path-full ] keep ] H{ } map>assoc ;
|
|
||||||
|
M: object mount-points
|
||||||
|
file-systems [ [ mount-point>> ] keep ] H{ } map>assoc ;
|
||||||
|
|
||||||
: (find-mount-point-info) ( path assoc -- mtab-entry )
|
: (find-mount-point-info) ( path assoc -- mtab-entry )
|
||||||
[ resolve-symlinks canonicalize-path-full ] dip
|
[ resolve-symlinks canonicalize-path-full ] dip
|
||||||
|
|
|
@ -78,6 +78,9 @@ frequency pass-number ;
|
||||||
} cleave
|
} cleave
|
||||||
] [ { [ libc-error? ] [ errno>> EACCES = ] } 1&& ] ignore-error/f ;
|
] [ { [ libc-error? ] [ errno>> EACCES = ] } 1&& ] ignore-error/f ;
|
||||||
|
|
||||||
|
M: linux mount-points
|
||||||
|
parse-mtab [ [ mount-point>> ] keep ] H{ } map>assoc ;
|
||||||
|
|
||||||
M: linux file-systems
|
M: linux file-systems
|
||||||
parse-mtab [ mtab-entry>file-system-info ] map sift ;
|
parse-mtab [ mtab-entry>file-system-info ] map sift ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue