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