mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 21:47:45 +00:00
DEVEL15-windows-vnodeops-20080208
LICENSE MIT Add support for returning RANGE_NOT_LOCKED errors Do not attempt to add a mount point for share names of the form <cell><mount-type><volume>. Its just a big waste of time. DNS queries and CellServDB file searches are expensive. (cherry picked from commit 0caf7c54dfac30c92587031af6a902f4d33b2e22)
This commit is contained in:
parent
49bd277d28
commit
efc997dd00
@ -1284,7 +1284,8 @@ long cm_LookupInternal(cm_scache_t *dscp, char *namep, long flags, cm_user_t *us
|
|||||||
else
|
else
|
||||||
return CM_ERROR_NOSUCHFILE;
|
return CM_ERROR_NOSUCHFILE;
|
||||||
}
|
}
|
||||||
else { /* nonexistent dir on freelance root, so add it */
|
else if (!strchr(namep, '#') && !strchr(namep, '%')) {
|
||||||
|
/* nonexistent dir on freelance root, so add it */
|
||||||
char fullname[200] = ".";
|
char fullname[200] = ".";
|
||||||
int found = 0;
|
int found = 0;
|
||||||
|
|
||||||
@ -4740,7 +4741,7 @@ long cm_Unlock(cm_scache_t *scp,
|
|||||||
lock_ReleaseRead(&cm_scacheLock);
|
lock_ReleaseRead(&cm_scacheLock);
|
||||||
|
|
||||||
/* The lock didn't exist anyway. *shrug* */
|
/* The lock didn't exist anyway. *shrug* */
|
||||||
return 0;
|
return CM_ERROR_RANGE_NOT_LOCKED;
|
||||||
}
|
}
|
||||||
|
|
||||||
lock_ReleaseRead(&cm_scacheLock);
|
lock_ReleaseRead(&cm_scacheLock);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user