Lines Matching defs:fsp

228 	struct pcfs *fsp;
232 fsp = VFSTOPCFS(vp->v_vfsp);
233 if (error = pc_verify(fsp))
235 error = pc_lockfs(fsp, 0, 0);
239 pc_unlockfs(fsp);
243 if ((fsp->pcfs_vfs->vfs_flag & VFS_RDONLY) == 0) {
244 pc_mark_acc(fsp, pcp);
246 pc_unlockfs(fsp);
262 struct pcfs *fsp;
266 fsp = VFSTOPCFS(vp->v_vfsp);
267 if (error = pc_verify(fsp))
269 error = pc_lockfs(fsp, 0, 0);
273 pc_unlockfs(fsp);
284 pc_mark_mod(fsp, pcp);
288 pc_unlockfs(fsp);
306 struct pcfs *fsp;
360 fsp = VFSTOPCFS(vp->v_vfsp);
361 if (fsp->pcfs_flags & PCFS_IRRECOV)
421 fsp->pcfs_clsize);
424 fsp->pcfs_clsize)) {
432 lcn = pc_lblkno(fsp, uio->uio_loffset);
439 fsp->pcfs_clsize))
444 (daddr_t)pc_lblkno(fsp,
461 nerror = pc_fileclsize(fsp,
476 pcp->pc_size = fsp->pcfs_clsize * ncl;
574 struct pcfs *fsp;
582 fsp = VFSTOPCFS(vp->v_vfsp);
583 error = pc_lockfs(fsp, 0, 0);
593 pc_unlockfs(fsp);
601 if (PCA_IS_HIDDEN(fsp, attr))
607 else if (fsp->pcfs_flags & PCFS_BOOTPART) {
617 if (fsp->pcfs_flags & PCFS_BOOTPART) {
627 pc_getstartcluster(fsp, &pcp->pc_entry), pc_direntpersec(fsp));
633 vap->va_blksize = fsp->pcfs_clsize;
641 vap->va_mtime = fsp->pcfs_mounttime;
642 vap->va_atime = fsp->pcfs_mounttime;
643 vap->va_ctime = fsp->pcfs_mounttime;
644 pc_unlockfs(fsp);
649 if ((fsp->pcfs_flags & PCFS_NOCLAMPTIME) == 0) {
655 pc_unlockfs(fsp);
680 if ((fsp->pcfs_flags & PCFS_NOCLAMPTIME) == 0) {
686 pc_unlockfs(fsp);
694 pc_unlockfs(fsp);
711 struct pcfs *fsp;
739 fsp = VFSTOPCFS(vp->v_vfsp);
740 error = pc_lockfs(fsp, 0, 0);
744 pc_unlockfs(fsp);
748 if (fsp->pcfs_flags & PCFS_BOOTPART) {
750 pc_unlockfs(fsp);
803 if ((fsp->pcfs_flags & PCFS_NOCLAMPTIME) == 0 &&
831 if ((fsp->pcfs_flags & PCFS_NOCLAMPTIME) == 0 &&
843 pc_unlockfs(fsp);
858 struct pcfs *fsp;
861 fsp = VFSTOPCFS(vp->v_vfsp);
872 if (fsp->pcfs_flags & PCFS_BOOTPART) {
889 struct pcfs *fsp;
893 fsp = VFSTOPCFS(vp->v_vfsp);
894 if (error = pc_verify(fsp))
896 error = pc_lockfs(fsp, 0, 0);
900 pc_unlockfs(fsp);
906 pc_unlockfs(fsp);
919 struct pcfs *fsp;
922 fsp = VFSTOPCFS(vp->v_vfsp);
923 error = pc_lockfs(fsp, 0, 1);
938 pc_unlockfs(fsp);
941 VFS_RELE(PCFSTOVFS(fsp));
950 pc_unlockfs(fsp);
975 pc_unlockfs(fsp);
992 struct pcfs *fsp;
1005 fsp = VFSTOPCFS(dvp->v_vfsp);
1006 if (error = pc_verify(fsp))
1008 error = pc_lockfs(fsp, 0, 0);
1012 pc_unlockfs(fsp);
1021 pc_unlockfs(fsp);
1030 pc_unlockfs(fsp);
1052 struct pcfs *fsp;
1064 fsp = VFSTOPCFS(dvp->v_vfsp);
1065 error = pc_lockfs(fsp, 0, 0);
1069 pc_unlockfs(fsp);
1073 if (fsp->pcfs_flags & PCFS_BOOTPART) {
1075 pc_unlockfs(fsp);
1119 pc_unlockfs(fsp);
1124 pc_unlockfs(fsp);
1137 struct pcfs *fsp;
1141 fsp = VFSTOPCFS(vp->v_vfsp);
1142 if (error = pc_verify(fsp))
1144 error = pc_lockfs(fsp, 0, 0);
1148 pc_unlockfs(fsp);
1151 if (fsp->pcfs_flags & PCFS_BOOTPART) {
1153 pc_unlockfs(fsp);
1158 pc_unlockfs(fsp);
1178 struct pcfs *fsp;
1183 fsp = VFSTOPCFS(sdvp->v_vfsp);
1184 if (error = pc_verify(fsp))
1194 error = pc_lockfs(fsp, 0, 0);
1199 pc_unlockfs(fsp);
1203 pc_unlockfs(fsp);
1219 struct pcfs *fsp;
1223 fsp = VFSTOPCFS(dvp->v_vfsp);
1224 if (error = pc_verify(fsp))
1226 error = pc_lockfs(fsp, 0, 0);
1230 pc_unlockfs(fsp);
1234 if (fsp->pcfs_flags & PCFS_BOOTPART) {
1236 pc_unlockfs(fsp);
1249 pc_unlockfs(fsp);
1263 struct pcfs *fsp;
1267 fsp = VFSTOPCFS(dvp -> v_vfsp);
1268 if (error = pc_verify(fsp))
1270 if (error = pc_lockfs(fsp, 0, 0))
1274 pc_unlockfs(fsp);
1278 if (fsp->pcfs_flags & PCFS_BOOTPART) {
1280 pc_unlockfs(fsp);
1286 pc_unlockfs(fsp);
1306 struct pcfs *fsp;
1325 fsp = VFSTOPCFS(dvp->v_vfsp);
1329 if (error = pc_verify(fsp)) {
1332 error = pc_lockfs(fsp, 0, 0);
1336 pc_unlockfs(fsp);
1356 pc_unlockfs(fsp);
1367 pc_unlockfs(fsp);
1382 boff = pc_blkoff(fsp, offset);
1424 pc_unlockfs(fsp);
1448 struct pcfs *fsp = VFSTOPCFS(vp->v_vfsp);
1465 devvp = fsp->pcfs_devvp;
1480 ((fsp->pcfs_vfs->vfs_flag & VFS_RDONLY) == 0)) {
1481 pc_mark_acc(fsp, pcp);
1497 lbn = pc_lblkno(fsp, off);
1498 lbnoff = off & ~(fsp->pcfs_clsize - 1);
1499 xferoffset = off & ~(fsp->pcfs_secsize - 1);
1502 off, (size_t)MIN(pc_blksize(fsp, pcp, off), PAGESIZE), 0);
1512 lbn += howmany(xfersize, fsp->pcfs_clsize),
1589 struct pcfs *fsp = VFSTOPCFS(vp->v_vfsp);
1593 if (err = pc_verify(fsp))
1598 err = pc_lockfs(fsp, 0, 0);
1608 pc_unlockfs(fsp);
1634 struct pcfs *fsp;
1650 fsp = VFSTOPCFS(vp->v_vfsp);
1652 if (err = pc_verify(fsp))
1684 err = pc_lockfs(fsp, 0, 0);
1688 pc_unlockfs(fsp);
1747 pc_unlockfs(fsp);
1765 struct pcfs *fsp;
1775 fsp = VFSTOPCFS(vp->v_vfsp);
1776 devvp = fsp->pcfs_devvp;
1787 pc_mark_mod(fsp, pcp);
1792 if (fsp->pcfs_flags & PCFS_IRRECOV) {
1798 lbn = pc_lblkno(fsp, io_off);
1799 lbnoff = io_off & ~(fsp->pcfs_clsize - 1);
1800 xferoffset = io_off & ~(fsp->pcfs_secsize - 1);
1804 lbn += howmany(xfersize, fsp->pcfs_clsize),
1841 if ((fsp->pcfs_flags & PCFS_IRRECOV) && pp != NULL) {
1972 struct pcfs *fsp = VFSTOPCFS(vp->v_vfsp);
1988 *valp = IS_FAT12(fsp) ? 30 : 33;
2172 struct pcfs *fsp = VFSTOPCFS(dvp->v_vfsp);
2187 foldcase = (fsp->pcfs_flags & PCFS_FOLDCASE);
2197 boff = pc_blkoff(fsp, *offset);
2233 boff = pc_blkoff(fsp, *offset);
2262 if (PCA_IS_HIDDEN(fsp, ep->pcd_attr)) {
2319 struct pcfs *fsp = VFSTOPCFS(dvp->v_vfsp);
2342 ld->d_ino = pc_makenodeid(pc_daddrdb(fsp, (*bp)->b_blkno),
2343 pc_blkoff(fsp, *offset), ep->pcd_attr,
2344 pc_getstartcluster(fsp, ep), pc_direntpersec(fsp));
2360 struct pcfs *fsp = VFSTOPCFS(dvp->v_vfsp);
2361 int boff = pc_blkoff(fsp, *offset);
2367 if (PCA_IS_HIDDEN(fsp, ep->pcd_attr)) {
2374 ld->d_ino = (ino64_t)pc_makenodeid(pc_daddrdb(fsp, (*bp)->b_blkno),
2375 boff, ep->pcd_attr, pc_getstartcluster(fsp, ep),
2376 pc_direntpersec(fsp));
2377 foldcase = (fsp->pcfs_flags & PCFS_FOLDCASE);
2406 struct pcfs *fsp;
2409 fsp = VFSTOPCFS(vp->v_vfsp);
2410 if (fsp == NULL)
2412 error = pc_lockfs(fsp, 0, 0);
2416 pc_unlockfs(fsp);
2421 pc_unlockfs(fsp);
2437 pc_unlockfs(fsp);