Commit Graph

2150 Commits

Author SHA1 Message Date
Jeffrey Altman
83d1e43ad5 safe-strings-20040619
Begin to make use of the Microsoft strsafe library to avoid buffer
overruns.
2004-06-19 16:18:58 +00:00
Asanka Herath
b899b0ff57 ntmakefile-auth-headers-20040618
break up auth build step into two parts to avoid
circular dependency in the build process
2004-06-19 05:21:07 +00:00
Jeffrey Altman
83c6908646 ntmakefile-part-two-20040618
check in the correct version.
2004-06-18 21:08:50 +00:00
Jeffrey Altman
faae04d835 ntmakefile-reorder-20040618
place 'auth' before 'afsdobjs' to ensure creation of afs/cellconfig.h

allow DESTDIR to be specified as an arbitrary location earlier in the
build process.
2004-06-18 20:58:13 +00:00
Robert S Murawski IV
16f5052b41 nsis-loopback-20040618
loopback installation executable code.
the license is GPL which is ok because the NSIS installer does not
contain any IPL code.
2004-06-18 19:56:03 +00:00
Jeffrey Altman
f5f358bb16 afscreds-krb5-principal-error-20040618
afscreds did not properly construct kerberos 5 principals with
multiple components.  This prevented the use of user/admin@REALM
tgts.
2004-06-18 18:36:33 +00:00
Jeffrey Altman
2cacc256d9 nt-makefile-configuration-change-20040617
Add support for building symbols in all configurations
2004-06-18 06:05:48 +00:00
Robert S Murawski IV
fcb7d1569f nsis-installer-updates-20040617
New BSD License for compatibility with GPL and NSIS licenses.

Add Loopback Adapter installation

Add Debugging Symbols for all builds (optional module)

Add user configuration of afscreds.exe startup
2004-06-18 06:03:19 +00:00
Jeffrey Altman
5ffd909668 fs-admin-20040617
Add Is Administrator requirement to fs functions.

     - checkservers with a non-zero timer value
     - setcachesize
     - newcell
     - sysname with a new sysname list
     - exportafs
     - setcell
     - setserverprefs
     - storebehind
     - setcrypt
     - cscpolicy
     - trace

Should create a user group to which users can be added so that
non Admin users can issue fs commands.
2004-06-18 05:59:51 +00:00
Jeffrey Altman
113167c778 kfw-support-update-20040617
Fix improper use of krb5_data data field as null-terminated string.

Reuse pre-existing context for obtaining the realm from the afs cell.
2004-06-18 05:56:48 +00:00
Jeffrey Altman
c9fa134e65 nt-power-mgmt-fix-20040617
The fixed timeout of 19 seconds was too short.  Should be set to the
value of HardDeadtimeout as set by cm_conn.c.  The failure to specify
an adequate timeout value prevented successful Hibernation and Standby
mode access when network connectivity was not available.
2004-06-18 05:52:25 +00:00
Jeffrey Altman
18a9be2b18 nt-readme-upd-20040617
Update requirements for building OpenAFS on Windows 2000/XP/2003
2004-06-18 05:49:20 +00:00
Derrick Brashear
e81615d0f1 darwin-updates-20040613
complain if TryReclaim gets a vnode which is on the inactive list

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

