vd.id = vd.parentId;
vd.type = RWVOL;
vd.dontSalvage = 0;
+ vd.inUse = 0;
vd.uniquifier += 5000; /* just in case there are still file copies from
* the old RW volume around */
p = strrchr(vd.name, '.');
return EIO;
}
close(fd);
+ (void)afs_snprintf(headername, sizeof headername, VFORMAT, afs_printable_uint32_lu(volumeId));
+ (void)afs_snprintf(oldpath, sizeof oldpath, "%s/%s", pname, headername);
if (unlink(oldpath) < 0) {
- Log("1 namei_ConvertROtoRWvolume: Couldn't unlink RO header, error = %d\n", error);
+ Log("1 namei_ConvertROtoRWvolume: Couldn't unlink RO header, error = %d\n", errno);
}
FSYNC_askfs(volumeId, pname, FSYNC_DONE, 0);
FSYNC_askfs(h.id, pname, FSYNC_ON, 0);