LICENSE BSD
Add new man pages for fs chown and chgrp on Windows.
Update titles for Windows only commands to indicate they are Windows only.
(cherry picked from commit 4db337f87c0170380037593d1c998fb1b9819aa3)
LICENSE IPL10
FIXES 125001
check for key_type_keyring being exported; only use it if so
(cherry picked from commit 4ca66112c2a012e04619445275507ae9cd6c11da)
LICENSE MIT
On Windows there is no chown or chgrp command that can be used to
change the owner or group of an object in AFS. Therefore we
add them to the fs command.
Usage: fs chown -owner <user name or id> [-path <dir/file path>+] [-literal] [-help]
Where: -literal literal evaluation of mountpoints and symlinks
Usage: fs chgrp -group <user/group name or id> [-path <dir/file path>+] [-literal] [-help]
Where: -literal literal evaluation of mountpoints and symlinks
(cherry picked from commit ffd065a69578ad26c860b0b3e54053d6432c4a21)
LICENSE MIT
Add a debug log warning if the target volume is a DFS File Set.
If so, the client will not properly protect against information
leakage or properly deal with directory name caching, symlinks,
and other behavioral differences between AFS and DFS.
(cherry picked from commit efdf78ae086ba02cc3f6ffbd7b0a2ca31743ced7)
LICENSE MIT
FIXES 125018
Fix issue reported by Marc Dionne. RXAFS_FetchData and RXAFS_StoreData
return access denied errors that are not reported by the subsequent
call to rx_EndCall which should be preferred.
(cherry picked from commit a50fa631cad6919d15721ac2c234ebbdda2b4031)
LICENSE IPL10
FIXES 18349
generating v tags is currently incompatible. revert this for now
(cherry picked from commit f202b9778e4489fd80288c5be36e3c102b0cfba9)
LICENSE IPL10
FIXES 124996
massaging this for 1.5.x/head caused some fallout. fix doubled endif, and
install_session_keyring arguments
(cherry picked from commit 3d5415922ea4ede4ce538d7894a6062bf115c6bd)
LICENSE MIT
short circuit on-going offline volume checks once a shutdown has begun.
(cherry picked from commit 307e077b2343b73731d7f21f422b7a130caf12c7)
LICENSE MIT
cm_Link() is used to create hard links. It did not apply the updated
link target status info to the target cm_scache_t object. As a result
the linkCount would be incorrect.
cm_Unlink() did not take linkCount into account. It did not reduce the
locally known linkCount, nor did it invalidate any currently known
callback. As a result the linkCount would be incorrect.
(cherry picked from commit b8a1dba29367c9786a5f43c90b0a000ff4d4315d)
LICENSE MIT
Properly handle callbacks from multi-homed file servers.
Comparing cm_server_t pointers is insufficient. For a multi-homed
server there will be multiple entries. The UUID for all of the
equivalent entries will be the same. What matters is not that
the pointers are the same but whether in the case of UUID labeled
servers that the UUIDs match.
Add cm_ServerEqual() to perform the comparison.
(cherry picked from commit d54859c6ac2e5186b18da027303860966504dbd9)
LICENSE MIT
Readonly volume callbacks apply to every cm_scache_t from the
same volume. We were already tracking the cbExpires time in
the cm_volume_t. We need to also track the cbServerp in the
cm_volume_t so that the cm_scache_t objects can be assigned
the correct server from which the callback was issued.
Add cbServerpRO field to the cm_volume_t. Bump the memory
map version to force a rebuild of the cache data.
(cherry picked from commit 100186ec2e4ca5046e1bc312918d4630de00bc7e)
LICENSE IPL10
put this back as was for now; if we want to undef, we can do it later, completel
y
(cherry picked from commit e43342e3778524a68219875b5fdc6fae0adbef1f)
LICENSE IPL10
FIXES 124951
make things happy for rpmlint again (wrong initialization)
(cherry picked from commit 4ac7d59d464d66322a2925c86e955cd8d8067f75)
LICENSE BSD
1. Add a test program for *printf functionality. util/tests/snprintf_test.c
2. Replace OpenAFS implementation of afs_*printf() with Heimdal's version.
3. Add support to Heimdal's version to support:
- floating point
- OpenAFS %I ipv4 address formatting (dotted notation and hostname lookup)
- Microsoft's I32 and I64 integer size modifiers
With these changes OpenAFS gains:
- output that is compliant with standard *printf implementations.
the previous implementation had justification, padding and case
errors.
- support for a NULL buffer which computes the required size based
upon the input format and arguments. the previous implementation
would crash.
- support for additional format types.
- OpenAFS specific implementations of vasnprintf(), vasprintf(),
asprintf(), and asnprintf().
(cherry picked from commit b45838ca82a085360491b14fdb16e88612a43165)
LICENSE IPL10
FIXES 124942
call inode's setattr op instead of just inode_setattr, when one is available.
needed for xfs, notably also will cause truncates to be journalled for ext3,
which may solve some existing issues
(cherry picked from commit b02e22b5f0590929ef9120da4799ca9a47fa3aeb)
LICENSE MIT
The CellServDB processing in auth/cellconfig and WINNT/afsd/cm_config
differ in one important way. cellconfig uses the IP addresses specified
in the CellServDB file and ignores the host name; whereas cm_config
calls gethostbyname() on the host name and falls back to the specified
address only if gethostbyname() fails.
This commit modifies cellconfig to use gethostbyname() calls on the
host names when the client CellServDB file is being used. The server
CellServDB file is left alone because ubik servers need to be given
the exact list of ip addresses specified by the administrator and
there is no method of indicating clones to other servers using DNS.
This change permits a greater resilency to cell server configuration
changes due to IP address renumbering as the DNS names in the CellServDB
file can be CNAME or A records.
A host name can be resolved to multiple IP addresses and all of the
addresses will be added to the hostAddr list for the cell provided
that they do not exceed the maximum number of hosts. If the same
host name is listed multiple times the duplicate IP addresses will
be ignored.
The behavior of all tools that use CellServDB files on Windows will now
be consistent.
(cherry picked from commit 0200a40061a70c8e768f7510604839aaa7925a28)
LICENSE MIT
When processing RX_CALL_TIMEOUT, if there is no fid specified its a vldb
rpc and we should retry. If there is a fid and the volume is a readonly
volume then we should also retry. Only fail if the request has no alternate
server to look at.
When processing RX_CALL_DEAD, log the fact that the call is dead.
When processing any other RX error between -2 and -64, do not force
a new connection to the same server. Mark the server down and retry
with a new server if possible.
(cherry picked from commit 82d9807e2246997ac73930c91d1ad4312084cc57)
LICENSE MIT
Add registry based cell search functionality to afs_config.exe
even though the tool is close to useless at this point.
(cherry picked from commit 377b8c176fde2cab27d27c644b6966bf153daad5)
LICENSE MIT
add registry based cell search to ka_UserAuthenticateGeneral2()
which is used by klog() and afslogon.dll when no kerberos support
is available.
(cherry picked from commit 3af8eafae68b7260941b59346720730410f97944)
LICENSE MIT
Forgot to update the afs provider to support registry based cellservdb
lookups
(cherry picked from commit 4bf09a2ebfabede83cdac782de52386423e01927)
LICENSE MIT
reorder some operations and make sure that directories are created
before the installer attempts to generate files into them.
(cherry picked from commit 3e26e46b660f2e92eb9c693f9a3c4f97f2acd80c)
LICENSE MIT
When inserting a new vldb server, if the rank is 0 (unknown), do not
override the default rank assigned by cm_NewServer(). Doing so erases
the randomized ranking.
(cherry picked from commit 81c9b8c0c4ddf711872104ba6645c1310093af24)
LICENSE MIT
Add cm_FindServerByUuid(). This function is similar to cm_FindServerByIP()
but uses the server's known uuid instead which is constant across multi-
homed systems.
(cherry picked from commit 88ef4fb720efd8f7c0b130b5bdf35ef840aafc59)
LICENSE MIT
when releasing the capabilities memory allocation use xdr_free() not
the free() of the afsd_service.exe module.
(cherry picked from commit 571dc5edbe76a7e62d47adee8df52bbf532c55bc)
LICENSE MIT
Turn SRXAFSCB_InitCallBackState3() into the primary function for
processing InitCallBackStateX RPCs. InitCallBackState3 accepts an
optional server uuid which can be used instead of the IP address
to locate a matching server object. If the RPC comes from a server
that we know of, we can restrict the calback state initialization
to cm_scache_t objects on that file server. If the request comes
from a server that we know nothing about and a uuid was specified,
we can ignore it.
During callback revocation, make use of the cell associated with
the server to restrict the revocation to cm_scache_t objects in
the one cell. This is especially important for readonly volume
callbacks since volume ids are shared across multiple cells.
Add a missing case where the cm_volume_t cbExpiresRO time should
be set to the cm_scache_t cbExpires time.
(cherry picked from commit a79ce67d7a52a99c10192a92c66a7e10500770bf)
LICENSE MIT
correct cell validation to avoid false detection of infinite loops
if a cm_cell_t object had to be freed.
add newlines to output of volumeHashTableSize and cellHashTableSize
(cherry picked from commit ae1923e36260ff59efb85dda99b5345341bff6d8)
LICENSE MIT
If a freelance mount point does not specify a cell name, default to
the workstation cell.
(cherry picked from commit 37e1cd23195215cd5999be7fa5a8de6af7efebcb)
LICENSE MIT
In the buf_IncrSync thread, if the volume is known to be unavailable
do not attempt to write the buffer. Just skip it.
In buf_Sync(), if we are shutting down and a buffer is left dirty,
log a message to the Windows Event Log indicating that the dirty buffer
was lost.
(cherry picked from commit 2033fa9ec62089887f074381ac118a2c60e9c311)
LICENSE MIT
FIXES 124910
cm_cellLock protects the cm_cell_t fields allNextp, nameNextp, idNextp,
and freeNextp. Therefore, a write lock must be obtained whenever those
items may change. This patch makes that consistent.
This patch also fixes an out of order lock acquisition and removes
cm_cell_t objects from the id and name hash tables before freeing them.
(cherry picked from commit f5b74d9fbcc42ad3a1105df3363e6c22c16fee84)
LICENSE MIT
do not clear the newCellNamep buffer on error.
that is inconsistent with the other SearchCell functions
and breaks "fs newcell".
(cherry picked from commit 7bf6fd6bcbdcb87544798c9634618fccb4678f45)
LICENSE MIT
If there are dirty buffers when the file server becomes unresponsive,
the cache manager will attempt to write them repeatedly resulting in
use of 100% of the cpu of the machine until the file server becomes
responsive.
This patch reduces the cpu utilization by ensuring that only the first
in a list of buffers on the same file needs to fail with timed out,
all down, all busy, all offline, or clock skew. The other dirty buffers
will just be skipped. A small delay is enforced in the buf_IncrSync
thread between invocation.
This patch is not a complete fix for the problem. The buf_IncrSync
thread needs to become more intelligent in order to avoid attempts to
write to volumes that are known to be inaccessible.
(cherry picked from commit bada49cff904c1e783ca9fa81a92036ceae7378d)
LICENSE IPL10
FIXES 124938
make allBetter log more sensibly; right now it's very loud. move it to level 25
(cherry picked from commit e44c38c423fee7f10540ee339c372dce043af10d)
LICENSE IPL10
reserved6 is used for the high portion of the 64 bit length. make the
structure reflect it.
(cherry picked from commit a7f9ce9ce1b2608937c5c3ffc73a2de07abc5fb1)
LICENSE IPL10
FIXES 124492
newly created volumes were not marked "not in use" by the volserver, so the
fileserver would not take them. fix it.
(cherry picked from commit 27cbb188bd1cb3e050c6911b1ddde75c46aa712f)
LICENSE IPL10
FIXES 124916
bos salvage can invoke salvager with -f (instead of -force) which is no
longer unique. fix that.
(cherry picked from commit 2c755529c79492738fec61a5fc311216678a52e7)