summaryrefslogtreecommitdiff
path: root/lib/filemode.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-08-13 01:52:01 +0000
committerJim Meyering <jim@meyering.net>1998-08-13 01:52:01 +0000
commitad3d56c0eecd789e614de4fffac14e97e836726b (patch)
tree9fd03f4920467598626ecdf1df4fc71b3ba1260d /lib/filemode.c
parente4445c5805b21c9ba6cadcf936c03f1b604fd271 (diff)
downloadgnulib-ad3d56c0eecd789e614de4fffac14e97e836726b.tar.gz
(ftypelet): Add comments for Cray DMF support.
From Johan Danielsson.
Diffstat (limited to 'lib/filemode.c')
-rw-r--r--lib/filemode.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/filemode.c b/lib/filemode.c
index d87af5beaa..5b830c036c 100644
--- a/lib/filemode.c
+++ b/lib/filemode.c
@@ -158,6 +158,7 @@ mode_string (mode, str)
'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 @@ ftypelet (bits)
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