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

123

/illumos-gate/usr/src/test/zfs-tests/tests/functional/utils_test/
H A Dutils_test_001_pos.ksh58 inode=`ls -i $TESTDIR/$TESTFILE.0 | awk '{print $1}'`
59 log_mustnot clri /dev/rdsk/$DISK $inode
60 log_mustnot clri -F zfs /dev/rdsk/$DISK $inode
/illumos-gate/usr/src/cmd/ndmpd/tlm/
H A Dtlm_hardlink.c86 NDMP_LOG(LOG_DEBUG, "(2): remove node, inode = %lu",
87 hl->inode);
101 NDMP_LOG(LOG_DEBUG, "no link name, inode = %lu",
102 hl->inode);
115 * Return 0 if a list node has the same inode, and initialize offset and path
120 hardlink_q_get(struct hardlink_q *hl_q, unsigned long inode, argument
126 NDMP_LOG(LOG_DEBUG, "(1): qhead = %p, inode = %lu",
127 hl_q, inode);
134 NDMP_LOG(LOG_DEBUG, "(2): checking, inode = %lu",
135 hl->inode);
158 hardlink_q_add(struct hardlink_q *hl_q, unsigned long inode, unsigned long long offset, char *path, int is_tmp_file) argument
[all...]
/illumos-gate/usr/src/uts/common/sys/fs/
H A Dufs_inode.h69 * There is a unique inode allocated for each active file,
71 * and the root. An inode is `named' by its dev/inumber pair.
72 * Data in icommon is read in from permanent inode on volume.
74 * Each inode has 5 locks associated with it:
79 * i_contents: Protects almost all of the fields in the inode
88 * ih_lock: Protects inode hash chain buckets
89 * ifree_lock: Protects inode freelist
112 * is no relevant inode. There are also cases where i_contents is
114 * because the inode changes do not affect quotas.
140 * The inode structur
239 typedef struct inode { struct
[all...]
H A Dufs_quota.h72 * indexed by user number. The setquota sys call establishes the inode
151 extern struct dquot *getinoquota(struct inode *);
152 extern int chkdq(struct inode *ip, long, int, struct cred *, char **errp,
154 extern int chkiq(struct ufsvfs *, int, struct inode *, uid_t, int,
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_ufs.c61 * searching for a file, if successful, inode will be loaded in INODE
68 grub_ino_t inode = ROOTINO; /* start from root */ local
77 while (inode && *dirname && !isspace(*dirname)) {
78 if (!openi(inode))
88 inode = dlook(inode, fname);
94 /* return 1 only if inode exists and is a regular file */
95 if (! openi(inode))
99 return (inode && ((INODE->ic_smode & IFMT) == IFREG));
148 /* read inode an
150 openi(grub_ino_t inode) argument
[all...]
H A Dfsys_minix.c79 #define INODE_VERSION(inode) inode->i_sb->u.minix_sb.s_version
81 #define INODE_VERSION(inode) (SUPERBLOCK->s_version)
84 * This is the original minix inode layout on disk.
98 * The new minix inode has all the time entries, as well as
101 * now 16-bit. The inode is now 64 bytes instead of 32.
132 __u16 inode; member in struct:minix_dir_entry
200 a physical block (the location in the file system) via an inode. */
294 inode of the file we were trying to look up
301 int ino_blk; /* fs pointer of the inode'
[all...]
H A Dfsys_jfs.c52 #define inode ((dinode_t *)((char *)FSYS_BUF + 8192 + sizeof(dinode_t))) macro
53 #define dtroot ((dtroot_t *)(&inode->di_btroot))
164 dtr = (dtroot_t *)&inode->di_btroot;
168 de_always[0].inumber = inode->di_parent;
169 de_always[1].inumber = inode->di_number;
238 xad = first_extent (inode);
287 di_read (inum, inode);
288 di_size = inode->di_size;
289 di_mode = inode->di_mode;
297 grub_memmove (linkbuf, inode
[all...]
H A Dfsys_xfs.c65 #define inode ((xfs_dinode_t *)((char *)FSYS_BUF + 8192)) macro
66 #define icore (inode->di_core)
216 devread (daddr, offset*xfs.isize, xfs.isize, (char *)inode);
219 (inode->di_u.di_c + sizeof(xfs_bmdr_block_t)
233 xfs.xt = inode->di_u.di_bmx;
322 ? le64(*(xfs_ino_t *)(&inode->di_u.di_dir2sf.hdr.parent))
323 : le32(*(xfs_uint32_t *)(&inode->di_u.di_dir2sf.hdr.parent));
364 (inode->di_u.di_c
416 xfs.dirmax = inode->di_u.di_dir2sf.hdr.count;
417 xfs.i8param = inode
[all...]
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dufsread.c92 static uint8_t inode_type(ufs_ino_t inode);
180 inode_type(ufs_ino_t inode) argument
189 if (!inode)
191 if (inomap != inode) {
193 if (dskread(blkbuf, INO_TO_VBA(&fs, n, inode), DBPERVBLK))
195 n = INO_TO_VBO(n, inode);
210 inomap = inode;
218 fsread_size(ufs_ino_t inode, void *buf, size_t nbyte, size_t *fsizep) argument
236 * Force probe if inode is zero to ensure we have a valid fs, otherwise
240 if (!dsk_meta || inode
361 fsread(ufs_ino_t inode, void *buf, size_t nbyte) argument
[all...]
/illumos-gate/usr/src/cmd/mdb/common/modules/ufs/
H A Dufs.c108 mdb_warn("failed to read inode at %p", addr);
134 inode_t inode; local
137 if (mdb_vread(&inode, sizeof (inode), addr) == -1) {
142 if (id->id_device != 0 && inode.i_dev != id->id_device)
145 if (id->id_inumber != 0 && inode.i_number != id->id_inumber)
157 addr, (u_longlong_t)inode.i_number, inode.i_dev);
168 * Is the inode in the hash chain it should be?
170 if (inohcnt == INOHASH(inode
211 inode(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv) function
214 inode_t inode; local
341 inode_t inode; local
[all...]
/illumos-gate/usr/src/cmd/abi/appcert/scripts/
H A Dabi_index.pl171 # inode is used to identify what file a symlink point to:
172 my $inode;
173 $inode = (stat($path))[1];
174 return unless (defined($inode));
178 if (exists($symlink{$inode})) {
179 $symlink{$inode} .= ":" . $path;
181 $symlink{$inode} = ":" . $path;
185 $inode_hash{$path} = $inode;
378 my $inode = $inode_hash{$path};
380 if ($inode
[all...]
/illumos-gate/usr/src/cmd/fs.d/udfs/fsck/
H A DMakefile33 FSCKOBJS= main.o setup.o utilities.o pass1.o inode.o
78 -cstyle -p inode.c
83 -keywords inode.c
/illumos-gate/usr/src/boot/lib/libstand/
H A Dnandfs.c63 struct nandfs_inode *inode; member in struct:nandfs_node
343 fs->nf_datfile.inode = &fs->nf_sroot.sr_dat;
345 fs->nf_cpfile.inode = &fs->nf_sroot.sr_cpfile;
361 fs->nf_ifile.inode = &fs->nf_checkpoint.cp_ifile_inode;
425 free(node->inode);
461 if (fs->nf_offset >= fs->nf_opened_node->inode->i_size)
494 size = fs->nf_opened_node->inode->i_size;
529 sb->st_size = fs->nf_opened_node->inode->i_size;
530 sb->st_mode = fs->nf_opened_node->inode->i_mode;
531 sb->st_uid = fs->nf_opened_node->inode
606 struct nandfs_inode *inode; local
636 uint64_t i, done, pinode, inode; local
[all...]
/illumos-gate/usr/src/common/fs/
H A Dufsops.c97 openi(fileid_t *filep, ino_t inode) argument
102 filep->fi_inode = get_cache((int)inode);
108 itod(&devp->un_fs.di_fs, inode));
118 filep->fi_inode = (struct inode *)
119 bkmem_alloc(sizeof (struct inode));
120 bzero((char *)filep->fi_inode, sizeof (struct inode));
122 dp[itoo(&devp->un_fs.di_fs, inode)].di_un.di_icom;
123 filep->fi_inode->i_number = inode;
124 set_cache((int)inode, (void *)filep->fi_inode, sizeof (struct inode));
147 ino_t inode; local
614 ino_t inode; local
[all...]
H A Dhsfs.c159 opendir(ino_t inode, fileid_t *filep) argument
163 dprintf("opendir: inode = %ld\n", inode);
166 filep->fi_blocknum = hdbtodb(inode);
174 filep->fi_blocknum = hdbtodb(inode);
176 if (inode != root_ino)
180 struct inode *ip;
188 ip->i_number = inode;
238 struct inode *ip;
267 struct inode *i
[all...]
/illumos-gate/usr/src/lib/libcmdutils/common/
H A Davltree.c84 * a device id and inode number provided by the calling application.
96 * allocating memory and setting the nodes device id and inode number
104 * dev_t device (device id of the inode to be stored)
105 * ino_t inode (inode number of inode to be stored)
127 * id, then on the inode number. Return -1 when p1 < p2,
142 /* device id match, now check inode */
157 * an inode number. Duplicate nodes are not stored. Return 1 if
161 add_tnode(avl_tree_t **stree, dev_t device, ino_t inode) argument
[all...]
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/
H A Ddup_avl.c68 * for each claimant. They are keyed first by inode number and then
69 * by lfn. Both are needed, as it is possible for one inode to have
196 inode_dup_t *inode; local
223 "file(s).\nFragments sorted by inode and "
227 inode = avl_first(&inode_frags);
228 while (inode != NULL) {
229 report_inode_dups(inode);
230 inode = AVL_NEXT(&inode_frags, inode);
241 report_inode_dups(inode_dup_t *inode) argument
465 alloc_claimant(fsck_ino_t inode, daddr32_t lfn) argument
575 new_inode_dup(fsck_ino_t inode) argument
[all...]
/illumos-gate/usr/src/stand/lib/fs/hsfs/
H A Dhsfsops.c58 /* The root inode on an HSFS filesystem can be anywhere! */
124 opendir(fileid_t *filep, ino_t inode) argument
131 filep->fi_blocknum = hdbtodb(inode);
143 filep->fi_blocknum = hdbtodb(inode);
145 if (inode != root_ino)
149 hs_seti(filep, &hsdep, inode);
160 ino_t inode; local
171 if (opendir(filep, inode = root_ino)) {
186 if ((inode = dlook(filep, path)) != 0) {
189 if (opendir(filep, inode)) {
574 ino_t inode; local
953 hs_seti(fileid_t *filep, struct hs_direct *hsdep, ino_t inode) argument
[all...]
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_xattr.c62 struct inode **sip,
67 struct inode *ip, *sdp;
85 cmn_err(CE_NOTE, "ufs_getattrdir: inode %d"
119 ufs_unhook_shadow(struct inode *ip, struct inode *sip)
H A Dufs_inode.c105 union ihead *ihead; /* inode LRU cache, Chris Maltby */
106 kmutex_t *ih_lock; /* protect inode cache hash table */
143 static int ufs_iget_internal(struct vfs *, ino_t, struct inode **,
199 (ulong_t)((kmem_maxavail() >> 2) / sizeof (struct inode));
253 struct inode *ip = buf;
277 struct inode *ip = buf;
296 * and build inode free list.
316 sizeof (struct inode), 0, ufs_inode_cache_constructor,
322 * Free an inode structure
325 ufs_free_inode(struct inode *i
[all...]
H A Dufs_dir.c160 ufs_diraccess(struct inode *ip, int mode, struct cred *cr)
171 * will point to the VN_HELD inode.
177 struct inode *dp,
179 struct inode **ipp,
466 * We have the parent inode read locked with i_rwlock.
475 * fbp and want the directory inode and someone doing
476 * a ufs_direnter_* has the directory inode and wants
499 * continue with already found inode.
532 * we must check that the same inode is still
641 struct inode *td
[all...]
/illumos-gate/usr/src/uts/common/sys/
H A Dfilep.h75 struct inode *fi_inode;
/illumos-gate/usr/src/stand/lib/fs/ufs/
H A Dufsops.c114 openi(fileid_t *filep, ino_t inode) argument
120 /* Try the inode cache first */
121 if ((filep->fi_inode = get_icache(devp->di_dcookie, inode)) != NULL)
126 itod(&devp->un_fs.di_fs, inode));
141 filep->fi_inode = (struct inode *)
142 bkmem_alloc(sizeof (struct inode));
143 bzero((char *)filep->fi_inode, sizeof (struct inode));
145 dp[itoo(&devp->un_fs.di_fs, inode)].di_un.di_icom;
146 filep->fi_inode->i_number = inode;
147 if (set_ricache(devp->di_dcookie, inode, (voi
172 ino_t inode; local
680 ino_t inode; local
[all...]
/illumos-gate/usr/src/tools/protocmp/
H A Dexception_list.c66 e->inode = 0;
H A Dlist.h113 int inode; member in struct:elem

Completed in 120 milliseconds

123