4821 Commits

Author SHA1 Message Date
Andrew Deason
46a95257cc DEVEL15-man-page-fileserver-debug-20071225
LICENSE BSD

The file server debug flag is -d, not -debug.


(cherry picked from commit 9f97c5cf74358116a109a4982588d61164456714)
2007-12-25 22:23:43 +00:00
Jeffrey Altman
bf65f02e62 DEVEL15-windows-callback-revoke-multi-cell-servers-20071225
LICENSE MIT

Remove the callback revoke optimization that prevents a (vol,vn,uniq)
tupple from invalidating entries from multiple cells.  We cannot reliably
determine the cell from the server because the server might be identified
as belonging to more than one cell.  For example, openafs.org and
grand.central.org.


(cherry picked from commit 69d62d59689c7cd9758177f1f23d3b60df3a8a40)
2007-12-25 22:01:44 +00:00
Jeffrey Altman
efb0e9ebd8 DEVEL15-windows-hold-server-mutex-for-vol-list-20071223
LICENSE MIT

When walking or modifying the cm_server_vols_t associated with a given
cm_server_t the mutex must be held.  Otherwise, races can occur.


(cherry picked from commit b0bae13aec9acb944d5d6a64c11df857ffc40eb3)
2007-12-24 05:30:37 +00:00
Jeffrey Altman
50bf917efd DEVEL15-windows-daemon-threads-shutdown-sync-20071223
LICENSE MIT

Windows Error Reporting received crashes caused by a failure to synchronize
the shutdown of the AFS client service with the background daemon threads.
The daemon threads (cm_Daemon, cm_BkgDaemon+, cm_IPAddrDaemon) could be
accessing data structures as they were being freed or unmapped.

Add synchronization mechanisms to signal the termination of the threads
with the shutdown of the service.


(cherry picked from commit 8a923a199d91aae6d1fc9bb6a2f1856fe5dbcb07)
2007-12-24 05:24:14 +00:00
Jeffrey Altman
a4dc1317ca DEVEL15-windows-update-volume-status-20071223
LICENSE MIT

Refactor cm_UpdateVolumeStatus.  Revise behavior to treat volid 0 as
update the volume status for all volumes in the volume group.


(cherry picked from commit 815cd6f19ec37330e7829506c1208c9426b3a41f)
2007-12-24 05:19:09 +00:00
Jeffrey Altman
f3d00f8f23 DEVEL15-windows-server-lock-error-20071224
LICENSE MIT

The cm_serverLock must be write locked to modify the refCount


(cherry picked from commit 1b90fc5329dc7dd2055ab9150e3709b2b2cfac06)
2007-12-24 05:15:42 +00:00
Jeffrey Altman
a1076e12af DEVEL15-windows-volstat-and-vista-dfs-support-20071222
LICENSE MIT

This patch completes the implementation of smb_ReceiveTran2GetDFSReferral()
which is called by Vista even if we do not advertise the support of DFS
referrals.  It also adds DFS link mapping notifications to the volstat
interface which can be used by volstat plug-ins to redirect requests to
the dfs target path.

Other miscellaneous items:

(1) return EAS_NOT_SUPPORTED instead of EA length 0 and silently accepting
    but not storing EA data

(2) Call cm_VolStatus_Service_Started() before smb initialization instead
    of afterwards

(3) During directory enumeration and link assembly push the UNC path into
    the lower levels by storing references to the tidPath and the relative
    paths within the cm_req_t object.

(4) During directory enumeration make absolutely sure that we do not
    reference an unallocated cm_dirEntry_t object

(5) publish a prototype for cm_FollowMountPoint()

(6) return ERROR_RETRY instead of BAD_NETWORK_PATH if the server returns
    VBUSY

(7) return PATH_NOT_COVERED instead of BADSHARENAME for DfsLinks when
    a volstat plugin is in use


(cherry picked from commit 150919d690eca9ee00d3ce549554a058662c360c)
2007-12-23 04:52:58 +00:00
Jeffrey Altman
eb71f6a0a1 DEVEL15-windows-freelance-scache-20071222
LICENSE MIT

(1) remove a race condition caused by holding and releasing the
    cm_Freelance_Lock while using a pointer into a private freelance
    data structure

(2) do not reference a localMountPoint object that is not allocated

(3) properly assign the DFSLINK file type

(4) update the buffer data versions when we update the contents of
    the stat cache object and its buffers to match the registry
    contents


(cherry picked from commit bb77b085ff420d8b13c1a71b3144b6b31258ad3d)
2007-12-23 04:16:54 +00:00
Jeffrey Altman
e3c7a1e756 DEVEL15-windows-pioctl-listlink-20071222
LICENSE MIT

