|
@@ -44,7 +44,7 @@ static unsigned char xfs_dir3_filetype_table[] = {
|
|
DT_FIFO, DT_SOCK, DT_LNK, DT_WHT,
|
|
DT_FIFO, DT_SOCK, DT_LNK, DT_WHT,
|
|
};
|
|
};
|
|
|
|
|
|
-unsigned char
|
|
|
|
|
|
+static unsigned char
|
|
xfs_dir3_get_dtype(
|
|
xfs_dir3_get_dtype(
|
|
struct xfs_mount *mp,
|
|
struct xfs_mount *mp,
|
|
__uint8_t filetype)
|
|
__uint8_t filetype)
|
|
@@ -57,22 +57,6 @@ xfs_dir3_get_dtype(
|
|
|
|
|
|
return xfs_dir3_filetype_table[filetype];
|
|
return xfs_dir3_filetype_table[filetype];
|
|
}
|
|
}
|
|
-/*
|
|
|
|
- * @mode, if set, indicates that the type field needs to be set up.
|
|
|
|
- * This uses the transformation from file mode to DT_* as defined in linux/fs.h
|
|
|
|
- * for file type specification. This will be propagated into the directory
|
|
|
|
- * structure if appropriate for the given operation and filesystem config.
|
|
|
|
- */
|
|
|
|
-const unsigned char xfs_mode_to_ftype[S_IFMT >> S_SHIFT] = {
|
|
|
|
- [0] = XFS_DIR3_FT_UNKNOWN,
|
|
|
|
- [S_IFREG >> S_SHIFT] = XFS_DIR3_FT_REG_FILE,
|
|
|
|
- [S_IFDIR >> S_SHIFT] = XFS_DIR3_FT_DIR,
|
|
|
|
- [S_IFCHR >> S_SHIFT] = XFS_DIR3_FT_CHRDEV,
|
|
|
|
- [S_IFBLK >> S_SHIFT] = XFS_DIR3_FT_BLKDEV,
|
|
|
|
- [S_IFIFO >> S_SHIFT] = XFS_DIR3_FT_FIFO,
|
|
|
|
- [S_IFSOCK >> S_SHIFT] = XFS_DIR3_FT_SOCK,
|
|
|
|
- [S_IFLNK >> S_SHIFT] = XFS_DIR3_FT_SYMLINK,
|
|
|
|
-};
|
|
|
|
|
|
|
|
STATIC int
|
|
STATIC int
|
|
xfs_dir2_sf_getdents(
|
|
xfs_dir2_sf_getdents(
|