/external/e2fsprogs/lib/ext2fs/ |
H A D | valid_blk.c | 2 * valid_blk.c --- does the inode have valid blocks? 24 * This function returns 1 if the inode's block entries actually 27 int ext2fs_inode_has_valid_blocks(struct ext2_inode *inode) argument 33 if (!LINUX_S_ISDIR(inode->i_mode) && !LINUX_S_ISREG(inode->i_mode) && 34 !LINUX_S_ISLNK(inode->i_mode)) 41 if (LINUX_S_ISLNK (inode->i_mode)) { 42 if (inode->i_file_acl == 0) { 44 if (inode->i_blocks == 0) 48 if (inode [all...] |
H A D | i_block.c | 29 errcode_t ext2fs_iblk_add_blocks(ext2_filsys fs, struct ext2_inode *inode, argument 32 unsigned long long b = inode->i_blocks; 36 !(inode->i_flags & EXT4_HUGE_FILE_FL)) 43 b += ((long long) inode->osd2.linux2.l_i_blocks_hi) << 32; 44 inode->osd2.linux2.l_i_blocks_hi = b >> 32; 47 inode->i_blocks = b & 0xFFFFFFFF; 51 errcode_t ext2fs_iblk_sub_blocks(ext2_filsys fs, struct ext2_inode *inode, argument 54 unsigned long long b = inode->i_blocks; 58 !(inode->i_flags & EXT4_HUGE_FILE_FL)) 68 b += ((long long) inode 75 ext2fs_iblk_set(ext2_filsys fs, struct ext2_inode *inode, blk64_t b) argument [all...] |
H A D | mkdir.c | 37 struct ext2_inode parent_inode, inode; local 46 * Allocate an inode, if necessary 70 * Get the parent's inode, if necessary 80 * Create the inode structure.... 82 memset(&inode, 0, sizeof(struct ext2_inode)); 83 inode.i_mode = LINUX_S_IFDIR | (0777 & ~fs->umask); 84 inode.i_uid = inode.i_gid = 0; 85 ext2fs_iblk_set(fs, &inode, 1); 86 inode [all...] |
H A D | lookup.c | 24 ext2_ino_t *inode; member in struct:lookup_struct 43 *ls->inode = dirent->inode; 50 int namelen, char *buf, ext2_ino_t *inode) 59 ls.inode = inode; 49 ext2fs_lookup(ext2_filsys fs, ext2_ino_t dir, const char *name, int namelen, char *buf, ext2_ino_t *inode) argument
|
H A D | unlink.c | 24 ext2_ino_t inode; member in struct:link_struct 51 if (ls->inode) { 52 if (dirent->inode != ls->inode) 55 if (!dirent->inode) 62 dirent->inode = 0; 87 ls.inode = ino;
|
H A D | bmap.c | 29 struct ext2_inode *inode, 33 #define inode_bmap(inode, nr) ((inode)->i_block[(nr)]) 132 errcode_t ext2fs_bmap2(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode, argument 150 /* Read inode structure if necessary */ 151 if (!inode) { 155 inode = &inode_buf; 159 if (inode->i_flags & EXT4_EXTENTS_FL) { 163 retval = ext2fs_extent_open2(fs, ino, inode, &handle); 196 /* Update inode afte 320 ext2fs_bmap(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode, char *block_buf, int bmap_flags, blk_t block, blk_t *phys_blk) argument [all...] |
H A D | namei.c | 28 ext2_ino_t inode, int link_count, 37 printf("follow_link: root=%lu, dir=%lu, inode=%lu, lc=%d\n", 38 root, dir, inode, link_count); 41 retval = ext2fs_read_inode (fs, inode, &ei); 44 *res_inode = inode; 71 * directory and the root directory, and returns the inode of the 84 ext2_ino_t inode; local 101 retval = ext2fs_lookup (fs, dir, thisname, len, buf, &inode); 103 retval = follow_link (fs, root, dir, inode, 119 ext2_ino_t dir, inode; local 27 follow_link(ext2_filsys fs, ext2_ino_t root, ext2_ino_t dir, ext2_ino_t inode, int link_count, char *buf, ext2_ino_t *res_inode) argument 150 ext2fs_namei(ext2_filsys fs, ext2_ino_t root, ext2_ino_t cwd, const char *name, ext2_ino_t *inode) argument 169 ext2fs_namei_follow(ext2_filsys fs, ext2_ino_t root, ext2_ino_t cwd, const char *name, ext2_ino_t *inode) argument 188 ext2fs_follow_link(ext2_filsys fs, ext2_ino_t root, ext2_ino_t cwd, ext2_ino_t inode, ext2_ino_t *res_inode) argument [all...] |
H A D | link.c | 25 ext2_ino_t inode; member in struct:link_struct 56 (next->inode == 0) && 70 if (dirent->inode) { 80 next->inode = 0; 94 dirent->inode = ls->inode; 116 struct ext2_inode inode; local 126 ls.inode = ino; 143 if ((retval = ext2fs_read_inode(fs, dir, &inode)) != 0) 146 if (inode [all...] |
H A D | res_gdt.c | 58 * uses before we can add them to the resize inode (which has to come 59 * after the creation of the inode table). 65 struct ext2_inode inode; local 80 retval = ext2fs_read_inode(fs, EXT2_RESIZE_INO, &inode); 86 if ((dindir_blk = inode.i_block[EXT2_DIND_BLOCK])) { 101 inode.i_mode = LINUX_S_IFREG | 0600; 102 inode.i_links_count = 1; 103 inode.i_block[EXT2_DIND_BLOCK] = dindir_blk; 104 ext2fs_iblk_set(fs, &inode, 1); 112 inode [all...] |
/external/kernel-headers/original/linux/ |
H A D | coda_fs_i.h | 17 * coda fs inode data 23 unsigned int c_mapcount; /* nr of times this inode is mapped */ 27 struct inode vfs_inode; 43 #define C_VATTR 0x1 /* Validity of vattr in inode */ 48 int coda_cnode_make(struct inode **, struct CodaFid *, struct super_block *); 49 struct inode *coda_iget(struct super_block *sb, struct CodaFid *fid, struct coda_vattr *attr); 50 int coda_cnode_makectl(struct inode **inode, struct super_block *sb); 51 struct inode *coda_fid_to_inode(struct CodaFid *fid, struct super_block *sb); 52 void coda_replace_fid(struct inode *, struc [all...] |
H A D | inotify.h | 72 * struct inotify_watch - represents a watch request on a specific inode 75 * i_list, mask are protected by inode->inotify_mutex of the associated inode. 76 * ih, inode, and wd are never written to once the watch is created. 84 struct list_head i_list; /* entry in inode's list */ 87 struct inode *inode; /* associated inode */ member in struct:inotify_watch 94 const char *, struct inode *); 102 extern void inotify_d_instantiate(struct dentry *, struct inode *); 132 inotify_d_instantiate(struct dentry *dentry, struct inode *inode) argument 141 inotify_inode_queue_event(struct inode *inode, __u32 mask, __u32 cookie, const char *filename, struct inode *n_inode) argument 158 inotify_inode_is_dead(struct inode *inode) argument 180 inotify_find_watch(struct inotify_handle *ih, struct inode *inode, struct inotify_watch **watchp) argument 186 inotify_find_update_watch(struct inotify_handle *ih, struct inode *inode, u32 mask) argument 192 inotify_add_watch(struct inotify_handle *ih, struct inotify_watch *watch, struct inode *inode, __u32 mask) argument [all...] |
H A D | fs.h | 150 * Note that nosuid etc flags are inode-specific: setting some file-system 162 #define __IS_FLG(inode,flg) ((inode)->i_sb->s_flags & (flg)) 164 #define IS_RDONLY(inode) ((inode)->i_sb->s_flags & MS_RDONLY) 165 #define IS_SYNC(inode) (__IS_FLG(inode, MS_SYNCHRONOUS) || \ 166 ((inode)->i_flags & S_SYNC)) 167 #define IS_DIRSYNC(inode) (__IS_FLG(inode, MS_SYNCHRONOU 497 struct inode { struct 594 i_size_read(struct inode *inode) argument 618 i_size_write(struct inode *inode, loff_t i_size) argument 633 iminor(struct inode *inode) argument 638 imajor(struct inode *inode) argument 1166 mark_inode_dirty(struct inode *inode) argument 1171 mark_inode_dirty_sync(struct inode *inode) argument 1176 inode_inc_link_count(struct inode *inode) argument 1182 inode_dec_link_count(struct inode *inode) argument 1389 locks_verify_locked(struct inode *inode) argument 1398 locks_verify_truncate(struct inode *inode, struct file *filp, loff_t size) argument 1412 break_lease(struct inode *inode, unsigned int mode) argument 1521 invalidate_remote_inode(struct inode *inode) argument 1557 put_write_access(struct inode * inode) argument 1606 struct inode *inode = iget_locked(sb, ino); local 1625 insert_inode_hash(struct inode *inode) argument 1726 blockdev_direct_IO(int rw, struct kiocb *iocb, struct inode *inode, struct block_device *bdev, const struct iovec *iov, loff_t offset, unsigned long nr_segs, get_block_t get_block, dio_iodone_t end_io) argument 1735 blockdev_direct_IO_no_locking(int rw, struct kiocb *iocb, struct inode *inode, struct block_device *bdev, const struct iovec *iov, loff_t offset, unsigned long nr_segs, get_block_t get_block, dio_iodone_t end_io) argument 1744 blockdev_direct_IO_own_locking(int rw, struct kiocb *iocb, struct inode *inode, struct block_device *bdev, const struct iovec *iov, loff_t offset, unsigned long nr_segs, get_block_t get_block, dio_iodone_t end_io) argument [all...] |
H A D | msdos_fs.h | 265 * MS-DOS file system inode data in memory 280 struct inode vfs_inode; 288 static inline struct msdos_inode_info *MSDOS_I(struct inode *inode) argument 290 return container_of(inode, struct msdos_inode_info, vfs_inode); 293 /* Return the FAT attribute byte for this inode */ 294 static inline u8 fat_attr(struct inode *inode) argument 296 return ((inode->i_mode & S_IWUGO) ? ATTR_NONE : ATTR_RO) | 297 (S_ISDIR(inode [all...] |
H A D | xattr.h | 35 size_t (*list)(struct inode *inode, char *list, size_t list_size, 37 int (*get)(struct inode *inode, const char *name, void *buffer, 39 int (*set)(struct inode *inode, const char *name, const void *buffer,
|
/external/e2fsprogs/debugfs/ |
H A D | ls.c | 52 struct ext2_inode inode; variable in typeref:struct:ext2_inode 67 ino = dirent->inode; 77 if (ino && debugfs_read_inode(ino, &inode, name)) return 0; 78 fprintf(ls->f,"/%u/%06o/%d/%d/%s/",ino,inode.i_mode,inode.i_uid, inode.i_gid,name); 79 if (LINUX_S_ISDIR(inode.i_mode)) 82 fprintf(ls->f, "%lld/", inode.i_size | ((__u64)inode.i_size_high << 32)); 87 if (debugfs_read_inode(ino, &inode, nam 125 ext2_ino_t inode; local [all...] |
H A D | dump.c | 2 * dump.c --- dump the contents of an inode out to a file 67 static void fix_perms(const char *cmd, const struct ext2_inode *inode, argument 74 i = fchmod(fd, mode_xlate(inode->i_mode)); 76 i = chmod(name, mode_xlate(inode->i_mode)); 81 i = chown(name, inode->i_uid, inode->i_gid); 84 i = fchown(fd, inode->i_uid, inode->i_gid); 86 i = chown(name, inode->i_uid, inode 104 struct ext2_inode inode; local 144 ext2_ino_t inode; local 188 rdump_symlink(ext2_ino_t ino, struct ext2_inode *inode, const char *fullname) argument 242 rdump_inode(ext2_ino_t ino, struct ext2_inode *inode, const char *name, const char *dumproot) argument 299 struct ext2_inode inode; local 317 struct ext2_inode inode; local 355 ext2_ino_t inode; local [all...] |
H A D | debugfs.c | 91 com_err(device, 0, "catastrophic mode - not reading inode or group bitmaps"); 95 com_err(device, retval, "while reading inode bitmap"); 346 "inode bitmap at %u, " 347 "inode table at %u\n" 356 gdp->bg_free_inodes_count != 1 ? "inodes" : "inode", 363 gdp->bg_itable_unused != 1 ? "inodes":"inode"); 493 struct ext2_inode_large *inode) 500 fprintf(out, "Size of extra inode fields: %u\n", inode->i_extra_isize); 501 if (inode 490 internal_dump_inode_extra(FILE *out, const char *prefix EXT2FS_ATTR((unused)), ext2_ino_t inode_num EXT2FS_ATTR((unused)), struct ext2_inode_large *inode) argument 537 dump_blocks(FILE *f, const char *prefix, ext2_ino_t inode) argument 688 internal_dump_inode(FILE *out, const char *prefix, ext2_ino_t inode_num, struct ext2_inode *inode, int do_dump_blocks) argument 816 dump_inode(ext2_ino_t inode_num, struct ext2_inode *inode) argument 827 ext2_ino_t inode; local 858 struct ext2_inode inode; local 921 ext2_ino_t inode; local 937 ext2_ino_t inode; local 952 ext2_ino_t inode; local 966 ext2_ino_t inode; local 980 ext2_ino_t inode; local 1114 struct ext2_inode inode; local 1191 ext2_ino_t inode; local 1272 struct ext2_inode inode; local 1346 struct ext2_inode inode; local 1554 struct ext2_inode inode; local 1631 struct ext2_inode inode; local 1765 kill_file_by_inode(ext2_ino_t inode) argument 1799 struct ext2_inode inode; local 1860 struct ext2_inode inode; local 1926 ext2_ino_t inode; local [all...] |
H A D | icheck.c | 30 ext2_ino_t inode; member in struct:block_walk_struct 45 bw->barray[i].ino = bw->inode; 62 struct ext2_inode inode; local 76 "while allocating inode info array"); 96 com_err("icheck", retval, "while opening inode scan"); 101 retval = ext2fs_get_next_inode(scan, &ino, &inode); 104 com_err("icheck", retval, "while starting inode scan"); 109 if (!inode.i_links_count) 112 bw.inode = ino; 114 if (inode [all...] |
/external/e2fsprogs/e2fsck/ |
H A D | pass4.c | 21 * This routine is called when an inode is not connected to the 28 struct ext2_inode *inode) 36 e2fsck_read_inode_full(ctx, i, inode,EXT2_INODE_SIZE(fs->super), 38 extra_size = ((struct ext2_inode_large *)inode)->i_extra_isize; 40 e2fsck_read_inode(ctx, i, inode, "pass4: disconnect_inode"); 44 pctx.inode = inode; 47 eamagic = *(__u32 *)(((char *)inode) +EXT2_GOOD_OLD_INODE_SIZE + 55 if (!inode->i_blocks && eamagic != EXT2_EXT_ATTR_MAGIC && 56 (LINUX_S_ISREG(inode 27 disconnect_inode(e2fsck_t ctx, ext2_ino_t i, struct ext2_inode *inode) argument 93 struct ext2_inode *inode; local [all...] |
H A D | message.c | 19 * %Di <dirent>->ino inode number 24 * %d <dir> inode number 26 * %i <ino> inode number 27 * %Is <inode> -> i_size 28 * %IS <inode> -> i_extra_isize 29 * %Ib <inode> -> i_blocks 30 * %Il <inode> -> i_links_count 31 * %Im <inode> -> i_mode 32 * %IM <inode> -> i_mtime 33 * %IF <inode> 264 struct ext2_inode *inode; local [all...] |
H A D | pass1.c | 2 * pass1.c -- pass #1 of e2fsck: sequential scan of the inode table 12 * and applies the following tests to each inode: 14 * - The mode field of the inode must be legal. 15 * - The size and block count fields of the inode are correct. 16 * - A data block must not be used by another inode 31 * other passes should not need to read in the inode information 34 * inode to fix it.) 89 struct ext2_inode *inode; member in struct:process_block_struct 97 struct ext2_inode inode; member in struct:process_inode_block 125 * Check to make sure a device inode i 133 struct ext2_inode *inode) struct 167 e2fsck_pass1_check_symlink(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode, char *buf) argument 257 struct ext2_inode *inode = pctx->inode; local 273 struct ext2_inode_large *inode; local 353 struct ext2_inode_large *inode; local 403 struct ext2_inode *inode = pctx->inode; local 549 struct ext2_inode *inode; local 1409 struct ext2_inode *inode = pctx->inode; local 1586 handle_htree(e2fsck_t ctx, struct problem_context *pctx, ext2_ino_t ino, struct ext2_inode *inode, char *block_buf) argument 1643 e2fsck_clear_inode(e2fsck_t ctx, ext2_ino_t ino, struct ext2_inode *inode, int restart_flag, const char *source) argument 1820 struct ext2_inode *inode = pctx->inode; local 1854 ext2fs_inode_i_blocks(ext2_filsys fs, struct ext2_inode *inode) argument 1873 struct ext2_inode *inode = pctx->inode; local 2630 pass1_read_inode(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode) argument 2641 pass1_write_inode(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode) argument [all...] |
H A D | swapfs.c | 26 struct ext2_inode *inode; member in struct:swap_block_struct 59 if (*block_nr == sb->inode->i_block[EXT2_IND_BLOCK]) 64 if (*block_nr == sb->inode->i_block[EXT2_DIND_BLOCK]) 69 if (*block_nr == sb->inode->i_block[EXT2_TIND_BLOCK]) 81 struct ext2_inode *inode) 87 sb.inode = inode; 91 if (LINUX_S_ISDIR(inode->i_mode)) 118 struct ext2_inode * inode; local 126 _("while allocating inode buffe 80 swap_inode_blocks(e2fsck_t ctx, ext2_ino_t ino, char *block_buf, struct ext2_inode *inode) argument [all...] |
H A D | pass2.c | 20 * - The inode number in the directory entry should be within 22 * - The inode number should refer to a in-use inode. 23 * - The first entry should be '.', and its inode should be 24 * the inode of the directory. 31 * - The inode numbers of the subdirectories for each directory. 60 * Keeps track of how many times an inode is referenced. 352 if (!dirent->inode) 365 dirent->inode = ino; 373 if (dirent->inode ! 481 struct ext2_inode inode; local 1175 struct ext2_inode inode; local 1233 struct ext2_inode inode; local 1247 struct ext2_inode inode; local 1400 struct ext2_inode inode; local [all...] |
/external/kernel-headers/original/linux/nfsd/ |
H A D | nfsfh.h | 30 * ino/dev of the exported inode. 34 __u32 fb_ino; /* our inode number */ 35 __u32 fb_dirino; /* dir inode number, 0 for directories */ 65 * 0 - 4 byte device id (ms-2-bytes major, ls-2-bytes minor), 4byte inode number 69 * 2 - 4 byte major, 4 byte minor, 4 byte inode number - DEPRECATED 70 * 3 - 4 byte device id, encoded for user-space, 4 byte inode number 78 * 1 - 32bit inode number, 32 bit generation number. 79 * 2 - 32bit inode number, 32 bit generation number, 32 bit parent directory inode number. 141 unsigned char fh_locked; /* inode locke 245 struct inode *inode; local 262 struct inode *inode = fhp->fh_dentry->d_inode; local 303 struct inode *inode; local [all...] |
/external/yaffs2/yaffs2/ |
H A D | yaffs_fs.c | 22 * >> inode->u.generic_ip points to the associated yaffs_Object. 29 * * Michael Fischer for finding the problem with inode inconsistency. 118 static int yaffs_create(struct inode *dir, struct dentry *dentry, int mode, 120 static struct dentry *yaffs_lookup(struct inode *dir, struct dentry *dentry, 123 static int yaffs_create(struct inode *dir, struct dentry *dentry, int mode); 124 static struct dentry *yaffs_lookup(struct inode *dir, struct dentry *dentry); 126 static int yaffs_link(struct dentry *old_dentry, struct inode *dir, 128 static int yaffs_unlink(struct inode *dir, struct dentry *dentry); 129 static int yaffs_symlink(struct inode *dir, struct dentry *dentry, 131 static int yaffs_mkdir(struct inode *di 326 struct inode *inode = NULL; /* NCB 2.5/2.6 needs NULL here */ local 382 yaffs_put_inode(struct inode *inode) argument 391 yaffs_clear_inode(struct inode *inode) argument 430 yaffs_delete_inode(struct inode *inode) argument 551 struct inode *inode; local 666 yaffs_FillInodeFromObject(struct inode *inode, yaffs_Object * obj) argument 772 struct inode *inode; local 805 struct inode *inode; local 861 struct inode *inode = f->f_dentry->d_inode; local 957 struct inode *inode; local 1100 struct inode *inode = old_dentry->d_inode; local 1158 struct inode *inode; local 1250 struct inode *inode = dentry->d_inode; local 1374 yaffs_read_inode(struct inode *inode) argument 1456 struct inode *inode = NULL; local [all...] |