Home
last modified time | relevance | path

Searched refs:pcdir (Results 1 – 13 of 13) sorted by relevance

/illumos-gate/usr/src/cmd/fs.d/pcfs/fsck/
H A Dfsck_pcfs.h74 struct pcdir *dirp;
101 struct pcdir *dirent;
104 struct pcdir *_longent;
178 extern struct pcdir *addRootDirEnt(int fd, struct pcdir *copyme);
179 extern struct pcdir *newDirEnt(struct pcdir *copyme);
180 extern int32_t extractStartCluster(struct pcdir *dp);
181 extern int32_t findImpactedCluster(struct pcdir *modified);
183 extern uint32_t extractSize(struct pcdir *dp);
186 extern void truncChainWithBadCluster(int fd, struct pcdir *dp,
191 extern void updateDirEnt_Start(struct pcdir *dp, int32_t newStart);
[all …]
H A Ddir.c82 hasCHKName(struct pcdir *dp) in hasCHKName()
107 addToCHKList(struct pcdir *dp) in addToCHKList()
125 appendToPath(struct pcdir *dp, char *thePath, int *theLen) in appendToPath()
173 printName(FILE *outDest, struct pcdir *dp) in printName()
198 sanityCheckSize(int fd, struct pcdir *dp, int32_t actualClusterCount, in sanityCheckSize()
200 struct pcdir **orphanEntry) in sanityCheckSize()
243 noteUsage(int fd, int32_t startAt, struct pcdir *dp, struct pcdir *lp, in noteUsage()
247 struct pcdir *orphanEntry; in noteUsage()
298 storeInfoAboutEntry(int fd, struct pcdir *dp, struct pcdir *ldp, int depth, in storeInfoAboutEntry()
369 storeInfoAboutLabel(struct pcdir *dp) in storeInfoAboutLabel()
[all …]
H A Dclusters.c63 static struct pcdir BlankPCDIR;
538 markOrphan(int fd, int32_t clusterNum, struct pcdir *dp) in markOrphan()
687 struct pcdir *ignorep1, *ignorep2 = NULL; in summarize()
759 orphanChain(int fd, int32_t c, struct pcdir *ndp) in orphanChain()
800 setEndOfDirectory(struct pcdir *dp) in setEndOfDirectory()
829 makeNewEndOfDirectory(struct pcdir *entry, int32_t secondToLast, in makeNewEndOfDirectory()
854 createNewEndOfDirectory(int fd, struct pcdir *entry, int32_t secondToLast) in createNewEndOfDirectory()
905 truncAtCluster(int fd, struct pcdir *entry, int32_t cluster) in truncAtCluster()
973 static struct pcdir *
974 updateOrphanedChainMetadata(int fd, struct pcdir *dp, int32_t endCluster, in updateOrphanedChainMetadata()
[all …]
H A Dbpb.c83 sizeof (struct pcdir); in computeFileAreaSize()
239 sizeof (struct pcdir)) % in readBPB()
/illumos-gate/usr/src/uts/common/fs/pcfs/
H A Dpc_dir.c45 static int pc_makedirentry(struct pcnode *dp, struct pcdir *direntries,
53 struct pcdir *ep);
54 static struct pcdir *pc_name_to_pcdir(struct pcnode *dp, char *namep,
142 struct pcdir *ep; in pc_direnter()
184 struct pcdir *direntries; in pc_direnter()
219 kmem_free(direntries, ndirentries * sizeof (struct pcdir)); in pc_direnter()
223 offset += (ndirentries - 1) * sizeof (struct pcdir); in pc_direnter()
253 struct pcdir t_dot; /* dot entry */
254 struct pcdir t_dotdot; /* dotdot entry */
273 pc_makedirentry(struct pcnode *dp, struct pcdir *direntries, in pc_makedirentry()
[all …]
H A Dpc_vnops.c1306 struct pcdir *ep; in pcfs_readdir()
1321 (uiop->uio_loffset % sizeof (struct pcdir)) != 0) { in pcfs_readdir()
1352 ld->d_off = (off64_t)sizeof (struct pcdir); in pcfs_readdir()
1362 if (offset == sizeof (struct pcdir)) { in pcfs_readdir()
1370 sizeof (struct pcdir)); in pcfs_readdir()
1376 offset -= 2 * sizeof (struct pcdir); in pcfs_readdir()
1406 uiop->uio_loffset += sizeof (struct pcdir); in pcfs_readdir()
1407 offset += sizeof (struct pcdir); in pcfs_readdir()
2166 struct pcdir **epp, offset_t *offset, struct buf **bp) in pc_extract_long_fn()
2168 struct pcdir *ep = *epp; in pc_extract_long_fn()
[all …]
H A Dpc_node.c63 struct pcdir pcfs_rootdirentry = {
89 struct pcdir *ep) /* node dir entry */ in pc_getnode()
557 *((struct pcdir *)(bp->b_un.b_addr + pcp->pc_eoffset)) = pcp->pc_entry; in pc_nodeupdate()
H A Dpc_vfsops.c189 ASSERT(sizeof (struct pcdir) == 32); in _init()
1185 struct pcdir *ep; in pcfs_vget()
1241 ep = (struct pcdir *)(bp->b_un.b_addr + eoffset); in pcfs_vget()
/illumos-gate/usr/src/uts/common/sys/fs/
H A Dpc_dir.h63 struct pcdir { struct
238 struct pcdir *sl_ep; /* pointer to entry data */
294 struct pc_dirent *, struct pcdir **, offset_t *, struct buf **);
296 struct pc_dirent *, struct pcdir **, offset_t *, struct buf **);
297 extern int pc_match_long_fn(struct pcnode *, char *, struct pcdir **,
300 struct pcdir **, struct pcslot *, offset_t *);
305 struct pcdir **, offset_t *offset, struct buf **);
308 extern pc_cluster32_t pc_getstartcluster(struct pcfs *, struct pcdir *);
309 extern void pc_setstartcluster(struct pcfs *, struct pcdir *, pc_cluster32_t);
H A Dpc_node.h62 struct pcdir pc_entry; /* directory entry of file */
86 ((BN) * (ENTPS)) + ((OFF) / sizeof (struct pcdir)))
121 extern struct pcnode *pc_getnode(struct pcfs *, daddr_t, int, struct pcdir *);
143 struct pcdir **);
H A Dpc_fs.h560 ((int)((PCFS)->pcfs_secsize / sizeof (struct pcdir)))
563 ((int)((PCFS)->pcfs_clsize / sizeof (struct pcdir)))
/illumos-gate/usr/src/cmd/fs.d/pcfs/fstyp/
H A Dfstyp.c133 static boolean_t dir_find_label(fstyp_pcfs_t *h, struct pcdir *d, int nent);
389 nent = secsize / sizeof (struct pcdir); in get_label_16()
393 if (dir_find_label(h, (struct pcdir *)buf, nent)) { in get_label_16()
433 nent = clustersize / sizeof (struct pcdir); in get_label_32()
434 if (dir_find_label(h, (struct pcdir *)buf, nent)) { in get_label_32()
476 dir_find_label(fstyp_pcfs_t *h, struct pcdir *d, int nent) in dir_find_label()
/illumos-gate/usr/src/cmd/fs.d/pcfs/mkfs/
H A Dmkfs_main.c158 static void dirent_fname_fill(struct pcdir *dep, char *fn);
164 static void dirent_time_fill(struct pcdir *dep);
2606 dirent_time_fill(struct pcdir *dep) in dirent_time_fill()
2628 dirent_label_fill(struct pcdir *dep, char *fn) in dirent_label_fill()
2657 dirent_fname_fill(struct pcdir *dep, char *fn) in dirent_fname_fill()
2698 struct pcdir *rootdirp; in build_rootdir()
2699 struct pcdir *entry; in build_rootdir()
2713 *rdirsize = wbpb->bpb.num_root_entries * sizeof (struct pcdir); in build_rootdir()
2715 if ((rootdirp = (struct pcdir *)malloc(*rdirsize)) == NULL) { in build_rootdir()
2753 dump_bytes((uchar_t *)rootdirp, 2 * sizeof (struct pcdir)); in build_rootdir()