be willing to instantiate a ubc in our lookup vop (rename needs this so
the followup vget doesn't get a vnode with no ubc)

refuse to instantiate a ubc if VORECLAIM is set

rework rename 2 links to same vnode case. (yes, you can have hard links in AFS)

====================

drop the parent directory ref and remove name from the kernel name cache
when recycling a vnode.
2004-06-14 09:36:09 +00:00
Jim Rees
bc9bbe8a95 fix-havecallbacks-proto-20040608
afs_HaveCallBacksFrom, not HaveCallBacksFrom
2004-06-08 18:27:46 +00:00
Jim Rees
c3d0a68821 temp-fix-PCallBackAddr-20040608
temporary fix for compiler warning in PCallBackAddr
2004-06-08 17:09:09 +00:00
Chas Williams
202f407a15 objdir-libafs-ko-20040607
FIXES 4943

make libafs.ko build in objdir environment
2004-06-07 20:54:33 +00:00
Derrick Brashear
4f33ab1992 export-havecallbacksfrom-20040607
i suck, the PCallBackAddr stuff needs this
2004-06-07 20:52:51 +00:00
Chas Williams
3c1e497d75 linux-use-page-count-macro-20040607
FIXES 4944

use page_count macro instead of accessing directly
2004-06-07 20:48:50 +00:00
Jeffrey Altman
7329d33e22 freelance-fake-root-vol-id-fix-20040606
* add debugging to allow fs trace -dump to be used for freelance
   operations

 * Change the volume id associated with the fake root.afs from
   0x20000001 to 0x00000001 to prevent confusion of remote cell
   root.afs volumes with the fake root.afs.  (way to go Derrick.)

 * add function prototypes to cm_freelance.h
2004-06-07 07:22:57 +00:00
Jeffrey Altman
a749be9ff3 uninitialized-variable-20040605
cm_dns.c: getAFSServers() did not initialize the output
           parameters before testing them when setting the
           return value.  It therefore returned success
           when the network was unavailable. Bad Bad Bad.
2004-06-06 04:51:41 +00:00
Jeffrey Altman
326e26068f kpasswd-uninitialized-20040605
FIXES 4994

More uninitialized variables
2004-06-05 21:11:06 +00:00
Jeffrey Altman
6d4bdfc2f7 winnotes-20040605
Document changes up to this date since 1.3.64 and new registry values
2004-06-05 19:59:41 +00:00
Jeffrey Altman
d58233a52f timeout-logic-20040605
* The timeout logic in the AFS Client Service has been wrong
     for sometime.  It is based on two different assumptions.
     First, the SMB client timeout is a fix value as was the case
     with OS/2 Lan Manager.  This assumption is incorrect.  The
     SMB timeout in Windows is a dynamic value computed based upon
     a fixed minimum timeout to which is added time based upon the
     size of the request and the performance characteristics of
     the connection.  Second, it is the responsibility of the
     SMB Server to enforce the timeout requirements of the client.
     This is untrue.  The SMB Server cannot be expected to know
     the requirements of the client.  More importantly, if the
     SMB server uses the SMB client timeout as a value to restrict
     its behavior as an RX client, the performance characteristics
     of the local SMB session would be used to prematurely terminate
     WAN connections with significantly different performance
     characteristics.

     The timeout logic has therefore been modified in the following
     manner:
      . the Lan Manager Workstation (SMB) Session Timeout is used only
        as a basis for configuring the Connection Dead Timeout
        and Hard Dead Timeout values.  The Connection Dead Timeout
        must be at least 15 seconds longer than the SMB Timeout
        and the Hard Dead Timeout must be at least double the
        Connection Dead Timeout.
      . New registry entries have been added to allow the Connection
        Dead Timeout and Hard Dead Timeout values independent of the
        Lan Manager Workstation Session Timeout
      . The test to enforce the SMB Client Timeout has been removed.

     One of the side-effects of removing the enforcement of the SMB
     Client Timeout is that regardless of whether or not the SMB client
     is available to receive the response (and how would the SMB server
     know) the RX protocol response can be used to update the AFS
     Client Service state for ready access by future SMB client
     requests.

     This should be the end of the "Server paused or restarting messages"
2004-06-05 19:57:58 +00:00
Jeffrey Altman
304fbc2527 cell-info-do-not-delete-20040604
* cm_cell.h: define new bit flag CM_CELLFLAG_VLSERVER_INVALID

* cm_cell.c, cm_ioctl.c:  Do not delete cell info either because
  it has been removed from the CellServDB file or because the
  volserver info becomes invalid due to dns ttl expiration.  This
  is necessary because the cell info is pointed to by other structures
  which require continued access to the cellname and username fields.

* cm_ioctl.c: provide UNC support for the MakeMountCmd
2004-06-05 07:02:39 +00:00
Jeffrey Altman
414fe9588a ioctl-unc-20040603
* pioctl.c: handle another UNC case in GetIoctlHandle

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

 * cm_ioctl.c: avoid running off the end of a string
2004-06-04 07:02:18 +00:00
Jeffrey Altman
eb48b8e6ca ioctl-changes-20040603
Fix more edge cases for ioctl handling.

 * cm_dcache.c: reformat the file to make it possible to set breakpoints
   on conditionals

 * cm_ioctl.c: add a call to smb_FindShare() when processing UNC paths

 * cm_vnodeops.c: move debug message from the afsi_log to the osi_log

 * fs_utils.c: reformat

 * smb.c: change smb_FindShare to take a smb_user_t * instead of a
   pointer to the input smb_packet_t.  Change calls to smb_FindShare
   to use new prototype.

 * smb.h: change prototype for smb_FindShare

 * smb3.c: Change calls to smb_FindShare to use new prototype

 * smb_ioctl.c: reorganize use of smb_user_t so it can be passed
   to smb_IoctlPrepareRead in order for it to be used in the call
   to smb_FindShare.
2004-06-04 04:10:44 +00:00
Jeffrey Altman
913876f3a9 ioctl-handle-20040603
* Fix GetIoctlHandle so that it will create the handle on the correct
   volume when a drive letter is not specified as part of the source path
2004-06-04 04:00:39 +00:00
Love Hörnquist-Åstrand
4a69168cdf i-hate-aclocal-20040603
FIXES 4922

aclocal wants [] around macro names.
good for aclocal.
2004-06-03 06:13:27 +00:00
Chas Williams
1d5ddeb9db gconfd-lock-fix-20040602
FIXES 4905

"i believe i have managed to track this down to a missing
lock_kernel() in the dentry (lookup) revalidate routine.
this missing lock was already fixed in the 1.3 tree when
i submitted the 2.6 support patches (although its not quite
right i think -- the shrink_dcace_parent() should happen
under the BKL)"
2004-06-02 20:40:34 +00:00
Jeffrey Altman
0dbbc2c4c5 ntmakefile-20040602
update comments
2004-06-02 15:52:04 +00:00
Jeffrey Altman
fc250cc0be win32-ewouldblock-20040602
* enable detection of EWOULDBLOCK errors on Windows
2004-06-02 15:50:23 +00:00
Derrick Brashear
b0161198cf callback-rxcon-move-20040602
FIXES 4891

apply it disabled in the fileserver, but provide mech for client to suggest a particular IP address to the fileserver

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

apply it disabled in the fileserver, but provide mech for client to suggest a pa
rticular IP address to the fileserver

====================
FIXES 4891

apply it disabled in the fileserver, but provide mech for client to suggest a pa
rticular IP address to the fileserver

====================
FIXES 4891

apply it disabled in the fileserver, but provide mech for client to suggest a pa
rticular IP address to the fileserver
2004-06-02 09:43:02 +00:00
Derrick Brashear
07ba4620cf vos-new-repsite-cleanup-20040601
FIXES 4730

if for some reason we got into a situation where all ROs were marked NEW_REPSITE in the vldb, vos release without -f deals very poorly. force a -f, and also, never print "Old Release" for the RW, to avoid confusion

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

if for some reason we got into a situation where all ROs were marked NEW_REPSITE
 in the vldb, vos release without -f deals very poorly. force a -f, and also, ne
ver print "Old Release" for the RW, to avoid confusion
2004-06-02 09:39:34 +00:00
Derrick Brashear
d37b482873 irix-make-ukernel-build-20040602
FIXES 4646

ukernel needs 64 bit type defined, define it.
2004-06-02 09:18:28 +00:00
Derrick Brashear
fe370813b9 linux-dont-mark-writer-on-mmapped-RO-20040602
FIXES 4892

don't mark an mmapped RO as an execOrWriter.
2004-06-02 08:43:48 +00:00
Michael Pronath
404f837d57 adviseaddr-call-dont-shadow-code-decl-20040602
FIXES 4536

removed shadowed declaration of code
2004-06-02 08:08:46 +00:00
Nathan Neulinger
5191f00383 volinfo-large-size-update-20040602
FIXES 4679

make volinfo useful for >4gb
2004-06-02 08:04:15 +00:00
Jeffrey Hutzelman
d5dfb9113b linux-26-build-updates-20040601
FIXES 4767

use 2.6 kbuild infrastructure to build modules. updates proc mechanism.

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

use 2.6 kbuild infrastructure to build modules. updates proc mechanism.
2004-06-02 07:15:45 +00:00
Derrick Brashear
5d9fcb3034 attachserverproc-dont-dequeue-if-not-in-queue-20040602
FIXES 4699

can't see what else this can be. pile of details in the ticket.
2004-06-02 07:08:01 +00:00
Jeffrey Altman
7a46d3a076 unc-enable-fs-20040601
* modify cm_ParseIoctlPath() to be able to handle arbitrary UNC
   paths of the form \\netbiosname\mount\path.  This enables all
   of the fs commands and the shell extension to be able to work
   with UNC paths.

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

 * add support for UNC paths
2004-06-02 06:21:16 +00:00
Rainer Toebbicke
8d442bea4f rx-protect-queue-during-debug-20040601
FIXES 4811

"in rx_packet.c:rxi_ReceiveDebugPacket() the rx_idleServerQueue is
scanned without taking a lock first.

The queue_Remove macro zeroes the ->next field (luckily), but this can
lead to a crash when Murphy strikes and the entry gets removed during
the scan: queue_Scan will dereference 0x0 -> next.
"
2004-06-02 03:49:28 +00:00
Sam Hartman
3d66364e72 make-distclean-do-it-20040601
FIXES 4814

remove some of the crap we were missing
2004-06-02 03:40:03 +00:00
Derrick Brashear
ab10f17e12 provide-fPIC-method-for-amd64-20040508
FIXES 3680

allow building fPIC on amd64
2004-06-02 03:37:45 +00:00
Jeffrey Altman
de972e77b3 corrections-winafs-20040531
* cm_server.c: remove locking from cm_FreeServer().  Must call
   while holding a write lock

 * afskfw.c: Remove manual dynamic loading of ktc_xxxx functions
   Change some of the debugging logic
2004-06-01 03:45:24 +00:00
Jeffrey Altman
78f184e307 afscrds-dns-20040530
* Fix afscreds.exe (by updating afskfw.lib) to search for cells via
     DNS if the cell configuration cannot be determined via CellServDB
2004-05-30 16:54:13 +00:00
Jeffrey Altman
d64679ee4c dns-and-server-ref-counts-20040530
* Add debug info to test whether CM_BUF_WAITING or CM_SCACHE_WAITING
     are ever set more than once at a time

   * Fix the management of lists of cm_cell_t structures when using
     DNS to lookup cell information.  The previous code would fail to
     reuse the same cellID for a cell if DNS was used more than once
     for a given cell name.  When the ttl expired, a single cm_cell_t
     could be inserted into the cm_allCellsp list more than once
     producing a loop.  In addition, the vlServerp list belonging to
     the cell was not freed resulting in improper refCounting of the
     servers.

   * Add DNS support to cm_IoctlNewCell() which previous only examined
     the CellServDB file

   * Add cm_FreeServer() function and call it from cm_FreeServerList()
     to properly garbage collect cm_server_t objects

   * Add numVCs variable to smb.c to track the number of smb_vc_t
     objects created and use it to initialize the vcID field which
     previously was set to 0 in all objects resulting in FindByID
     collisions.
2004-05-30 15:39:05 +00:00
Jeffrey Altman
52898404c6 rx-debug-20040529
Fix MakeDebugCall to properly check the return code of select() and
recvfrom().  Do not copy data buffer unless recvfrom() succeeds.
2004-05-30 01:25:19 +00:00
Jeffrey Altman
6b488b4c99 batch-commits-windows-20040529
* Fixed DNS lookups to work consistently throughout the OpenAFS
     product instead of just from within the afsd_service.exe

   * Added a runtime check to ensure that AFS Client Service SMB
     Server is accepting connections before attempting to mount
     global drives.

   * Read IP addresses for volume servers out of the CellServDB
     file if gethostbyname() on the hostname fails.

   * Fix getcellconfig() to populate both the Hostnames as well
     as IP addresses when loading cell data via DNS

   * Increase the Connection Dead Time to 50 from 20 seconds
     Increase the Hard Dead Time to 120 from 40 seconds
     (matches the Unix values)

   * Fixed an assertion validating the number of allocated NCBs

   * Fixed the build environment to consistently build for
     Windows 2000 and above.  (APPVER = 5.0)

   * Fixed rx_debug to properly validate the receipt in incoming
     data with select() and recvfrom().  Do not copy data out of
     the socket buffer unless success is indicated.
2004-05-30 00:47:59 +00:00
Nickolai Zeldovich
e21149cec3 uafs-fixes-20040520
Make uafs not crash if uafs_fstat() is used.  Fix open(O_RDONLY).
2004-05-20 20:15:04 +00:00
Jim Rees
0d1159c724 banish-ushort-20040519
Change ushort to afs_uint16. ushort is a SysV thing, not present in FreeBSD.
2004-05-19 21:31:18 +00:00