]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
remove some dead code, update header file from kernel copy
authorSteve Lord <lord@sgi.com>
Fri, 3 Oct 2003 14:40:38 +0000 (14:40 +0000)
committerSteve Lord <lord@sgi.com>
Fri, 3 Oct 2003 14:40:38 +0000 (14:40 +0000)
remove unused macros

include/fstyp.h
include/xfs_dinode.h
repair/dinode.c

index a4668a06b8f4558ae9294cc0fcba6022b75dea84..69ddf72ba2020ba990f54ae38cf61be5ad491da7 100644 (file)
 extern "C" {
 #endif
 
-/*
- * Compatibility macros for IRIX fstyp.h, in case anyone needs them.
- */
-#define FSTYPSZ                16      /* max size of fs identifier */
-/* Opcodes for the sysfs() system call. */
-#define GETFSIND       1       /* translate fs identifier to fstype index */
-#define GETFSTYP       2       /* translate fstype index to fs identifier */
-#define GETNFSTYP      3       /* return the number of fstypes */
-extern int sysfs (int, ...);
-
 /*
  * fstype allows the user to determine the filesystem identifier of
  * mounted or unmounted filesystems, using heuristics.
index 86968706bae71f6671edba4fe1c348e850a0d669..69a2ca652b83ab31336fb2a2b8f2aac0ccdeaf31 100644 (file)
@@ -439,25 +439,21 @@ void xfs_dfork_next_set(xfs_dinode_t *dip, int w, int n);
 /*
  * File types (mode field)
  */
-#define        IFMT            0170000         /* type of file */
-#define        IFIFO           0010000         /* named pipe (fifo) */
-#define        IFCHR           0020000         /* character special */
-#define        IFDIR           0040000         /* directory */
-#define        IFBLK           0060000         /* block special */
-#define        IFREG           0100000         /* regular */
-#define        IFLNK           0120000         /* symbolic link */
-#define        IFSOCK          0140000         /* socket */
-#define        IFMNT           0160000         /* mount point */
-
-/*
- * File execution and access modes.
- */
-#define        ISUID           04000           /* set user id on execution */
-#define        ISGID           02000           /* set group id on execution */
-#define        ISVTX           01000           /* sticky directory */
-#define        IREAD           0400            /* read, write, execute permissions */
-#define        IWRITE          0200
-#define        IEXEC           0100
+#define        IFMT            S_IFMT
+#define        IFSOCK          S_IFSOCK
+#define        IFLNK           S_IFLNK
+#define        IFREG           S_IFREG
+#define        IFBLK           S_IFBLK
+#define        IFDIR           S_IFDIR
+#define        IFCHR           S_IFCHR
+#define        IFIFO           S_IFIFO
+
+#define        ISUID           S_ISUID
+#define        ISGID           S_ISGID
+#define        ISVTX           S_ISVTX
+#define        IREAD           S_IRUSR
+#define        IWRITE          S_IWUSR
+#define        IEXEC           S_IXUSR
 
 #if XFS_WANT_FUNCS || (XFS_WANT_SPACE && XFSSO_XFS_BUF_TO_DINODE)
 xfs_dinode_t *xfs_buf_to_dinode(struct xfs_buf *bp);
index 79ccbee4533be6d429e39db92a5813b9e91e33c3..c42cba09ef97752ca90eb1e1be3e6e28fe39e26f 100644 (file)
@@ -1981,9 +1981,6 @@ process_dinode_int(xfs_mount_t *mp,
        case IFIFO:
                type = XR_INO_FIFO;
                break;
-       case IFMNT:
-               type = XR_INO_MOUNTPOINT;
-               break;
        default:
                type = XR_INO_UNKNOWN;
                do_warn(_("Unexpected inode type %#o inode %llu\n"),