tag | line | file | source code |
de | 61 | fs/ext/dir.c | struct ext_dir_entry * de; |
de | 74 | fs/ext/dir.c | de = (struct ext_dir_entry *) (offset + bh->b_data); |
de | 76 | fs/ext/dir.c | offset += de->rec_len; |
de | 77 | fs/ext/dir.c | filp->f_pos += de->rec_len; |
de | 78 | fs/ext/dir.c | if (de->inode) { |
de | 79 | fs/ext/dir.c | for (i = 0; i < de->name_len; i++) |
de | 80 | fs/ext/dir.c | if (c = de->name[i]) |
de | 85 | fs/ext/dir.c | put_fs_long(de->inode,&dirent->d_ino); |
de | 93 | fs/ext/dir.c | de = (struct ext_dir_entry *) ((char *) de + de->rec_len); |
de | 58 | fs/ext/namei.c | static int ext_match(int len,const char * name,struct ext_dir_entry * de) |
de | 62 | fs/ext/namei.c | if (!de || !de->inode || len > EXT_NAME_LEN) |
de | 65 | fs/ext/namei.c | if (!len && (de->name[0]=='.') && (de->name[1]=='\0')) |
de | 69 | fs/ext/namei.c | if (len < EXT_NAME_LEN && len != de->name_len) |
de | 75 | fs/ext/namei.c | :"0" (0),"S" ((long) name),"D" ((long) de->name),"c" (len) |
de | 99 | fs/ext/namei.c | struct ext_dir_entry * de; |
de | 122 | fs/ext/namei.c | de = (struct ext_dir_entry *) bh->b_data; |
de | 124 | fs/ext/namei.c | if ((char *)de >= BLOCK_SIZE+bh->b_data) { |
de | 133 | fs/ext/namei.c | de = (struct ext_dir_entry *) bh->b_data; |
de | 137 | fs/ext/namei.c | if (ext_match(namelen,name,de)) { |
de | 138 | fs/ext/namei.c | *res_dir = de; |
de | 140 | fs/ext/namei.c | if (offset + de->rec_len < dir->i_size) |
de | 142 | fs/ext/namei.c | ((char *) de + de->rec_len); |
de | 147 | fs/ext/namei.c | offset += de->rec_len; |
de | 149 | fs/ext/namei.c | *prev_dir = de; |
de | 150 | fs/ext/namei.c | de = (struct ext_dir_entry *) ((char *) de + de->rec_len); |
de | 161 | fs/ext/namei.c | struct ext_dir_entry * de; |
de | 171 | fs/ext/namei.c | if (!(bh = ext_find_entry(dir,name,len,&de,NULL,NULL))) { |
de | 175 | fs/ext/namei.c | ino = de->inode; |
de | 202 | fs/ext/namei.c | struct ext_dir_entry * de, * de1; |
de | 223 | fs/ext/namei.c | de = (struct ext_dir_entry *) bh->b_data; |
de | 225 | fs/ext/namei.c | if ((char *)de >= BLOCK_SIZE+bh->b_data && offset < dir->i_size) { |
de | 239 | fs/ext/namei.c | de = (struct ext_dir_entry *) bh->b_data; |
de | 249 | fs/ext/namei.c | de->inode = 0; |
de | 250 | fs/ext/namei.c | de->rec_len = BLOCK_SIZE |
de | 252 | fs/ext/namei.c | de->name_len = 0; |
de | 253 | fs/ext/namei.c | offset += de->rec_len; |
de | 254 | fs/ext/namei.c | dir->i_size += de->rec_len; |
de | 269 | fs/ext/namei.c | de = (struct ext_dir_entry *) bh->b_data; |
de | 272 | fs/ext/namei.c | de->inode=0; |
de | 273 | fs/ext/namei.c | de->rec_len = rec_len; |
de | 275 | fs/ext/namei.c | dir->i_size += de->rec_len; |
de | 279 | fs/ext/namei.c | if (!de->inode && de->rec_len >= rec_len) { |
de | 280 | fs/ext/namei.c | if (de->rec_len > rec_len |
de | 281 | fs/ext/namei.c | && de->rec_len - rec_len >= EXT_DIR_MIN_SIZE) { |
de | 286 | fs/ext/namei.c | de1 = (struct ext_dir_entry *) ((char *) de + rec_len); |
de | 288 | fs/ext/namei.c | de1->rec_len = de->rec_len - rec_len; |
de | 290 | fs/ext/namei.c | de->rec_len = rec_len; |
de | 293 | fs/ext/namei.c | de->name_len = namelen; |
de | 295 | fs/ext/namei.c | de->name[i]=/*(i<namelen)?*/get_fs_byte(name+i)/*:0*/; |
de | 297 | fs/ext/namei.c | *res_dir = de; |
de | 300 | fs/ext/namei.c | offset += de->rec_len; |
de | 301 | fs/ext/namei.c | de = (struct ext_dir_entry *) ((char *) de + de->rec_len); |
de | 312 | fs/ext/namei.c | struct ext_dir_entry * de; |
de | 325 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
de | 333 | fs/ext/namei.c | de->inode = inode->i_ino; |
de | 345 | fs/ext/namei.c | struct ext_dir_entry * de; |
de | 349 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
de | 384 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
de | 392 | fs/ext/namei.c | de->inode = inode->i_ino; |
de | 404 | fs/ext/namei.c | struct ext_dir_entry * de; |
de | 406 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
de | 439 | fs/ext/namei.c | de = (struct ext_dir_entry *) dir_block->b_data; |
de | 440 | fs/ext/namei.c | de->inode=inode->i_ino; |
de | 441 | fs/ext/namei.c | de->rec_len=16; |
de | 442 | fs/ext/namei.c | de->name_len=1; |
de | 443 | fs/ext/namei.c | strcpy(de->name,"."); |
de | 445 | fs/ext/namei.c | de = (struct ext_dir_entry *) ((char *) de + de->rec_len); |
de | 446 | fs/ext/namei.c | de->inode = dir->i_ino; |
de | 447 | fs/ext/namei.c | de->rec_len=16; |
de | 448 | fs/ext/namei.c | de->name_len=2; |
de | 449 | fs/ext/namei.c | strcpy(de->name,".."); |
de | 455 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
de | 462 | fs/ext/namei.c | de->inode = inode->i_ino; |
de | 481 | fs/ext/namei.c | struct ext_dir_entry * de, * de1; |
de | 489 | fs/ext/namei.c | de = (struct ext_dir_entry *) bh->b_data; |
de | 490 | fs/ext/namei.c | de1 = (struct ext_dir_entry *) ((char *) de + de->rec_len); |
de | 491 | fs/ext/namei.c | if (de->inode != inode->i_ino || !de1->inode || |
de | 492 | fs/ext/namei.c | strcmp(".",de->name) || strcmp("..",de1->name)) { |
de | 497 | fs/ext/namei.c | offset = de->rec_len + de1->rec_len; |
de | 498 | fs/ext/namei.c | de = (struct ext_dir_entry *) ((char *) de1 + de1->rec_len); |
de | 500 | fs/ext/namei.c | if ((void *) de >= (void *) (bh->b_data+BLOCK_SIZE)) { |
de | 509 | fs/ext/namei.c | de = (struct ext_dir_entry *) bh->b_data; |
de | 511 | fs/ext/namei.c | if (de->inode) { |
de | 515 | fs/ext/namei.c | offset += de->rec_len; |
de | 516 | fs/ext/namei.c | de = (struct ext_dir_entry *) ((char *) de + de->rec_len); |
de | 522 | fs/ext/namei.c | static inline void ext_merge_entries (struct ext_dir_entry * de, |
de | 526 | fs/ext/namei.c | de->rec_len += nde->rec_len; |
de | 528 | fs/ext/namei.c | pde->rec_len += de->rec_len; |
de | 536 | fs/ext/namei.c | struct ext_dir_entry * de, * pde, * nde; |
de | 539 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,&pde,&nde); |
de | 544 | fs/ext/namei.c | if (!(inode = iget(dir->i_dev, de->inode))) |
de | 567 | fs/ext/namei.c | de->inode = 0; |
de | 568 | fs/ext/namei.c | de->name_len = 0; |
de | 569 | fs/ext/namei.c | ext_merge_entries (de, pde, nde); |
de | 589 | fs/ext/namei.c | struct ext_dir_entry * de, * pde, * nde; |
de | 593 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,&pde,&nde); |
de | 596 | fs/ext/namei.c | if (!(inode = iget(dir->i_dev, de->inode))) |
de | 610 | fs/ext/namei.c | de->inode = 0; |
de | 611 | fs/ext/namei.c | de->name_len = 0; |
de | 612 | fs/ext/namei.c | ext_merge_entries (de, pde, nde); |
de | 627 | fs/ext/namei.c | struct ext_dir_entry * de; |
de | 662 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
de | 671 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
de | 679 | fs/ext/namei.c | de->inode = inode->i_ino; |
de | 689 | fs/ext/namei.c | struct ext_dir_entry * de; |
de | 697 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
de | 704 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
de | 710 | fs/ext/namei.c | de->inode = oldinode->i_ino; |
de | 55 | fs/minix/dir.c | struct minix_dir_entry * de; |
de | 68 | fs/minix/dir.c | de = (struct minix_dir_entry *) (offset + bh->b_data); |
de | 72 | fs/minix/dir.c | if (de->inode) { |
de | 74 | fs/minix/dir.c | if (c = de->name[i]) |
de | 79 | fs/minix/dir.c | put_fs_long(de->inode,&dirent->d_ino); |
de | 86 | fs/minix/dir.c | de++; |
de | 32 | fs/minix/namei.c | static int minix_match(int len,const char * name,struct minix_dir_entry * de) |
de | 36 | fs/minix/namei.c | if (!de || !de->inode || len > MINIX_NAME_LEN) |
de | 39 | fs/minix/namei.c | if (!len && (de->name[0]=='.') && (de->name[1]=='\0')) |
de | 41 | fs/minix/namei.c | if (len < MINIX_NAME_LEN && de->name[len]) |
de | 47 | fs/minix/namei.c | :"0" (0),"S" ((long) name),"D" ((long) de->name),"c" (len) |
de | 66 | fs/minix/namei.c | struct minix_dir_entry * de; |
de | 84 | fs/minix/namei.c | de = (struct minix_dir_entry *) bh->b_data; |
de | 86 | fs/minix/namei.c | if ((char *)de >= BLOCK_SIZE+bh->b_data) { |
de | 94 | fs/minix/namei.c | de = (struct minix_dir_entry *) bh->b_data; |
de | 96 | fs/minix/namei.c | if (minix_match(namelen,name,de)) { |
de | 97 | fs/minix/namei.c | *res_dir = de; |
de | 100 | fs/minix/namei.c | de++; |
de | 111 | fs/minix/namei.c | struct minix_dir_entry * de; |
de | 121 | fs/minix/namei.c | if (!(bh = minix_find_entry(dir,name,len,&de))) { |
de | 125 | fs/minix/namei.c | ino = de->inode; |
de | 150 | fs/minix/namei.c | struct minix_dir_entry * de; |
de | 169 | fs/minix/namei.c | de = (struct minix_dir_entry *) bh->b_data; |
de | 171 | fs/minix/namei.c | if ((char *)de >= BLOCK_SIZE+bh->b_data) { |
de | 181 | fs/minix/namei.c | de = (struct minix_dir_entry *) bh->b_data; |
de | 184 | fs/minix/namei.c | de->inode=0; |
de | 189 | fs/minix/namei.c | if (!de->inode) { |
de | 192 | fs/minix/namei.c | de->name[i]=(i<namelen)?get_fs_byte(name+i):0; |
de | 194 | fs/minix/namei.c | *res_dir = de; |
de | 197 | fs/minix/namei.c | de++; |
de | 209 | fs/minix/namei.c | struct minix_dir_entry * de; |
de | 222 | fs/minix/namei.c | bh = minix_add_entry(dir,name,len,&de); |
de | 230 | fs/minix/namei.c | de->inode = inode->i_ino; |
de | 242 | fs/minix/namei.c | struct minix_dir_entry * de; |
de | 246 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
de | 281 | fs/minix/namei.c | bh = minix_add_entry(dir,name,len,&de); |
de | 289 | fs/minix/namei.c | de->inode = inode->i_ino; |
de | 301 | fs/minix/namei.c | struct minix_dir_entry * de; |
de | 303 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
de | 332 | fs/minix/namei.c | de = (struct minix_dir_entry *) dir_block->b_data; |
de | 333 | fs/minix/namei.c | de->inode=inode->i_ino; |
de | 334 | fs/minix/namei.c | strcpy(de->name,"."); |
de | 335 | fs/minix/namei.c | de++; |
de | 336 | fs/minix/namei.c | de->inode = dir->i_ino; |
de | 337 | fs/minix/namei.c | strcpy(de->name,".."); |
de | 343 | fs/minix/namei.c | bh = minix_add_entry(dir,name,len,&de); |
de | 350 | fs/minix/namei.c | de->inode = inode->i_ino; |
de | 368 | fs/minix/namei.c | struct minix_dir_entry * de; |
de | 376 | fs/minix/namei.c | de = (struct minix_dir_entry *) bh->b_data; |
de | 377 | fs/minix/namei.c | if (de[0].inode != inode->i_ino || !de[1].inode || |
de | 378 | fs/minix/namei.c | strcmp(".",de[0].name) || strcmp("..",de[1].name)) { |
de | 383 | fs/minix/namei.c | de += 2; |
de | 385 | fs/minix/namei.c | if ((void *) de >= (void *) (bh->b_data+BLOCK_SIZE)) { |
de | 394 | fs/minix/namei.c | de = (struct minix_dir_entry *) bh->b_data; |
de | 396 | fs/minix/namei.c | if (de->inode) { |
de | 400 | fs/minix/namei.c | de++; |
de | 412 | fs/minix/namei.c | struct minix_dir_entry * de; |
de | 415 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
de | 420 | fs/minix/namei.c | if (!(inode = iget(dir->i_dev, de->inode))) |
de | 443 | fs/minix/namei.c | de->inode = 0; |
de | 463 | fs/minix/namei.c | struct minix_dir_entry * de; |
de | 467 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
de | 470 | fs/minix/namei.c | if (!(inode = iget(dir->i_dev, de->inode))) |
de | 484 | fs/minix/namei.c | de->inode = 0; |
de | 499 | fs/minix/namei.c | struct minix_dir_entry * de; |
de | 534 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
de | 543 | fs/minix/namei.c | bh = minix_add_entry(dir,name,len,&de); |
de | 551 | fs/minix/namei.c | de->inode = inode->i_ino; |
de | 561 | fs/minix/namei.c | struct minix_dir_entry * de; |
de | 569 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
de | 576 | fs/minix/namei.c | bh = minix_add_entry(dir,name,len,&de); |
de | 582 | fs/minix/namei.c | de->inode = oldinode->i_ino; |
de | 73 | fs/msdos/dir.c | struct msdos_dir_entry *de; |
de | 91 | fs/msdos/dir.c | while ((ino = msdos_get_entry(inode,&filp->f_pos,&bh,&de)) > -1) { |
de | 92 | fs/msdos/dir.c | if (de->name[0] && ((unsigned char *) (de->name))[0] != |
de | 93 | fs/msdos/dir.c | DELETED_FLAG && !(de->attr & ATTR_VOLUME)) { |
de | 95 | fs/msdos/dir.c | if (!(c = de->name[i])) break; |
de | 101 | fs/msdos/dir.c | if (de->ext[0] && de->ext[0] != ' ') { |
de | 105 | fs/msdos/dir.c | if (!(c = de->ext[i2])) break; |
de | 113 | fs/msdos/dir.c | if (!strcmp(de->name,MSDOS_DOT)) |
de | 115 | fs/msdos/dir.c | else if (!strcmp(de->name,MSDOS_DOTDOT)) |
de | 212 | fs/msdos/misc.c | struct msdos_dir_entry **de) |
de | 228 | fs/msdos/misc.c | *de = (struct msdos_dir_entry *) (data+(offset & |
de | 243 | fs/msdos/misc.c | struct msdos_dir_entry *de; |
de | 248 | fs/msdos/misc.c | while ((*ino = msdos_get_entry(dir,&pos,res_bh,&de)) > -1) { |
de | 250 | fs/msdos/misc.c | if (de->name[0] && ((unsigned char *) (de->name))[0] |
de | 251 | fs/msdos/misc.c | != DELETED_FLAG && !(de->attr & ATTR_VOLUME) && |
de | 252 | fs/msdos/misc.c | !strncmp(de->name,name,MSDOS_NAME)) break; |
de | 254 | fs/msdos/misc.c | else if (!de->name[0] || ((unsigned char *) (de->name))[0] == |
de | 270 | fs/msdos/misc.c | *res_de = de; |
de | 91 | fs/msdos/namei.c | struct buffer_head **bh,struct msdos_dir_entry **de,int *ino) |
de | 98 | fs/msdos/namei.c | return msdos_scan(dir,msdos_name,bh,de,ino); |
de | 106 | fs/msdos/namei.c | struct msdos_dir_entry *de; |
de | 128 | fs/msdos/namei.c | if ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) { |
de | 160 | fs/msdos/namei.c | struct msdos_dir_entry *de; |
de | 163 | fs/msdos/namei.c | if ((res = msdos_scan(dir,NULL,&bh,&de,&ino)) < 0) { |
de | 166 | fs/msdos/namei.c | if ((res = msdos_scan(dir,NULL,&bh,&de,&ino)) < 0) return res; |
de | 168 | fs/msdos/namei.c | memcpy(de->name,name,MSDOS_NAME); |
de | 169 | fs/msdos/namei.c | de->attr = is_dir ? ATTR_DIR : ATTR_ARCH; |
de | 170 | fs/msdos/namei.c | de->start = 0; |
de | 171 | fs/msdos/namei.c | date_unix2dos(CURRENT_TIME,&de->time,&de->date); |
de | 172 | fs/msdos/namei.c | de->size = 0; |
de | 188 | fs/msdos/namei.c | struct msdos_dir_entry *de; |
de | 199 | fs/msdos/namei.c | if (msdos_scan(dir,msdos_name,&bh,&de,&ino) >= 0) { |
de | 215 | fs/msdos/namei.c | struct msdos_dir_entry *de; |
de | 226 | fs/msdos/namei.c | if (msdos_scan(dir,msdos_name,&bh,&de,&ino) >= 0) { |
de | 268 | fs/msdos/namei.c | struct msdos_dir_entry *de,*dde; |
de | 275 | fs/msdos/namei.c | if ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) goto rmdir_done; |
de | 297 | fs/msdos/namei.c | de->name[0] = DELETED_FLAG; |
de | 312 | fs/msdos/namei.c | struct msdos_dir_entry *de; |
de | 317 | fs/msdos/namei.c | if ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) |
de | 330 | fs/msdos/namei.c | de->name[0] = DELETED_FLAG; |
de | 96 | fs/pipe.c | static int pipe_readdir(struct inode * inode, struct file * file, struct dirent * de, int count) |
de | 83 | include/linux/math_emu.h | int de:1; |
de | 120 | include/linux/msdos_fs.h | struct msdos_dir_entry **de); |