Commit Graph

3971 Commits

Author SHA1 Message Date
Dale Ghent
7756a870f3 solaris10-suser-replace-20061228
FIXES 50246

suser is dead, long live suser
2006-12-28 21:48:25 +00:00
Marc Dionne
84078738ee linux-install-correct-modules-20061228
FIXES 49787

actually install the correct MP/EP/BM et al modules
2006-12-28 21:35:17 +00:00
Marc Dionne
064926fd1b linux-2620-rc1-update-20061228
FIXES 49890

updates for linux 2.6.20-rc1
2006-12-28 21:28:31 +00:00
Derrick Brashear
fe649aac81 afsdb-resolver-reinit-20061228
as reported by Adam Megacz, but my own version of the fix
2006-12-28 20:36:26 +00:00
Derrick Brashear
c454508d39 macos-installer-fix-20061227
make the installer build correctly again
2006-12-27 15:46:26 +00:00
Jeffrey Altman
2a9d3e91d0 windows-server-config-20061226
Reformat the entire directory.

Add Freelance mode awareness.

Map the root.afs volume starting from Z: and work down.
2006-12-26 20:21:16 +00:00
Jeffrey Altman
432bede1e5 windows-optimize-smb-dir-search-if-no-wildcard-20061226
fix the computation of the ShortName.  Take into account the network
byte order of the cm_dirFid_t fields.

send error packets from within the function as needed.  do not return
the error to the caller.
2006-12-26 20:17:25 +00:00
Derrick Brashear
b2601916f6 bosserver-avoid-bosconfig-truncation-20061221
why the heck would it be a good idea to rewrite the BosConfig while we are starting, exactly?

====================
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.
====================

why the heck would it be a good idea to rewrite the BosConfig while we are start
ing, exactly?
2006-12-22 06:45:40 +00:00
Derrick Brashear
0420827630 split-cache-update-20061220
move closer to 1.4 implementation esp when split cache is turned off
2006-12-20 21:17:12 +00:00
Dale Ghent
c1c2a80c1b solaris10-avoid-direct-cred-access-20061220
avoid a panic after we muck with groups by being less evil
2006-12-20 20:07:02 +00:00
Jim Rees
f4247e465d strl-20061220
convert sys_errlist -> strerror, strcat ->strlcat, strcpy -> strlcpy
2006-12-20 17:03:59 +00:00
Jeffrey Altman
ea60a4dd39 windows-afslogon-20061219
Initialize Winsock from within afslogon.c so that ka_UserAuth will
work again.
2006-12-19 17:55:44 +00:00
Hartmut Reuter
7a2d34be17 volser-dumpstuff-20061218
FIXES 46937

"vos release" per default does an incremental dump.
volser-dump-validate-input-20060417 ends up with keeping dead vnodes and
data in the remote RO-volume.  This patch corrects the behavior for
RO-volumes.

See ticket for extensive discussion.
2006-12-19 04:50:16 +00:00
Chas Williams
db8339c3c4 rx-mtu-fixes-20061218
http://www.openafs.org/pipermail/openafs-devel/2006-November/014487.html
2006-12-19 04:35:29 +00:00
Derrick Brashear
d229d72fa7 kernel-endianness-test-fix-20061218
FIXES 47893

ok, so, when we're in the kernel, do something
2006-12-19 04:29:13 +00:00
Derrick Brashear
8a7e66fb28 openafs-kernel-src-fix-20061218
FIXES 44573

ok, so, we need to emit Makefile.version when we build openafs-kernel
2006-12-19 04:18:48 +00:00
Jeffrey Altman
13cc6c5c37 volser-undo-cleanup-20061218
uncommit an inappropriate commit

  DELTA volser-cleanup-xx-20061128
2006-12-19 03:37:34 +00:00
Derrick Brashear
acca80fd67 rx-globals-avoid-INIT-reuse-20061218
FIXES 45515

avoid calling our macro INIT
2006-12-19 03:17:57 +00:00
Jeffrey Hutzelman
c4adc63872 volume-dont-artificially-untimeout-vlservers-20061218
FIXES 48959

remove synthetic event to undo timeouts of vlservers we "haven't talked to yet"
2006-12-19 02:32:55 +00:00
Chas Williams
01c0e029f7 linux-osi-cred-pool-byebye-20061218
ok, unneeded abstraction removed.
2006-12-19 02:28:19 +00:00
Jeffrey Altman
8a1debde84 windows-afslogon-20061218
test for the existence of the mutex and not the bInit flag
during the DLL attach
2006-12-18 23:56:19 +00:00
Asanka Herath
a1c31b6637 windows-install-wix-20061218
remove the AFS Server wizard shortcut

add AFS Server dependencies (tcpip and PNP_TDI)
2006-12-18 22:33:15 +00:00
Jeffrey Altman
a7ea1f2efd windows-nsis-20061218
remove the autorun for the AFS Server Wizard

remove the shortcut to the AFS Server Wizard

