Commit Graph

2133 Commits

Author SHA1 Message Date
Jonathan Curley
329f256d42 linux-26-provide-proc-interface-instead-of-syscall-20040507
FIXES 4462

provide /proc file interface to use instead of AFS system call.
doesn't solve the PAG problem.
2004-05-10 05:39:21 +00:00
Derrick Brashear
ad57d95089 snprintf-irix-needs-sys-socket-h-20040510
6.5.9 or so wants sys/socket.h to get AF_INET
2004-05-10 04:43:02 +00:00
Derrick Brashear
05060d5325 provide-fPIC-method-for-amd64-20040508
FIXES 3680

allow building fPIC on amd64
2004-05-10 04:18:58 +00:00
Jeffrey Altman
3812a973cd user-instance-20040508
Enable afscreds.exe to support instance components of usernames
for non-kfw token retrieval
2004-05-09 05:39:05 +00:00
Jeffrey Altman
98bcba1923 case-sensitivity-20040508
Correct the number of parameters to cm_Lookup calls in smb_ReceiveNTCreateX
and smb_ReceiveNTTranCreate.  Also, do not allow directories to be created
if there are any files with names that differ only by case.

Miscellaneous reformatting.
2004-05-09 05:04:52 +00:00
Derrick Brashear
8023007863 kdump-linux-install-typo-20040508
FIXES 4430

fix @? to be $?
2004-05-08 05:50:38 +00:00
Derrick Brashear
75b51e6192 update-README-20040508
update list of supported platforms, slightly
2004-05-08 05:47:10 +00:00
Hartmut Reuter
686eb8de49 aix-dynamic-auth-20040507
FIXES 4278

make dynamic auth work for aix 5
2004-05-08 05:45:36 +00:00
Chas Williams
87f6d5a8f0 writethru-dslots-allocate-once-20040507
FIXES 4071

only allocate once for WriteThroughDSlots
2004-05-08 05:33:07 +00:00
Chas Williams
9e9a617786 dcache-shutdown-free-20040507
FIXES 4070

free dcache list during shutdown
2004-05-08 05:28:35 +00:00
Chas Williams
b660e7d7cd linux26-updates-20040507
FIXES 4068

define NGROUPS if it doesn't exist
2004-05-08 05:26:37 +00:00
Chas Williams
fc25d8cf69 add-shutdown-server-20040507
FIXES 4067

cleanup server list during shutdown
2004-05-08 05:23:56 +00:00
Chas Williams
bfe8ffc727 shutdown-cell-free-cellname-list-20040507
FIXES 4066

also free cellname_list when doing shutdown, part of quest to free all allocated memory
2004-05-08 05:22:19 +00:00
Chas Williams
dd38ea87cf shutdown-vcache-free-after-using-20040507
FIXES 4065

don't free the VClist until after use
2004-05-08 05:20:39 +00:00
Chas Williams
fae4792e91 linux26-update-20040507
FIXES 4027

updates for modversions and for symbols which we don't need to grovel out of the kernel
2004-05-08 04:58:27 +00:00
Joe Buehler
48e39b4943 ntmakefile-20040507
remove extraneous '*' characters from C2OBJ rules
2004-05-07 15:56:00 +00:00
Jeffrey Altman
6b1cb8b1a8 active-mapping-20040506
Write active drive mapping data to afsdsbmt.ini from afs_config.exe
2004-05-06 22:06:58 +00:00
Jeffrey Altman
847d870c14 mounttab-20040506
ensure that we do not access an array with -1
2004-05-06 21:52:16 +00:00
Jeffrey Altman
d941303ccc afsd-20040506
Andrei provided a replacement for the pattern matching algorithm.
It has been applied but the old version is still there and can be
activated with a #define

The KFW_AFS_get_cred() routine does not use the "instance" parameter
so removed it.
2004-05-06 21:46:31 +00:00
Jeffrey Altman
2d78859869 incorrect-filename-after-install-20040506
the TaAfsApp_1033.dll was incorrectly installed as TaAfsAppl_1033.dll
This prevented the user manager from starting
2004-05-06 21:40:03 +00:00
Jeffrey Altman
620cd80707 mkdir-20040506
Make src/WINNT/aklog directory if missing
2004-05-06 21:37:12 +00:00
Jeffrey Altman
9552283298 case-sensitivity-20040506
from asanka@mit.edu

