Lines Matching defs:retval

325 	OSErr retval;
485 retval = hfs_getnewvnode(hfsmp, NULL, NULL, &cndesc, 0, &cnattr, &cfork,
487 if (retval)
490 printf("hfs_mounthfsplus: hfs_getnewvnode returned (%d) getting extentoverflow BT\n", retval);
497 retval = MacToVFSError(BTOpenPath(VTOF(hfsmp->hfs_extents_vp),
499 if (retval)
502 printf("hfs_mounthfsplus: BTOpenPath returned (%d) getting extentoverflow BT\n", retval);
524 retval = hfs_getnewvnode(hfsmp, NULL, NULL, &cndesc, 0, &cnattr, &cfork,
526 if (retval) {
528 printf("hfs_mounthfsplus: hfs_getnewvnode returned (%d) getting catalog BT\n", retval);
535 retval = MacToVFSError(BTOpenPath(VTOF(hfsmp->hfs_catalog_vp),
537 if (retval) {
539 printf("hfs_mounthfsplus: BTOpenPath returned (%d) getting catalog BT\n", retval);
571 retval = hfs_getnewvnode(hfsmp, NULL, NULL, &cndesc, 0, &cnattr, &cfork,
573 if (retval) {
575 printf("hfs_mounthfsplus: hfs_getnewvnode returned (%d) getting bitmap\n", retval);
601 retval = hfs_getnewvnode(hfsmp, NULL, NULL, &cndesc, 0, &cnattr, &cfork,
603 if (retval) {
605 printf("hfs_mounthfsplus: hfs_getnewvnode returned (%d) getting EA BT\n", retval);
611 retval = MacToVFSError(BTOpenPath(VTOF(hfsmp->hfs_attribute_vp),
613 if (retval) {
615 printf("hfs_mounthfsplus: BTOpenPath returned (%d) getting EA BT\n", retval);
625 retval = init_attrdata_vnode(hfsmp);
626 if (retval) {
628 printf("hfs_mounthfsplus: init_attrdata_vnode returned (%d) for virtual EA file\n", retval);
653 retval = hfs_getnewvnode(hfsmp, NULL, NULL, &cndesc, 0, &cnattr, &cfork,
655 if (retval) {
657 printf("hfs_mounthfsplus: hfs_getnewvnode returned (%d) getting startup file\n", retval);
666 retval = cat_idlookup(hfsmp, kHFSRootFolderID, 0, 0, &cndesc, &cnattr, NULL);
667 if (retval) {
669 printf("hfs_mounthfsplus: cat_idlookup returned (%d) getting rootfolder \n", retval);
683 retval = utf8_normalizestr(vcb->vcbVN, volname_length, (u_int8_t*)converted_volname, &conv_volname_length, 256, UTF_PRECOMPOSED);
684 if (retval == 0) {
688 /* reset retval == 0. we don't care about errors in volname conversion */
689 retval = 0;
712 retval = hfs_late_journal_init(hfsmp, vhp, args);
713 if (retval != 0) {
714 if (retval == EROFS) {
719 printf("hfs_mounthfsplus: hfs_late_journal_init returned (%d), maybe an external jnl?\n", retval);
721 retval = EINVAL;
740 retval = (int)buf_meta_bread(hfsmp->hfs_devvp,
743 if (retval == 0) {
762 printf("hfs_mounthfsplus: hfs_late_journal_init returned (%d)\n", retval);
764 retval = EINVAL;
825 retval = hfs_erase_unused_nodes(hfsmp);
826 if (retval) {
828 printf("hfs_mounthfsplus: hfs_erase_unused_nodes returned (%d) for %s \n", retval, hfsmp->vcbVN);
869 printf("hfs_mounthfsplus: encountered errorr (%d)\n", retval);
871 return (retval);
2115 int retval, write_jibp = 0;
2138 retval = (int)buf_meta_bread(devvp,
2142 if (retval) {
2146 return retval;
2197 retval = journal_is_clean(hfsmp->jvp,
2207 if (retval) {
2215 return retval;
2270 retval = (int)buf_meta_bread(devvp,
2273 if (retval) {
2277 printf("hfs: failed to reload the mdb after opening the journal (retval %d)!\n",
2278 retval);
2279 return retval;
2293 printf("hfs: early jnl init: failed to open/create the journal (retval %d).\n", retval);
2321 int retval, write_jibp = 0, recreate_journal = 0;
2366 retval = (int)buf_meta_bread(devvp,
2370 if (retval) {
2461 retval = journal_is_clean(hfsmp->jvp,
2471 if (retval) {
2479 return retval;
2546 printf("hfs: late jnl init: failed to open/create the journal (retval %d).\n", retval);