In the error case (1) reference the mountPointString instead of the
output of cm_AssembleLink() which was not generated and (2) do not
free memory and objects that were not allocated nor reference counted.


(cherry picked from commit 111fb3a0a9525bb9d618dfa23cd1df3eb8eb61c5)
2007-12-23 03:44:58 +00:00
Jeffrey Altman
84cf7ecd86 DEVEL15-windows-freelance-20071222
LICENSE MIT

remove unused next field in cm_localMountPoint_t


(cherry picked from commit 0421cb2afcc19f05e83a2e415c3e93df8516da98)
2007-12-23 03:39:59 +00:00
Jeffrey Altman
10e8a05fb2 DEVEL15-windows-fix-cb-expiration-20071222
LICENSE MIT

corrects cb expiration that was broken by the osi_Time() -> time() change
in delta windows-readonly-volume-callbacks-20071109


(cherry picked from commit 89203eb7065d7bd4e2a40f2afd5fab979ddf1008)
2007-12-23 03:27:29 +00:00
Derrick Brashear
861a8762b4 DEVEL15-darwin-dont-assert-on-lock-state-in-remove-20071219
LICENSE IPL10

remove panic due to lock being grabbedin another thread can't be accurately
covered with this test on darwin, as e.g. proc_selfthread() is not in the KPI


(cherry picked from commit f54187bfc59797fe955e779d432d155ab3792022)
2007-12-19 20:57:55 +00:00
Derrick Brashear
79c3dfcaef DEVEL15-fix-verbose-vos-dump-20071217
LICENSE IPL10

fix verbose vos dump to not put garbage in the stream when dumping to stdout


(cherry picked from commit b072deb257da24746e8c1ec2b01ff3b779e866c8)
2007-12-18 15:16:31 +00:00
Chaskiel M Grundman
1a7e37c141 DEVEL15-shlibafsrpc-export-more-20071217
LICENSE IPL10

shlibafsauthent uses these, export them


(cherry picked from commit 49a968ab68c9f0014d3d5801893c280d00696940)
2007-12-17 21:12:57 +00:00
Chaskiel M Grundman
9895831a6d DEVEL15-comerr-rename-20071217
LICENSE IPL10

the mapfile was renamed so this got dropped in pullup
2007-12-17 20:49:39 +00:00
Adam Megacz
8a75ccfb90 DEVEL15-java-admin-interface-updates-20071214
LICENSE IPL10

pdate java admin interface including support for 1.5


(cherry picked from commit f72145f79a2f9b04a042de93940456a41cb6e8b0)
2007-12-14 21:35:55 +00:00
Jeffrey Altman
e0861ff42b DEVEL15-windows-make-cleanup-20071214
LICENSE MIT

Modify the dependencies for building the cbd and file server resource
files and delete the resource files as part of 'clean'.


(cherry picked from commit 77c86d6fd39cb8e21f2028292e682155dd587803)
2007-12-14 13:35:39 +00:00
Jeffrey Altman
7053b5bc22 DEVEL15-emulate-vsyslog-20071214
LICENSE IPL10

Do not include vsyslog on Windows.

Include syslog.h for the syslog() prototype.


(cherry picked from commit 059031b3c6ff61340daad288deb378dc48cbd43a)
2007-12-14 13:19:43 +00:00
Derrick Brashear
79fb0e6508 DEVEL15-aix-lam-aklog-set-token-name-20071213
LICENSE IPL10

so we set an afs id in the tokens here also


(cherry picked from commit bf26bc9486de7831ae298b11e9ca33ac14ed92a7)
2007-12-13 23:06:08 +00:00
Derrick Brashear
6337cbab32 DEVEL15-emulate-vsyslog-20071213
LICENSE IPL10

aix 5.3 lacks vsyslog. the fixed buffer is poor, but...


(cherry picked from commit ea3d49eaea3d825e5b328e0fbb4382fe5b0249cd)
2007-12-13 22:41:53 +00:00
Derrick Brashear
c0271c31a5 DEVEL15-aix-curpag-redux-20071213
LICENSE IPL10

add curpag() support for aix, based on work by tom keiser


(cherry picked from commit af3a4e78523596427235b45fc1892725a29bd1d6)
2007-12-13 21:22:39 +00:00
Simon Wilkinson
ef005a57be DEVEL15-redhat-rpm-mockable-20071213
LICENSE IPL10

make us able to autobuild with mock. (may need krb5-devel outside the
if krb5support; if we do more thought will be involved)


(cherry picked from commit fcc8aa021f6305209fb8cf638d5446206029f581)
2007-12-13 20:06:26 +00:00
Derrick Brashear
48c758109c DEVEL15-vcache-track-maxvcount-accurately-20071213
LICENSE IPL10

