Searched refs:inode (Results 1 - 25 of 156) sorted by relevance

1234567

/external/e2fsprogs/lib/ext2fs/
H A Dvalid_blk.c2 * valid_blk.c --- does the inode have valid blocks?
23 * This function returns 1 if the inode's block entries actually
26 int ext2fs_inode_has_valid_blocks(struct ext2_inode *inode) argument
32 if (!LINUX_S_ISDIR(inode->i_mode) && !LINUX_S_ISREG(inode->i_mode) &&
33 !LINUX_S_ISLNK(inode->i_mode))
40 if (LINUX_S_ISLNK (inode->i_mode)) {
41 if (inode->i_file_acl == 0) {
43 if (inode->i_blocks == 0)
47 if (inode
[all...]
H A Di_block.c29 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 Dmkdir.c37 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 Dlookup.c24 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 Dunlink.c24 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 Dbmap.c29 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 Dnamei.c28 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 Dlink.c25 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 Dres_gdt.c58 * 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...]
H A Dext2_ext_attr.h60 extern int ext2_get_ext_attr(struct inode *, const char *, char *, size_t, int);
61 extern int ext2_set_ext_attr(struct inode *, const char *, char *, size_t, int);
62 extern void ext2_ext_attr_free_inode(struct inode *inode);
/external/kernel-headers/original/linux/
H A Dcoda_fs_i.h17 * 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 Dinotify.h72 * 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 Dfs.h215 #define MS_I_VERSION (1<<23) /* Update inode I_version field */
250 * Note that nosuid etc flags are inode-specific: setting some file-system
262 #define __IS_FLG(inode,flg) ((inode)->i_sb->s_flags & (flg))
264 #define IS_RDONLY(inode) ((inode)->i_sb->s_flags & MS_RDONLY)
265 #define IS_SYNC(inode) (__IS_FLG(inode, MS_SYNCHRONOUS) || \
266 ((inode)->i_flags & S_SYNC))
267 #define IS_DIRSYNC(inode) (__IS_FL
761 struct inode { struct
852 inode_unhashed(struct inode *inode) argument
887 i_size_read(const struct inode *inode) argument
915 i_size_write(struct inode *inode, loff_t i_size) argument
930 iminor(const struct inode *inode) argument
935 imajor(const struct inode *inode) argument
1324 __break_lease(struct inode *inode, unsigned int mode) argument
1329 lease_get_mtime(struct inode *inode, struct timespec *time) argument
1351 lock_may_read(struct inode *inode, loff_t start, unsigned long len) argument
1357 lock_may_write(struct inode *inode, loff_t start, unsigned long len) argument
1783 mark_inode_dirty(struct inode *inode) argument
1788 mark_inode_dirty_sync(struct inode *inode) argument
1798 inode_inc_link_count(struct inode *inode) argument
1804 inode_dec_link_count(struct inode *inode) argument
1818 inode_inc_iversion(struct inode *inode) argument
1945 locks_verify_locked(struct inode *inode) argument
1952 locks_verify_truncate(struct inode *inode, struct file *filp, loff_t size) argument
1966 break_lease(struct inode *inode, unsigned int mode) argument
1973 locks_mandatory_locked(struct inode *inode) argument
1978 locks_mandatory_area(int rw, struct inode *inode, struct file *filp, loff_t offset, size_t count) argument
1985 __mandatory_lock(struct inode *inode) argument
1990 mandatory_lock(struct inode *inode) argument
1995 locks_verify_locked(struct inode *inode) argument
2000 locks_verify_truncate(struct inode *inode, struct file *filp, size_t size) argument
2006 break_lease(struct inode *inode, unsigned int mode) argument
2065 bd_forget(struct inode *inode) argument
2181 invalidate_remote_inode(struct inode *inode) argument
2218 execute_ok(struct inode *inode) argument
2239 get_write_access(struct inode *inode) argument
2245 struct inode *inode = file->f_path.dentry->d_inode; local
2248 put_write_access(struct inode * inode) argument
2258 i_readcount_dec(struct inode *inode) argument
2263 i_readcount_inc(struct inode *inode) argument
2268 i_readcount_dec(struct inode *inode) argument
2272 i_readcount_inc(struct inode *inode) argument
2306 generic_drop_inode(struct inode *inode) argument
2325 lockdep_annotate_inode_mutex_key(struct inode *inode) argument
2341 insert_inode_hash(struct inode *inode) argument
2347 remove_inode_hash(struct inode *inode) argument
2444 blockdev_direct_IO(int rw, struct kiocb *iocb, struct inode *inode, const struct iovec *iov, loff_t offset, unsigned long nr_segs, get_block_t get_block) argument
2453 inode_dio_wait(struct inode *inode) argument
2669 inode_has_no_xattr(struct inode *inode) argument
[all...]
H A Dmsdos_fs.h265 * 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...]
/external/e2fsprogs/debugfs/
H A Dls.c52 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 Ddump.c2 * 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 Ddebugfs.c91 com_err(device, 0, "catastrophic mode - not reading inode or group bitmaps");
95 com_err(device, retval, "while reading inode bitmap");
349 "inode bitmap at %u, "
350 "inode table at %u\n"
359 gdp->bg_free_inodes_count != 1 ? "inodes" : "inode",
366 gdp->bg_itable_unused != 1 ? "inodes":"inode");
496 struct ext2_inode_large *inode)
503 fprintf(out, "Size of extra inode fields: %u\n", inode->i_extra_isize);
504 if (inode
493 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
540 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 Dicheck.c30 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 Dpass4.c21 * 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 Dmessage.c19 * %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 Dpass1.c2 * 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
1414 struct ext2_inode *inode = pctx->inode; local
1591 handle_htree(e2fsck_t ctx, struct problem_context *pctx, ext2_ino_t ino, struct ext2_inode *inode, char *block_buf) argument
1648 e2fsck_clear_inode(e2fsck_t ctx, ext2_ino_t ino, struct ext2_inode *inode, int restart_flag, const char *source) argument
1825 struct ext2_inode *inode = pctx->inode; local
1859 ext2fs_inode_i_blocks(ext2_filsys fs, struct ext2_inode *inode) argument
1878 struct ext2_inode *inode = pctx->inode; local
2648 pass1_read_inode(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode) argument
2659 pass1_write_inode(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode) argument
[all...]
H A Dpass2.c20 * - 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
1180 struct ext2_inode inode; local
1238 struct ext2_inode inode; local
1252 struct ext2_inode inode; local
1405 struct ext2_inode inode; local
[all...]
H A Dpass3.c76 pctx.errcode = ext2fs_allocate_inode_bitmap(fs, _("inode done bitmap"),
138 * This makes sure the root inode is present; if not, we ask if the
145 struct ext2_inode inode; local
153 * If the root inode is not a directory, die here. The
188 * Now let's create the actual data block for the inode
209 * Set up the inode structure
211 memset(&inode, 0, sizeof(inode));
212 inode.i_mode = 040755;
213 inode
360 struct ext2_inode inode; local
506 struct ext2_inode inode; local
555 struct ext2_inode inode; local
756 struct ext2_inode inode; local
[all...]
/external/kernel-headers/original/linux/nfsd/
H A Dnfsfh.h30 * 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 Dyaffs_fs.c22 * >> 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...]

Completed in 960 milliseconds

1234567