Home | History | Annotate | Download | only in genext2fs

Lines Matching refs:directory

47 // 			only in the first group; directory names
180 #define EXT2_UNDEL_DIR_INO 6 // Undelete directory inode
208 #define FM_IFDIR 0040000 // directory
495 udecl32(i_dir_acl) /* Directory access control list */ \
536 } directory;
647 swap_dir(directory *dir)
1246 // link an entry (inode #) to a directory
1253 directory *d;
1260 error_msg_and_die("can't add '%s' to a non-directory", name);
1266 reclen = sizeof(directory) + rndup(nlen, 4);
1274 for(d = (directory*)b; (int8*)d + sizeof(*d) < (int8*)b + BLOCKSIZE; d = (directory*)((int8*)d + d->d_rec_len))
1287 if(d->d_rec_len >= (sizeof(directory) + rndup(d->d_name_len, 4) + reclen))
1290 d->d_rec_len = sizeof(directory) + rndup(d->d_name_len, 4);
1292 d = (directory*) (((int8*)d) + d->d_rec_len);
1303 // we found no free entry in the directory, so we add a block
1306 d = (directory*)b;
1318 // find an entry in a directory
1328 directory *d;
1331 for(d = (directory*)b; (int8*)d + sizeof(*d) < (int8*)b + BLOCKSIZE; d = (directory*)((int8*)d + d->d_rec_len))
1411 // make a full-fledged directory (i.e. with "." & "..")
1494 d Directory
1502 Regular files must exist in the target root directory. If a char,
1503 block, fifo, or directory does not exist, it will be created.
1557 error_msg("device table line %d skipped: can't find directory '%s' to create '%s''", lineno, dir, name);
1914 directory *d;
1917 for(d = (directory*)b; (int8*)d + sizeof(*d) < (int8*)b + BLOCKSIZE; d = (directory*)((int8*)d + swab16(d->d_rec_len)))
1948 directory *d;
1951 for(d = (directory*)b; (int8*)d + sizeof(*d) < (int8*)b + BLOCKSIZE; d = (directory*)((int8*)d + d->d_rec_len))
1964 directory *d;
2074 // make root inode and directory
2076 /* Also increment the directory count for group 0 */
2089 d = (directory*)b;
2091 d->d_rec_len = sizeof(directory)+4;
2094 d = (directory*)(b + d->d_rec_len);
2096 d->d_rec_len = BLOCKSIZE - (sizeof(directory)+4);
2101 // make lost+found directory and reserve blocks
2106 ((directory*)b)->d_rec_len = BLOCKSIZE;
2107 /* We run into problems with e2fsck if directory lost+found grows
2213 // print an inode as a directory
2220 printf("directory for inode %d:\n", nod);
2223 directory *d;
2226 for(d = (directory*)b; (int8*)d + sizeof(*d) < (int8*)b + BLOCKSIZE; d = (directory*)((int8*)d + d->d_rec_len))
2336 s = "undelete directory";
2469 error_msg_and_die("%s is neither a file nor a directory", dopt[i]);
2486 " -d, --root <directory>\n"