bug-coreutils
[Top][All Lists]
Advanced

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

[patch] coreutils 5.0: Support the Linux's devpts filesystem


From: Maciej W. Rozycki
Subject: [patch] coreutils 5.0: Support the Linux's devpts filesystem
Date: Thu, 10 Apr 2003 19:17:45 +0200 (MET DST)

Hello,

 Here is a fix to let stat report the Linux's devpts filesystem using a
textual name instead of its associated magic ID.

2003-04-10  Maciej W. Rozycki  <address@hidden>

        * src/fs.h (S_MAGIC_DEVPTS): New magic for Linux's devpts.
        src/stat.c (human_fstype): Handle Linux's devpts.

 Please apply.

  Maciej

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: address@hidden, PGP key available        +

coreutils-5.0-devpts.patch
diff -up --recursive --new-file coreutils-5.0.macro/src/fs.h 
coreutils-5.0/src/fs.h
--- coreutils-5.0.macro/src/fs.h        2002-04-14 08:14:37.000000000 +0000
+++ coreutils-5.0/src/fs.h      2003-04-06 13:55:22.000000000 +0000
@@ -3,6 +3,7 @@
 
 #if defined __linux__
 # define S_MAGIC_AFFS          0xADFF
+# define S_MAGIC_DEVPTS                0x1CD1
 # define S_MAGIC_EXT           0x137D
 # define S_MAGIC_EXT2_OLD      0xEF51
 # define S_MAGIC_EXT2          0xEF53
diff -up --recursive --new-file coreutils-5.0.macro/src/stat.c 
coreutils-5.0/src/stat.c
--- coreutils-5.0.macro/src/stat.c      2003-03-22 22:32:02.000000000 +0000
+++ coreutils-5.0/src/stat.c    2003-04-06 13:57:49.000000000 +0000
@@ -122,6 +122,9 @@ human_fstype (STRUCT_STATVFS const *stat
     case S_MAGIC_AFFS:
       type = "affs";
       break;
+    case S_MAGIC_DEVPTS:
+      type = "devpts";
+      break;
     case S_MAGIC_EXT:
       type = "ext";
       break;





reply via email to

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