if we can alloc more vnodes, and we are looking for vlru cycles, a legit
vnode is not indicative of a cycle.


(cherry picked from commit 51d6d9cbbc5971623097624a58e400cf8ab5e5ab)
2007-12-13 19:47:46 +00:00
Derrick Brashear
eecd963f65 DEVEL15-shutdown-cleanup-20071213
LICENSE IPL10

get rid of cold_shutdown; it's in afs_prototypes.h.
log when we don't clean up memory


(cherry picked from commit b33fb96fff39c421064d03ff058dde76f2aeed8b)
2007-12-13 19:18:29 +00:00
Jeffrey Altman
8cf0381646 DEVEL15-windows-afslogon-null-pointer-deref-20071211
LICENSE MIT

'tokenUser' can be dereferenced when NULL if GetTokenInformation() fails.


(cherry picked from commit 8f84815d0d8c9cc0b49eb29bfceeb03a7ae7f04f)
2007-12-12 04:25:38 +00:00
Mike Meffie
f59669b16a DEVEL15-afs-serveriprank-return-void-20071211
LICENSE IPL10

can't return 0 from void function


(cherry picked from commit 319ad227d12b8ab301d464c2460be74f7a44ec4d)
2007-12-11 21:30:04 +00:00
Mike Meffie
a0abdcd99b DEVEL15-vldb-check-dont-return-int-from-void-20071211
LICENSE IPL10

void functions shouldn't return 0


(cherry picked from commit 2e057314d957a8854ee3c912715a916c3f002863)
2007-12-11 20:43:50 +00:00
Derrick Brashear
c2db2e5c7c DEVEL15-butc-no-retval-in-void-func-20071211
LICENSE IPL10

fix the build again


(cherry picked from commit bc70f0f0abcc0843c23a0f63ee6b2ad6b842983d)
2007-12-11 16:27:06 +00:00
Derrick Brashear
1a7f3b21b7 DEVEL15-ubik-avoid-truncating-live-database-during-recovery-20071210
LICENSE IPL10
FIXES 77183

currently we can truncate the live database while we are doing recovery.
address that.


(cherry picked from commit 0f9529171c37c4ef1e76156da111d83d04b38505)
2007-12-10 22:45:55 +00:00
Derrick Brashear
a695815869 DEVEL15-afs-shutdown-cleanup-20071210
LICENSE IPL10
FIXES 74479

clean up allocated resources when we shut down


(cherry picked from commit f5fde5736f333e284a244467641f08727481b4ae)
2007-12-10 22:42:30 +00:00
Mike Meffie
0af46a9fa3 DEVEL15-find-cpp-from-slash-20071210
LICENSE IPL10

find cpp using a full path, not the user's path, at least for now


(cherry picked from commit e26be7b8e3c8ca73e6ef6640c7d2b8d8200a0c65)
2007-12-10 22:26:24 +00:00
Jeffrey Altman
871f79b8a0 DEVEL15-windows-remove-out-of-date-buffers-from-hash-tables-20071210
LICENSE MIT

When a cm_MergeStatus operation determines that the current data buffers
are out of date, remove them from the buffer hash tables in order to speed
the lookup of valid data buffers.


(cherry picked from commit 649194188e4af21370faa1bf1217a887adae2572)
2007-12-10 20:45:16 +00:00
Jeffrey Altman
fd7856fa5d DEVEL15-windows-buffers-20071210
LICENSE MIT

after removing cm_buf_t objects from the hash tables, clear the HT list
pointers to make debugging easier.

when modifying data version values in buf_ForceDataVersion() grab a
read lock on buf_globalLock instead of a write lock.  A write lock is
only required if the hash table linked lists are being modified.
The dataVersion itself is protected by the cm_scache_t mx mutex being
held.


(cherry picked from commit ef5e9a4dd7a4977d7d9f41266f2a0c491720e387)
2007-12-10 20:35:06 +00:00
Carsten Jacobi
2dd74f42d3 DEVEL15-pam-expires-setting-should-be-32bit-20071210
LICENSE IPL10

store as a 32 bit value explicitly so 32 bit routines don't leave garbage around here.


(cherry picked from commit c057063abea93733170c1b31c91b52050a150a98)
2007-12-10 18:28:07 +00:00
Mike Meffie
165289dbfa DEVEL15-uss-lex-more-forward-decls-20071210
LICENSE IPL10

forward declare this so picky compilers will do their jobs.


(cherry picked from commit 8114be0c6a311007125d6c01b9e0ee7a16b71c29)
2007-12-10 18:22:34 +00:00
Derrick Brashear
3fb09e368f DEVEL15-cnvldb-prototypes-20071209
LICENSE IPL10

forward declare these


