Lines Matching refs:xx
140 int xx; in main() local
184 xx = getsubopt(&optionp, cfs_opts, &valuep); in main()
185 switch (xx) { in main()
247 xx = 33; in main()
250 xx = 0; in main()
253 return (xx); in main()
256 xx = cache_upgrade(cachedirp, lockid); in main()
257 if (xx != 0) { in main()
259 xx = cfs_check(cachedirp, noclean, mflag, verbose, nonoclean); in main()
271 return (xx); in main()
437 int xx; in cfs_check() local
458 xx = cache_label_file(cachedirp, &clabel); in cfs_check()
459 if (xx) in cfs_check()
460 return (xx); in cfs_check()
464 xx = open(buf, O_RDWR | O_CREAT, 0700); in cfs_check()
465 if (xx == -1) { in cfs_check()
469 close(xx); in cfs_check()
472 xx = cache_permissions(cachedirp); in cfs_check()
473 if (xx) in cfs_check()
474 return (xx); in cfs_check()
477 xx = cache_check_dir(cachedirp, BACKMNT_NAME); in cfs_check()
478 if (xx) in cfs_check()
479 return (xx); in cfs_check()
485 xx = cache_check_dir(cachedirp, CACHEFS_LOSTFOUND_NAME); in cfs_check()
486 if (xx) in cfs_check()
487 return (xx); in cfs_check()
494 xx = strlen(cachedirp) + strlen(namep) + 3; in cfs_check()
495 if (xx >= MAXPATHLEN) { in cfs_check()
526 xx = strlen(cachedirp) + strlen(dep->d_name) + 3; in cfs_check()
527 if (xx >= MAXPATHLEN) { in cfs_check()
537 xx = lstat64(buf, &statinfo); in cfs_check()
538 if (xx == -1) { in cfs_check()
551 xx = chmod(buf, 0700); in cfs_check()
552 if (xx == -1) { in cfs_check()
572 xx = lstat64(buf, &statinfo); in cfs_check()
573 if (xx == -1) { in cfs_check()
600 xx = process_fsdir(cachedirp, dep->d_name, resp, verbose); in cfs_check()
601 if (xx) { in cfs_check()
604 return (xx); in cfs_check()
618 xx = lstat64(buf, &statinfo); in cfs_check()
619 if (xx == -1) { in cfs_check()
649 xx = nftw64(buf, tree_remove, 3, FLAGS_FTW); in cfs_check()
650 if (xx != 0) { in cfs_check()
668 xx = res_done(resp); in cfs_check()
669 if (xx == -1) { in cfs_check()
706 int xx; in cache_label_file() local
715 xx = strlen(cachedirp) + strlen(namep) + 10; in cache_label_file()
716 if (xx >= MAXPATHLEN) { in cache_label_file()
727 xx = cachefs_label_file_get(buf1, &clabel1); in cache_label_file()
728 if (xx == -1) { in cache_label_file()
730 xx = cachefs_label_file_get(buf2, &clabel2); in cache_label_file()
731 if (xx == -1) { in cache_label_file()
739 xx = cachefs_label_file_put(buf1, &clabel2); in cache_label_file()
740 if (xx == -1) { in cache_label_file()
757 xx = cachefs_label_file_get(buf2, &clabel2); in cache_label_file()
758 if (xx == -1) { in cache_label_file()
760 xx = cachefs_label_file_put(buf2, &clabel1); in cache_label_file()
761 if (xx == -1) { in cache_label_file()
800 int xx; in cache_permissions() local
804 xx = lstat64(cachedirp, &statinfo); in cache_permissions()
805 if (xx == -1) { in cache_permissions()
815 xx = chmod(cachedirp, 0); in cache_permissions()
816 if (xx == -1) { in cache_permissions()
857 int xx; in cache_check_dir() local
862 xx = strlen(cachedirp) + strlen(namep) + 3; in cache_check_dir()
863 if (xx >= MAXPATHLEN) { in cache_check_dir()
873 xx = lstat64(buf, &statinfo); in cache_check_dir()
874 if (xx == -1) { in cache_check_dir()
883 xx = mkdir(buf, 0); in cache_check_dir()
884 if (xx == -1) { in cache_check_dir()
895 xx = unlink(buf); in cache_check_dir()
896 if (xx == -1) { in cache_check_dir()
903 xx = mkdir(buf, 0); in cache_check_dir()
904 if (xx == -1) { in cache_check_dir()
953 int xx; in process_fsdir() local
969 xx = strlen(cachedirp) + strlen(namep) + 3; in process_fsdir()
970 if (xx >= MAXPATHLEN) { in process_fsdir()
978 xx = readlink(linkpath, buf, sizeof (buf)); in process_fsdir()
979 if (xx == -1) { in process_fsdir()
985 buf[xx] = '\0'; in process_fsdir()
988 xx = strlen(cachedirp) + strlen(buf) + 20 + 20; in process_fsdir()
989 if (xx >= MAXPATHLEN) { in process_fsdir()
999 xx = lstat64(dirpath, &statinfo); in process_fsdir()
1000 if ((xx == -1) || (strtoull(buf, NULL, 16) != statinfo.st_ino)) { in process_fsdir()
1001 if ((xx == -1) && (errno != ENOENT)) { in process_fsdir()
1014 xx = dlog_ck(dirpath, &maxlocalfileno); in process_fsdir()
1015 if (xx) { in process_fsdir()
1022 xx = process_fsinfo(buf, maxlocalfileno, &fsinfo, verbose); in process_fsdir()
1023 if (xx) { in process_fsdir()
1091 xx = strlen(dep->d_name); in process_fsdir()
1092 if ((xx != 16) && (xx != 17)) { in process_fsdir()
1144 xx = strncmp(dep->d_name, CACHEFS_PREFIX, CACHEFS_PREFIX_LEN); in process_fsdir()
1145 if (xx == 0) in process_fsdir()
1155 xx = nftw64(buf, tree_remove, 3, FLAGS_FTW); in process_fsdir()
1156 if (xx != 0) { in process_fsdir()
1176 xx = chmod(dirpath, 0777); in process_fsdir()
1177 if (xx == -1) { in process_fsdir()
1191 xx = unlink(linkpath); in process_fsdir()
1192 if (xx == -1) { in process_fsdir()
1214 int xx; in process_fsinfo() local
1238 xx = read(fd, &fsinfo, sizeof (fsinfo)); in process_fsinfo()
1239 if (xx != sizeof (fsinfo)) { in process_fsinfo()
1259 xx = write(fd, &fsinfo, sizeof (fsinfo)); in process_fsinfo()
1260 if (xx != sizeof (fsinfo)) { in process_fsinfo()
1321 int xx; in process_fsgroup() local
1350 xx = lstat64(attrfile, &statinfo); in process_fsgroup()
1351 if (xx == -1) { in process_fsgroup()
1399 xx = (size + MAXBSIZE - 1) / MAXBSIZE; in process_fsgroup()
1400 if (xx != ahp->ach_nblks) { in process_fsgroup()
1404 attrfile, ahp->ach_nblks, xx); in process_fsgroup()
1406 ahp->ach_nblks = xx; in process_fsgroup()
1513 xx = res_addident(resp, metap->md_rlno, &ent, in process_fsgroup()
1516 if (xx == -1) { in process_fsgroup()
1531 xx = (offset - offentry) / sizeof (struct cachefs_metadata); in process_fsgroup()
1532 bitp[xx/8] |= 1 << (xx % 8); in process_fsgroup()
1549 xx = strlen(dep->d_name); in process_fsgroup()
1551 if ((xx > 2) && (strcmp(dep->d_name + xx - 2, ".d") == 0)) { in process_fsgroup()
1553 } else if ((xx != 16) && (xx != 17)) { in process_fsgroup()
1581 xx = file_remove(buf, NULL, verbose); in process_fsgroup()
1582 if (xx == -1) { in process_fsgroup()
1597 xx = rmdir(buf); in process_fsgroup()
1599 xx = file_remove(buf, NULL, verbose); in process_fsgroup()
1600 if (xx == -1) { in process_fsgroup()
1677 xx = unlink(attrfile); in process_fsgroup()
1678 if (xx == -1) { in process_fsgroup()
1726 int xx; in tree_remove() local
1732 xx = rmdir(namep); in tree_remove()
1733 if (xx != 0) { in tree_remove()
1744 xx = file_remove(namep, statp, S_verbose); in tree_remove()
1777 int xx; in file_remove() local
1786 xx = stat64(namep, &statinfo); in file_remove()
1787 if (xx) { in file_remove()
1820 xx = stat64(newname, &statinfo); in file_remove()
1821 for (ii = 1; ((ii < 1000) && (xx == 0)); ii++) { in file_remove()
1823 xx = stat64(newname, &statinfo); in file_remove()
1825 xx = rename(namep, newname); in file_remove()
1826 if (xx) { in file_remove()
1836 xx = unlink(namep); in file_remove()
1837 if (xx == -1) { in file_remove()