We now strictly prefer exact case matches.  This does incur a
performance penalty because we can no longer be satisfied with an
inexact matches in cache (we make an extra trip to the server to make
sure there aren't any exact matches or pick up the extra match if
there is one).  Of course, the name lookup cache is now case
sensitive.

* cm_dnlc.c : case sensitive name lookup cache
* cm_vnodeops.{c,h} : changes to cm_Lookup to first look for exact matches,
	failing which, look for inexact matches.  Also, only put a name in
	the name lookup cache iff it exactly matches something on the server.
* smb.c : look for exact matches first.
* smb3.c : as above.  Also T2 Search is used by the SMB client to resolve
	filenames.  Respond accordingly.

and:

* added new CM_ERROR_AMBIGUOUS_FILENAME mapped to ERROR_POTENTIAL_FILE_FOUND
  This error is not yet used but is intended for situations in which an
  AFS volume contains two files which differ only by case "Foo" and "FOO"
  and the user says "DEL foo".  Since we do not have an exact match by case
  the existing code deletes one of the two files at random.  In the future
  we want to return an error.
2004-05-06 16:17:29 +00:00
Jeffrey Altman
786ead5cef ipaddrchg-20040506
ipaddrchg.[ch]: contains the ip address change monitor thread functionality
                which was previously in afskfw.[ch] but which is now a
                library in src/WINNT/afsd
2004-05-06 15:21:44 +00:00
Jeffrey Altman
d44da96287 afscreds-20040506
creds.cpp:  add support for principal name instances to the Obtain Tokens
            function.  Previously instances were not parsed.

main.cpp:   Fix the -M (renewMaps) option to always call DoMapShare()

mounttab.cpp: When removing a drive mapping, remove the "active" entry
            from the afsdsbmt.ini file.
2004-05-06 15:19:19 +00:00
Joe Buehler
233fa17c01 lzma-compress-20040505
Use lzma compression instead of bzip2
2004-05-05 19:49:47 +00:00
Jeffrey Altman
e2af5db575 uninitialized-variable-20040504
Do not assign reference to declaration in cases which declaration is
not assigned a value.
2004-05-05 04:24:57 +00:00
Jeffrey Altman
14005bc769 afskfw-library-20040504
Migrate KFW functionality from src/WINNT/client_creds/afskfw* into a
a new library to be shared by afslogon.dll, afscreds.exe

Add KFW support to afslogon.dll

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

Migrate KFW functionality from src/WINNT/client_creds/afskfw* into a
a new library to be shared by afslogon.dll, afscreds.exe

Move IP Address Change Monitor into new source files.

Add smbname support to the KFW set token functionality in afscreds.exe
2004-05-04 23:48:15 +00:00
Nathan Neulinger
48f4c91cb4 dangling-comments-are-bad-20040504
Fix an unterminated comment..  Oops!
2004-05-04 22:38:15 +00:00
Nickolai Zeldovich
0b807876f1 fun-with-a-profiler-20040504
fun with a profiler:  afs_RemoveVCB accounts for 20% of the total AFS
client CPU utilization, even under a moderate vcache turnover rate of
less than 10 new vcache's per second.

introduce a hash on the afs_cbr objects to speed this up.  if you are
seeing your AFS client being CPU-bound, e.g. on your web server, you
may want to try this.
2004-05-04 10:36:01 +00:00
Nathan Neulinger
64b8ee9d88 linux-handle-short-reads-gracefully-20040504
break out of the read loop with EIO if we've reached EOF,
rather than looping forever hoping the file will grow.
2004-05-04 10:31:55 +00:00
Nickolai Zeldovich
5b6b91e6b8 add-missing-uafs-prototypes-20040504
add missing prototypes for uafs_seek
2004-05-04 10:31:11 +00:00
Jeffrey Altman
746aab497c csc_policy_logon_updates-20040503
From Andrei: CSC Policies

Updates to afslogon.dll: attempt lowercased name on authentication failure
if LSA provided name is all upper-case.
2004-05-04 05:05:25 +00:00
Robert S Murawski IV
cedfdb0873 nsis-server-updates-20040501
This implements:

1) Does not delete server config data on uninstall
2) If an upgrade or a re-install with existing server config data, will not auto-start the Server Configuration Wizard.
3) Checks for RPC keys on install.  (I believe you only need one because not all of the keys are required for AFS to work.  However, it might require TCP or UDP based RPC)