(cherry picked from commit c6db6a90bee37f91c56d1aa1c4ed5657c353b3a0)
openafs-devel-1_5_28
2007-12-09 23:35:37 +00:00
Derrick Brashear
36cc66d87a DEVEL15-aklog-no-dummy-write-on-aix5-20071209
LICENSE IPL10

don't do the dummy write on aix5. we are better off actually working


(cherry picked from commit 40307b60236c8e43321a31ab524ec6edd61cbabf)
2007-12-09 06:07:31 +00:00
Derrick Brashear
8f98479170 DEVEL15-writedcache-enforce-xdcache-writelock-20071208
LICENSE IPL10
FIXES 59136

in order that the writes to CacheItems not be addled, we need to *actually*
hold a *write* lock when we write. not even just read as the comment says.

and certainly not none as was happening in the dir package.


(cherry picked from commit c0a04c21cf36e4c8e25be9703f715f30d1bf55a6)
2007-12-08 17:59:06 +00:00
Derrick Brashear
5386bfa163 DEVEL15-linux24-kernel-configure-test-20071208
LICENSE IPL10

on linux 2.4 the try kbuild macro needs to try harder to notice what
symbols we don't have


(cherry picked from commit 55e581824fceea149b9a48ee928aa76e97c009a8)
2007-12-08 17:46:09 +00:00
Jeffrey Altman
273ed844e0 DEVEL15-windows-wix-afslogon-20071207
LICENSE MIT

Move afslogon.dll and afscpcc.exe to the OpenAFS\Client\Program directory


(cherry picked from commit 68021a6f2bf692e20044bb932501112934a09bac)
2007-12-07 21:34:12 +00:00
Jeffrey Altman
29665a9160 DEVEL15-windows-release-notes-20071207
LICENSE MIT

more updates for 1.5.28
2007-12-07 16:06:24 +00:00
Jeffrey Altman
daddcce435 DEVEL15-windows-follow-backup-path-20071207
LICENSE MIT

Add a registry value, FollowBackupPath, that provides the Windows cache
manager with functionality equivalent to the UNIX afsd -backuptree option.


(cherry picked from commit ab939a6216161cd6afab74e60ca87d376145651c)
2007-12-07 16:05:22 +00:00
Jeffrey Altman
938298512f DEVEL15-windows-version-20071207
LICENSE IPL10

1.5.2800.0 == 1.5.28
2007-12-07 15:57:04 +00:00
Jeffrey Altman
88cc8cbe18 DEVEL15-windows-notes-20071207
LICENSE IPL10

another change for 1.5.28
2007-12-07 15:54:21 +00:00
Derrick Brashear
fea585eb4e DEVEL15-openafs-1-5-28-20071206
LICENSE IPL10

make 1.5.28
2007-12-07 04:47:22 +00:00
Jeffrey Altman
aee584aad4 DEVEL15-viced-cbstuff-20071205
LICENSE IPL10

Keep track of AddCallBack calls in cbstuff.

Increment cbstuff.DeleteCallBacks after holding H_LOCK


(cherry picked from commit 974ad01826f39c817834c6377cf2872177fa7031)
2007-12-05 20:43:57 +00:00
Jeffrey Altman
496ed80bd6 DEVEL15-cbd-20071205
LICENSE IPL10

Windows requires open() to be called with O_BINARY otherwise Ctrl-Z
means EOF which breaks dumpfile processing.

Be consistent about writing/reading time as afs_uint32 instead of
writing as afs_uint32 and reading as time_t since time_t can be 32-bit
or 64-bit depending on the platform.


(cherry picked from commit 946f416577914aef5b31e398994fb8876b4ee5e9)
2007-12-05 20:33:30 +00:00
Derrick Brashear
4956f41b85 DEVEL15-largefile-avoid-wraparound-write-to-old-server-20071204
LICENSE IPL10
FIXES 73720

apply analogous check that's in fileserver to clients writing to old servers


(cherry picked from commit d13cd42cb4e0b2fe3f91565eac37dc3f3e6d3270)
2007-12-04 21:09:49 +00:00
Derrick Brashear
85352be763 DEVEL15-inode-convertro-dont-include-volser-code-in-viced-20071204
LICENSE IPL10
FIXES 77574

viced isn't an fssync client; avoid the convert volser code there


(cherry picked from commit 58dd384ba4020c924604ab612276948803333549)
2007-12-04 21:03:33 +00:00
Derrick Brashear
227fae158b DEVEL15-linux-nfs-translator-dont-lose-nfs-pag-on-write-20071204
LICENSE IPL10

avoid issue where nfs writes through the translator could become unpag'd because a background daemon came into play


(cherry picked from commit ebbd12f3ab83eafa0d8cd6978a45a4cc0b248334)
2007-12-04 20:40:53 +00:00