Mercurial > hg > octave-nkf > gnulib-hg
changeset 1470:8968580b7c69
(ftypelet): Add comments for Cray DMF support.
From Johan Danielsson.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Thu, 13 Aug 1998 01:52:01 +0000 |
parents | 8c24e85786e7 |
children | c8f8562ce081 |
files | lib/filemode.c |
diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/filemode.c +++ b/lib/filemode.c @@ -158,6 +158,7 @@ 'b' for block special files 'c' for character special files 'm' for multiplexor files + 'M' for an off-line (regular) file 'l' for symbolic links 's' for sockets 'p' for fifos @@ -199,13 +200,18 @@ return 'n'; #endif + /* The following two tests are for Cray DMF (Data Migration + Facility), which is a HSM file system. A migrated file has a + `st_dm_mode' that is different from the normal `st_mode', so any + tests for migrated files should use the former. */ + #ifdef S_ISOFD - /* Cray migrated dmf file. */ if (S_ISOFD (bits)) + /* off line, with data */ return 'M'; #endif #ifdef S_ISOFL - /* Cray migrated dmf file. */ + /* off line, with no data */ if (S_ISOFL (bits)) return 'M'; #endif