-- re-reading volume headers
-Since we cannot know whether a volume is writeable or not until the
+Since we cannot know whether a volume is writable or not until the
volume header is read, and we cannot atomically upgrade file-level
locks, part of attachment can now occur twice (see attach2 and
attach_volume_header). What occurs is we read the vol header, assuming
p = pathName;
cchlen = lengthof(pathName);
- /* within this code block, we maintain, cchlen = writeable
+ /* within this code block, we maintain, cchlen = writable
buffer length of p */
if (cm_ClientStrCmpN(p, cm_mountRootC, cm_mountRootCLen) == 0) {
break;
case SAVEDBOPCODE: /* Mount for savedb */
- printf("Please insert a writeable tape %s for the database dump",
+ printf("Please insert a writable tape %s for the database dump",
tapename);
break;
*isWriteReady = 0;
if (*isSyncSite) {
- /* as of 3.5 the database is writeable if "labeled" or if all
+ /* as of 3.5 the database is writable if "labeled" or if all
* prior recovery states have been achieved; see defect 9477.
*/
if (((udebugInfo.recoveryState & UBIK_RECLABELDB))
*isWriteReady = 0;
if (*isSyncSite) {
- /* pre 3.5 the database is writeable only if "labeled" */
+ /* pre 3.5 the database is writable only if "labeled" */
if (udebugInfo.recoveryState & UBIK_RECLABELDB) {
*isWriteReady = 1;
}
goto bad;
/*
* if owned by someone other than user or root or if
- * writeable by anyone but the owner, quit
+ * writable by anyone but the owner, quit
*/
if (fstat(fileno(hostf), &sbuf) || sbuf.st_uid
&& sbuf.st_uid != pwd->pw_uid || sbuf.st_mode & 022) {
hotroot = 0;
#ifdef AFS_SUN5_ENV
if (wflag && !writable(*argv)) {
- (void)fprintf(stderr, "not writeable '%s'\n", *argv);
+ (void)fprintf(stderr, "not writable '%s'\n", *argv);
argv++;
} else
#endif
* read lock, or if we do not need to lock it at all, when attaching.
*
* @param[in] mode volume attachment mode
- * @param[in] writeable 1 if the volume is writable, 0 if not
+ * @param[in] writable 1 if the volume is writable, 0 if not
*
* @return how we need to lock the vol header
* @retval 0 do not lock the vol header at all
* @note DAFS only (non-DAFS uses partition locks)
*/
static_inline int
-VVolLockType(int mode, int writeable)
+VVolLockType(int mode, int writable)
{
switch (programType) {
case fileServer:
- if (writeable) {
+ if (writable) {
return WRITE_LOCK;
}
return READ_LOCK;
case V_CLONE:
case V_DUMP:
- if (writeable) {
+ if (writable) {
return WRITE_LOCK;
}
return READ_LOCK;