Lines Matching refs:newname
646 kfrename(char *oldname, char *newname) in kfrename() argument
652 KFDEBUG((CE_CONT, "renaming %s to %s\n", oldname, newname)); in kfrename()
654 if ((rval = vn_rename(oldname, newname, UIO_SYSSPACE)) != 0) { in kfrename()
656 oldname, newname, rval)); in kfrename()
668 char *newname; in fwrite_nvlist() local
698 newname = kmem_alloc(len, KM_SLEEP); in fwrite_nvlist()
701 (void) sprintf(newname, "%s.%s", filename, NEW_FILENAME_SUFFIX); in fwrite_nvlist()
710 if ((err = kfcreate(newname, &fp)) == 0) { in fwrite_nvlist()
714 newname, err); in fwrite_nvlist()
719 newname, n, buflen); in fwrite_nvlist()
721 newname); in fwrite_nvlist()
726 nvf_error("%s: close error\n", newname); in fwrite_nvlist()
731 if (kfremove(newname) != 0) { in fwrite_nvlist()
733 newname); in fwrite_nvlist()
741 if ((err = kfrename(newname, filename)) != 0) { in fwrite_nvlist()
743 newname, filename); in fwrite_nvlist()
747 kmem_free(newname, len); in fwrite_nvlist()