update the service dependencies for the bosctlsvc (tcpip and PNP_TDI)
2006-12-18 21:44:11 +00:00
Asanka Herath
a57531592b windows-optimize-smb-dir-search-if-no-wildcard-20061217
When performing a SMB FindFirst/FindNext/FindClose operation if there
are no wildcards involved, we can optimize the case and turn it from
O(n) to O(1) where 'n' is the number of entries in the directory.
This can be done by performing a cm_Lookup() and if it succeeds,
constructing the appropriate response instead of parsing the contents
of each buffer associated with the directory looking for matches.

Without this optimization, FindFirst operations on directories containing
thousands of entries can take a large number of seconds to complete.
2006-12-17 21:05:28 +00:00
Jeffrey Altman
5b56a0b8eb rx-fix-lock-init-20061216
When rxBind was added it made an assumption that rx_GetIFInfo could be
called before rx_InitXYZ.  This is true on non-Windows platforms, but
on Windows rxGetIFInfo relies on an initialized mutex.  This patch adds
a DllMain for Windows in order to initialize the mutex object upon DLL
load.
2006-12-17 01:21:52 +00:00
Derrick Brashear
d5583808e8 vldb-repair-tool-20061216
make vldb_check able to repair at least some kinds of damage

run it on a vldb which does not have a server operating live on it
verify the result with vldb_check before using.
2006-12-16 06:25:24 +00:00
Derrick Brashear
35fae890e2 ubik-better-debug-logging-in-remote-20061215
log when we get errors doing remote sync what it was, rather than covering it up
2006-12-15 16:37:03 +00:00
Jeffrey Altman
04daebb95e windows-custom-control-subclassing-bis-20061212
Do not link to both talocale.lib and taafsapplib.lib.

If you do, then there are duplicate functions in both the .EXE and
the TaAfsAppLib.DLL.
2006-12-13 00:25:23 +00:00
Jeffrey Altman
70c350c6d0 windows-custom-control-subclassing-20061212
While investigating the reasons behind the Drive Mapping listbox
failing to permit entries 2 or above to be edited or removed and
the text string being truncated to two characters (on some systems)
I discovered that the subclasses were being recompiled into each
application instead of linking against the DLL that contains the
controls.

The custom controls have been renamed to address name space issues.

The "Drive X:" label changed to "X:" to permit single character item
selection within the listbox.

Still have no idea what is really going on.  Spy++ shows the Windows
messages being sent to the correct Windows.  However, the getcount
message never obtains a value other than 0 or 1.  This is probably
why the selection code is broken.  Still working on it.
2006-12-12 20:37:44 +00:00
Jeffrey Altman
f126802236 windows-sleep-when-out-of-buffers-20061212
When there are no free buffers, don't loop continuously.
Sleep so that the other threads that are holding the buffers
can grab the global buffer lock and release them.
2006-12-12 17:02:37 +00:00
Jeffrey Altman
0919636307 windows-afsd-20061211
(1) Power Management improvements.  Maintain a global flag that
    specifies whether or not the service is in a suspend state.
    Do not panic if Netbios() returns NRC_BRIDGE meaning that the
    lana is no longer valid.  Instead, stop the listener threads
    and if all listener threads are stopped, reset the lana_list.
    Allow the cm_Daemon() thread to periodically check the state
    of the smb listeners.  If they are all stopped and the service
    is not suspended, attempt to restart them.  If there are no valid
    lanas, return to the stopped state.

(2) CreateX and NTCreateX use cm_CheckNTOpen() to test whether or not
    the user is permitted to obtain read or write locks.  This function
    would obtain the lock and then drop it returning whether or not
    the lock could be obtained.  If the lock was in fact required,
    CreateX/NTCreateX would then obtain it with cm_Lock().  The problem
    of course being that this pattern results in three RPCs to the
    file server (lock, unlock, lock).  This is reduced to one RPC by
    implementing cm_CheckNTOpenDone() which frees the allocated byte
    range lock from cm_CheckNTOpen() after the cm_Lock() call is
    performed.

(3) Remove unused code.

(4) Add debugging to SMB Directory Search functions.

(5) Increase the SMB Ioctl MaxData size
2006-12-12 04:00:40 +00:00
Russ Allbery
08bb3f6391 kaserver-log-tgtreq-20061206
Separately log TGT requests in addition to logging the authentication so
that one can distinguish in the logs between Kerberos v4 clients and uses
of klog.
2006-12-06 20:00:48 +00:00
Derrick Brashear
112604e9c3 rx-preparesendpacket-avoid-double-free-20061205
wow, this is special

existed forever but only when we stopped leaking packets did it become a problem

anyway, don't free packets and forget to reduce the number of packets in play
2006-12-05 19:38:44 +00:00
Russ Allbery
71a1d8a025 docbook-quickguide-cleanup-20061201
Remove generated files from CVS.

====================
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.
====================