Still to do:
1) Server data should be destroyed if user answers "No" to "Do you want to keep your existing configuration data?"
2) If installing when existing server configuration data is present, populate the client cell to be the contents of the "ThisCell" file.
2004-05-02 23:09:22 +00:00
Jim Rees
86c8433bc6 obsd35-20040427
get ready for OpenBSD 3.5 (due May 1)
2004-04-27 20:43:04 +00:00
Jeffrey Altman
e1814aeb84 fixes-from-andrei-20040427
Cleanup the makefile to remove unnecessary defaultlib restrictions

Remove the DST fix added to address Rodney's bug with the timezone being
off by an hour on files one hour after the time change.  Still need to
identify the real cause.

Finally fix once and for all the afsd_service.exe shutdown error.
The ServiceHandler must be declared with the WINAPI calling convention
because it returns a value.
2004-04-27 19:58:48 +00:00
Jeffrey Altman
e116ec1476 release-vs-debug-flags-20040427
Move a few debug only compiler flags into a debug only build section of
the makefile
2004-04-27 19:54:28 +00:00
Jeffrey Altman
f4cc1fdc49 no-mfc-20040427
remove the reference to afx.h.  there is no reason to bring in MFC
for lanahelper.lib.  (thanks to Andrei)
2004-04-27 02:26:01 +00:00
Nickolai Zeldovich
519e7f0669 check-if-compiler-supports-__FUNCTION__-macro-20040426
Add an autoconf check to see if the compiler supports __FUNCTION__ and __LINE__
2004-04-26 22:39:33 +00:00
Jeffrey Altman
a40db2ebc0 kfw-upds-20040422
(1) remove the tkt_lifetime table which is no longer used

(2) improve the handling of token to k5 principal mapping

(3) assign the REALM to the token client name if the realm of
    the cell does not match the realm of the user
2004-04-23 04:43:24 +00:00
Jeffrey Altman
9374963fca ren-msgbox-logfile-20040422
Several fixes:

(1) the log file afsd_logp should not be referenced in the smb modules
    instead the smb_logp should be used

(2) Properly define the dummy_MessageBox function as _stdcall

(3) When afsd_service.exe fails due to a Network Error (IP address change)
    display a MessageBox to the end user

(4) Fix "rename foo foo" to not generate a "destination file exists" error
    (Thanks to asanka)
2004-04-23 04:38:54 +00:00
Chas Williams
171cec34dc linux26-more-updates-20040420
FIXES 4027

        . osi_cred now uses struct group_info
        . the big kernel lock has been moved from the fs generic code
          for some of the operations in 2.6
        . 2.6 now just uses iput() and hooks the appropriate routines
        . the dummy inode list handling should be clearer
2004-04-21 03:20:21 +00:00
Jeffrey Altman
37d106e228 kaanswertoolong-20040420
when determining whether or not the ticket len is too long for the
receiver to accept we want to compare against the actual ticket length
and not MAXKTCTICKETLEN which is what is used when sizeof(ktc_ticketAnswer)
is used for comparison.
2004-04-20 15:56:16 +00:00
Nickolai Zeldovich
daa011af02 more-memory-leak-fixes-20040418
Another memory leak plugged; thanks to Jeffrey Altman for noticing it.
2004-04-19 06:43:58 +00:00
Nickolai Zeldovich
6f22e163a5 memory-leak-fixes-20040417
Fix some memory leaks.
2004-04-18 07:13:47 +00:00
Nickolai Zeldovich
b06c359090 more-uafs-support-20040417
Some more minor uafs fixes
2004-04-18 07:10:33 +00:00
Nickolai Zeldovich
66e04e9f88 add-fs-exa-file-support-20040417
Make "fs exa filename" print out the FID for the filename, not just
the status for the volume containing that file.
2004-04-18 07:09:49 +00:00
Jeffrey Altman
194c348298 uninitialized-20040417
ngroups was uninitialized.  This produced a run-time warning even
though its value was never used in subsequent calls.  set to 0.
2004-04-18 04:16:14 +00:00
Nickolai Zeldovich
733af496e8 more-memory-scrubbing-20040415
Scrub the callBacks array just in case, as we're exposing some
arbitrary kernel stack contents to the user.
2004-04-16 07:26:11 +00:00
Nickolai Zeldovich
5db578e078 dont-leak-random-kernel-data-20040415
Zero out data structure being returned to user, so that we don't
send random kernel memory garbage to them.
2004-04-16 05:57:01 +00:00
Nickolai Zeldovich
cd495f0727 make-uafs-work-a-little-20040415
Make UAFS at least a little more likely to work.
2004-04-16 00:49:13 +00:00