Changeset c735cd5 in rtems
- Timestamp:
- Mar 5, 2015, 9:34:28 AM (6 years ago)
- Branches:
- 4.11, 5, master
- Children:
- 16b2de35
- Parents:
- 6fd5b4e
- git-author:
- Sebastian Huber <sebastian.huber@…> (03/05/15 09:34:28)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (03/05/15 10:23:10)
- Location:
- cpukit/libfs/src/dosfs
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/libfs/src/dosfs/fat_file.h
r6fd5b4e rc735cd5 40 40 typedef enum { 41 41 FAT_DIRECTORY = 0, 42 FAT_HARD_LINK = 2, /* pseudo type */ 42 43 FAT_FILE = 4 43 44 } fat_file_type_t; -
cpukit/libfs/src/dosfs/msdos.h
r6fd5b4e rc735cd5 86 86 #define MSDOS_VOLUME_SEMAPHORE_TIMEOUT RTEMS_NO_TIMEOUT 87 87 88 /* Node types */89 typedef enum {90 MSDOS_DIRECTORY = 0,91 MSDOS_REGULAR_FILE = 4,92 MSDOS_HARD_LINK = 2 /* pseudo type */93 } msdos_node_type_t;94 95 88 /* 96 89 * Macros for fetching fields from 32 bytes long FAT Directory Entry … … 371 364 */ 372 365 int msdos_creat_node(const rtems_filesystem_location_info_t *parent_loc, 373 msdos_node_type_ttype,366 fat_file_type_t type, 374 367 const char *name, 375 368 int name_len, -
cpukit/libfs/src/dosfs/msdos_create.c
r6fd5b4e rc735cd5 60 60 int 61 61 msdos_creat_node(const rtems_filesystem_location_info_t *parent_loc, 62 msdos_node_type_ttype,62 fat_file_type_t type, 63 63 const char *name, 64 64 int name_len, … … 116 116 *MSDOS_DIR_FILE_SIZE(short_node) = MSDOS_INIT_DIR_SIZE; 117 117 118 if (type == MSDOS_DIRECTORY) {118 if (type == FAT_DIRECTORY) { 119 119 *MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_DIRECTORY; 120 120 } 121 else if (type == MSDOS_HARD_LINK) {121 else if (type == FAT_HARD_LINK) { 122 122 /* 123 123 * when we establish a (temporary) hard link, … … 178 178 * to do 179 179 */ 180 if (type == MSDOS_DIRECTORY)180 if (type == FAT_DIRECTORY) 181 181 { 182 182 /* open new directory as fat-file */ -
cpukit/libfs/src/dosfs/msdos_eval.c
r6fd5b4e rc735cd5 65 65 fat_file_fd_t *fat_fd = currentloc->node_access; 66 66 67 return fat_fd->fat_file_type == MSDOS_DIRECTORY;67 return fat_fd->fat_file_type == FAT_DIRECTORY; 68 68 } 69 69 -
cpukit/libfs/src/dosfs/msdos_mknod.c
r6fd5b4e rc735cd5 44 44 { 45 45 int rc = RC_OK; 46 msdos_node_type_ttype = 0;46 fat_file_type_t type = 0; 47 47 48 48 /* … … 51 51 if (S_ISDIR(mode)) 52 52 { 53 type = MSDOS_DIRECTORY;53 type = FAT_DIRECTORY; 54 54 } 55 55 else if (S_ISREG(mode)) 56 56 { 57 type = MSDOS_REGULAR_FILE;57 type = FAT_FILE; 58 58 } 59 59 else -
cpukit/libfs/src/dosfs/msdos_rename.c
r6fd5b4e rc735cd5 52 52 */ 53 53 rc = msdos_creat_node(new_parent_loc, 54 MSDOS_HARD_LINK,new_name,new_namelen,S_IFREG,54 FAT_HARD_LINK,new_name,new_namelen,S_IFREG, 55 55 old_fat_fd); 56 56 if (rc != RC_OK) -
cpukit/libfs/src/dosfs/msdos_rmnod.c
r6fd5b4e rc735cd5 29 29 fat_file_fd_t *fat_fd = pathloc->node_access; 30 30 31 if (fat_fd->fat_file_type == MSDOS_DIRECTORY)31 if (fat_fd->fat_file_type == FAT_FILE) 32 32 { 33 33 bool is_empty = false;
Note: See TracChangeset
for help on using the changeset viewer.