Changeset 683 for trunk/kernel/fs/vfs.h
- Timestamp:
- Jan 13, 2021, 12:36:17 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/fs/vfs.h
r673 r683 168 168 *****************************************************************************************/ 169 169 170 /* this enum define the VFS inode types values*/170 /* this enum define the VFS file types */ 171 171 /* WARNING : this enum must be kept consistent with macros in <shared_stat.h> file */ 172 172 /* and with types in <shared_dirent.h> file. */ … … 174 174 typedef enum 175 175 { 176 FILE_TYPE_REG = 0, /*! regular file */177 FILE_TYPE_DIR = 1, /*! directory */178 FILE_TYPE_FIFO = 2, /*! POSIX named fifo */179 FILE_TYPE_PIPE = 3, /*! POSIX anonymous pipe */180 FILE_TYPE_SOCK = 4, /*! POSIX anonymous socket */181 FILE_TYPE_DEV = 5, /*! character device */182 FILE_TYPE_BLK = 6, /*! block device */183 FILE_TYPE_SYML = 7, /*! symbolic link */176 FILE_TYPE_REG = 0, /*! regular file */ 177 FILE_TYPE_DIR = 1, /*! directory */ 178 FILE_TYPE_FIFO = 2, /*! POSIX named fifo */ 179 FILE_TYPE_PIPE = 3, /*! POSIX anonymous pipe */ 180 FILE_TYPE_SOCK = 4, /*! POSIX anonymous socket */ 181 FILE_TYPE_DEV = 5, /*! character device */ 182 FILE_TYPE_BLK = 6, /*! block device */ 183 FILE_TYPE_SYML = 7, /*! symbolic link */ 184 184 } 185 185 vfs_file_type_t; … … 200 200 struct vfs_ctx_s * ctx; /*! local pointer on FS context. */ 201 201 vfs_file_attr_t attr; /*! file attributes bit vector (see above) */ 202 vfs_file_type_t type; /*! same type as inode */202 vfs_file_type_t type; /*! same type as inode */ 203 203 uint32_t offset; /*! seek position in file */ 204 204 remote_rwlock_t lock; /*! protect offset modifications */ … … 285 285 uint32_t inum; /*! inode identifier (unique in file system) */ 286 286 uint32_t attr; /*! inode attributes (see above) */ 287 vfs_file_type_t type; /*! inode type (see above)*/287 vfs_file_type_t type; /*! inode type (see vfs_file_t) */ 288 288 uint32_t size; /*! number of bytes */ 289 289 uint32_t uid; /*! user owner identifier */ … … 829 829 /****************************************************************************************** 830 830 * This function returns, in the structure pointed by the <st> pointer, various 831 * informations on the inodeidentified by the <root_inode_xp> and <patname> arguments.831 * informations on the file identified by the <root_inode_xp> and <patname> arguments. 832 832 * 833 833 * TODO : only partially implemented yet (only size and inum fields).
Note: See TracChangeset
for help on using the changeset viewer.