Some initial obvious cleanup.  Removed all the sections on Digital UNIX,
changed IBM AFS to OpenAFS throughout, and reformatted and cleaned up the
front matter and some of the first few pages.
2006-12-02 03:56:17 +00:00
Russ Allbery
f544468443 docbook-quickguide-makefile-20061201
Add some comments to the makefile, set up dependencies to build the index
automatically, remove a bunch of unnecessary @-signs in front of commands,
and add a clean target.
2006-12-02 02:22:34 +00:00
Russ Allbery
ddc66bbff0 pam-aklog-now-external-20061201
Remove pam_aklog.  pam_afs_session will be developed and distributed as an
external project instead.
2006-12-02 01:44:50 +00:00
Derrick Brashear
b81763506f give-s390x-syscall-table-the-big-hammer-20061201
Neale Ferguson contributed the assembler.

The false illusion of security some people want to play under is usually good for wasting a few hours; it was here. making the sys_call_table read nly for real of course fixes it, let's just hope keyrings come along before then on such platforms.
2006-12-01 18:48:26 +00:00
Derrick Brashear
9ba1d32b4b redhat-packaging-updates-20061201
updates from derek

updates for s390x

updates to handle suse
2006-12-01 18:32:49 +00:00
Derrick Brashear
af6af0bbc4 redhat-initscripts-update-for-suse-20061201
suse lacks /etc/init.d/functions
2006-12-01 12:52:38 +00:00
Derrick Brashear
45425b2f22 cprivate-ticketlen-is-32-not-16-20061129
everyone else thinks ticketLen is 32 bits. contrary to what arby's says, different is not necessarily better.
2006-11-29 21:22:38 +00:00
Jeffrey Altman
d253bde457 windows-dirty-buffer-optimization-20061128
The old dirty buffer synchronization algorithm had a buf_IncrSyncer
thread walking the all buffer list periodically searching for dirty
buffers to write to the file server.  This had several negative
results.  The alogirithm ate up ever increasing amounts of CPU time
even when AFS is idle as the size of the cache increases.  Also,
buffers were written to the file server in an order based upon the
original buffer allocation which has nothing to do with the order
in which the buffers became dirty.

The new algorithm maintains a dirty buffer list.  Items are added
when the buffer is originally marked dirty.  A buffer is only
removed from the list by the buf_IncrSyncer when the buffer is no
longer dirty.  If the list is empty the thread goes back to thread
immediately without additional processing requirements.
2006-11-29 06:23:00 +00:00
Jeffrey Altman
1c661a198e volser-cleanup-xx-20061128
cleanup the return code handling from

  DELTA volser-dump-validate-input-20060417
2006-11-28 09:30:58 +00:00
Jeffrey Altman
1ed0460435 windows-smb-dont-crash-vista-20061128
Unlike previous versions of the OS, Vista performs a shutdown on
the Microsoft Loopback adapter just like it would on a real adapter.
This causes the smb_Listener threads to trigger a panic during a
suspend/hibernate power event.

The fix is to unbind from the network adapters in response to a
suspend/hibernate power event and then rebind to the adapters
when a resume power event is received.  Note that the resume events
are not reliably delivered so it is possible the afs service will
not be accessible.  However, this is the best we can do.
2006-11-28 09:16:36 +00:00
Jeffrey Altman
cb1997aad8 windows-conn-analyze-20061128
force an rx connection reset if VICECONNBAD or VICETOKENDEAD are
received
2006-11-28 09:05:10 +00:00
Jeffrey Altman
97733f8dcf windows-afslogon-dont-modify-environment-20061128
don't allow environment variables we set to be inherited by child
processes
2006-11-28 08:59:43 +00:00
Russ Allbery
769f4e49b6 thiscell-whitespace-20061120
Be more liberal when parsing ThisCell.  Accept and ignore leading and
trailing whitespace and anything after the first whitespace character on
the first line.  Return an error for a read error or for an empty cell
name.
2006-11-21 00:56:14 +00:00
Russ Allbery
40976a1f88 param-common-fix-20061120
Rather than setting AFS_PARAM_COMMON as part of the sysname guessing code,
guess the sysname first and then sent AFS_PARAM_COMMON in a separate case
statement based on the results.  Otherwise, it isn't set when
--with-afs-sysname is used explicitly, resulting in a broken Linux build.
2006-11-20 23:50:42 +00:00
Russ Allbery
778e2d5f18 relative-path-canonicalization-20061120
Path canonicalization for commands such as bos getlog was only applied for
absolute paths; relative paths were still constructed relative to the
canonical directory.  Modify the path canonicalization routines to also
canonicalize the base directory for relative paths.
2006-11-20 23:33:33 +00:00
Jeffrey Altman
848d2f1caa windows-netidmgr-plugin-vista-vs2005-20061120
Define _USE_32BIT_TIME_T since that is what tokens contain.

Use cflagsdll instead of cflagsmt to avoid multiply defined entry points
2006-11-20 18:53:28 +00:00
Jeffrey Altman
4a3482f9e6 windows-remove-unused-libs-20061120
rpcndr.lib and largeint.lib are no longer used.
rpcndr.lib no longer exists in the Vista SDK.
2006-11-20 18:03:03 +00:00