From 881aaf80cd2590925fad3eb4746ccd914e7ffd0d Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Sun, 15 May 2011 00:32:40 -0700 Subject: [PATCH] Fix misspelling of writable as writeable Caught by Lintian in the strings in the butc binary, so I did a global search for any other occurrences. Change-Id: I5d5b433e716a62dc43d1c5376841e41d49e29ba5 Reviewed-on: http://gerrit.openafs.org/4657 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- doc/arch/dafs-overview.txt | 2 +- src/WINNT/afsd/smb.c | 2 +- src/butc/lwps.c | 2 +- src/libadmin/cfg/cfgservers.c | 4 ++-- src/sgistuff/rcmd.c | 2 +- src/vfsck/main.c | 2 +- src/vol/volume_inline.h | 8 ++++---- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/doc/arch/dafs-overview.txt b/doc/arch/dafs-overview.txt index 3460e6e3d..ac3e53a26 100644 --- a/doc/arch/dafs-overview.txt +++ b/doc/arch/dafs-overview.txt @@ -358,7 +358,7 @@ lock cannot cause any process to just hang, waiting for a lock. -- 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 diff --git a/src/WINNT/afsd/smb.c b/src/WINNT/afsd/smb.c index 1ede828ef..79a926101 100644 --- a/src/WINNT/afsd/smb.c +++ b/src/WINNT/afsd/smb.c @@ -1931,7 +1931,7 @@ int smb_FindShare(smb_vc_t *vcp, smb_user_t *uidp, 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) { diff --git a/src/butc/lwps.c b/src/butc/lwps.c index 1bceba71e..47bc3fad2 100644 --- a/src/butc/lwps.c +++ b/src/butc/lwps.c @@ -564,7 +564,7 @@ PrintPrompt(int flag, char *name, int dumpid) 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; diff --git a/src/libadmin/cfg/cfgservers.c b/src/libadmin/cfg/cfgservers.c index 9cf79da65..332879255 100644 --- a/src/libadmin/cfg/cfgservers.c +++ b/src/libadmin/cfg/cfgservers.c @@ -2108,7 +2108,7 @@ UbikVoteStatusFetch(int serverAddr, unsigned short serverPort, *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)) @@ -2128,7 +2128,7 @@ UbikVoteStatusFetch(int serverAddr, unsigned short serverPort, *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; } diff --git a/src/sgistuff/rcmd.c b/src/sgistuff/rcmd.c index 0cb62eb0d..da632729d 100644 --- a/src/sgistuff/rcmd.c +++ b/src/sgistuff/rcmd.c @@ -419,7 +419,7 @@ ruserok(rhost, superuser, ruser, luser) 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) { diff --git a/src/vfsck/main.c b/src/vfsck/main.c index ad14eeed9..5485da31c 100644 --- a/src/vfsck/main.c +++ b/src/vfsck/main.c @@ -383,7 +383,7 @@ main(argc, argv) 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 diff --git a/src/vol/volume_inline.h b/src/vol/volume_inline.h index 571f3084b..3f1f0afd7 100644 --- a/src/vol/volume_inline.h +++ b/src/vol/volume_inline.h @@ -219,7 +219,7 @@ VCanUnlockAttached(void) * 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 @@ -229,11 +229,11 @@ VCanUnlockAttached(void) * @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; @@ -256,7 +256,7 @@ VVolLockType(int mode, int writeable) case V_CLONE: case V_DUMP: - if (writeable) { + if (writable) { return WRITE_LOCK; } return READ_LOCK; -- 2.39.5