openafs.git
16 years agowindows-odd-vnode-is-dir-20070627
Jeffrey Altman [Thu, 28 Jun 2007 04:52:12 +0000]
windows-odd-vnode-is-dir-20070627

its odd vnodes are directories, not even ones

16 years agowindows-pioctl-20070627
Jeffrey Altman [Thu, 28 Jun 2007 04:33:50 +0000]
windows-pioctl-20070627

add cm_server.h to the include list

16 years agovolser-earlier-logging-20070627
Derrick Brashear [Thu, 28 Jun 2007 03:11:01 +0000]
volser-earlier-logging-20070627

deal with the changes to deal with reconnecting in the unix domain fsync socket

16 years agowindows-afsd-headers-20070627
Jeffrey Altman [Thu, 28 Jun 2007 01:33:43 +0000]
windows-afsd-headers-20070627

remove unneeded headers and shuffle order where necessary

16 years agowindows-smb-race-20070627
Jeffrey Altman [Thu, 28 Jun 2007 01:15:27 +0000]
windows-smb-race-20070627

avoid a race condition when the smb_fidp is closed and an active request
is being performed on the referenced cm_scache_t.

16 years agoamd64-linux-24-syscall-probe-symbol-change-20070623
Kevin Hildebrand [Wed, 27 Jun 2007 22:18:59 +0000]
amd64-linux-24-syscall-probe-symbol-change-20070623

FIXES 63763

probe for something else for 2.4 and older

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

i'll spare you

16 years agoforceallnewconns-prototype-20070627
Derrick Brashear [Wed, 27 Jun 2007 17:29:35 +0000]
forceallnewconns-prototype-20070627

missed this earlier. linux wants it.

16 years agomacos-afsd-dont-leak-symbol-20070626
Derrick Brashear [Tue, 26 Jun 2007 20:00:26 +0000]
macos-afsd-dont-leak-symbol-20070626

avoid leaking a ref to this symbol outside macos code

16 years agobackup-usedump-20070625
Jeffrey Altman [Tue, 26 Jun 2007 06:40:35 +0000]
backup-usedump-20070625

FIXES 55704

afs_com_err not com_err

16 years agoaix53-avoid-wait-crash-20070625
Tom Keiser [Mon, 25 Jun 2007 21:22:49 +0000]
aix53-avoid-wait-crash-20070625

avoid crashing because of unpinned mmemory when doing event handling

16 years agowindows-get-server-list-20070625
Jeffrey Altman [Mon, 25 Jun 2007 05:58:30 +0000]
windows-get-server-list-20070625

return an error when the cm_fid_t * is NULL since we can't look up
the volume to obtain a server list without knowing which volume we
should be looking up

if the fidp is known to be NULL, don't call cm_GetServerList()

16 years agomemcache-alloc-failures-20070623
Chas Williams [Sat, 23 Jun 2007 16:28:11 +0000]
memcache-alloc-failures-20070623

FIXES 55339

deal with alloc failures in memcache

16 years agobackup-usedump-20070623
Garry Zacheiss [Sat, 23 Jun 2007 16:13:17 +0000]
backup-usedump-20070623

FIXES 55704

restore from specific dump id

16 years agoimage-fix-20070623
Derrick Brashear [Sat, 23 Jun 2007 15:17:46 +0000]
image-fix-20070623

16 years agodoc-add-missing-gifs-20070623
Derrick Brashear [Sat, 23 Jun 2007 15:01:24 +0000]
doc-add-missing-gifs-20070623

FIXES 1826

16 years agonewuuid-fix-20070622
Derrick Brashear [Sat, 23 Jun 2007 07:21:00 +0000]
newuuid-fix-20070622

yeah, i should commit from places with better network if i'm going to need to edit in place, so i can see what i'm typing

16 years agowindows-install-wix-20070622
Asanka Herath [Fri, 22 Jun 2007 23:22:09 +0000]
windows-install-wix-20070622

add the images from relnotes_files to the distribution.

16 years agowindows-cell-hashtables-20070622
Jeffrey Altman [Fri, 22 Jun 2007 23:15:38 +0000]
windows-cell-hashtables-20070622

Add name and ID hash tables for cell lookups.  cell lookups occur on
every request.  sometimes multiple times.  removing the walking of the
cell list when there are dozens of cells decreases cpu utilization and
increases throughput.

16 years agowindows-install-nsis-20070622
Jeffrey Altman [Fri, 22 Jun 2007 15:42:12 +0000]
windows-install-nsis-20070622

add missing jpg files to documentation installation

16 years agowindows-misc-20070622
Jeffrey Altman [Fri, 22 Jun 2007 15:11:04 +0000]
windows-misc-20070622

there were two sets of registry values that could be used to configure
the daemon thread check intervals.  keep the one that was documented
in the release notes and discard the other.

Add a registry value "daemonCheckOfflineVolInterval" to configure the
offline volume check interval.

Ensure that the cm_GetConn... functions initialized the output variables
to NULL on error.

16 years agowindows-fake-stat-20070622
Jeffrey Altman [Fri, 22 Jun 2007 07:00:27 +0000]
windows-fake-stat-20070622

When we are faking the status data we can use the vnode value to determine
if the object should be treated as a directory or file.  even is a directory
and odd is a file.  This works even when we have never successfully
obtained status data for the object.

16 years agowindows-mountpoint-is-directory-20070622
Jeffrey Altman [Fri, 22 Jun 2007 06:30:47 +0000]
windows-mountpoint-is-directory-20070622

when the CIFS client requests a directory listing without directories,
do not include mount points.

16 years agowindows-revoke-callback-20070619
Jeffrey Altman [Tue, 19 Jun 2007 21:10:56 +0000]
windows-revoke-callback-20070619

If the we can match up the host address from which the revoke was received
with one of our cm_server_t objects, then we know which cell the revoke
has been received from.  With that information we can ensure that we only
revoke the status of cm_scache_t objects belonging to that cell.

16 years agowindows-all-cell-list-20070619
Jeffrey Altman [Tue, 19 Jun 2007 19:29:41 +0000]
windows-all-cell-list-20070619

Reverse the order of the allCellsp list.  Append new cells onto the end
of the list.  This ensures that the workstation cell will always be the
first in the list.  Adding additional cells will not degrade the performance
to the workstation cell.

16 years agowindows-updatecell-20070619
Jeffrey Altman [Tue, 19 Jun 2007 17:14:14 +0000]
windows-updatecell-20070619

No longer permit cm_GetCell() or cm_FindCellByID() to return NULL simply
because cm_UpdateCell() failed.  The cm_cell_t object still exists and
is valid even if the vlServersp list is empty.

Modify the lock management in cm_GetCell_Gen() to ensure we drop all the
locks.

In cm_Analyze() update the volume status when one of the servers reports
VBUSY or VRESTARTING.

16 years agowindows-deadlock-20070619
Jeffrey Altman [Tue, 19 Jun 2007 12:51:11 +0000]
windows-deadlock-20070619

fix deadlock on cm_volumeLock introduced by last week's work

in cm_Analyze, make sure we get a cm_cell_t reference otherwise we
won't find the cm_volume_t we are searching for when ALLOFFLINE or
ALLBUSY.

16 years agoman-page-net-info-fixes-20070619
Russ Allbery [Tue, 19 Jun 2007 09:55:49 +0000]
man-page-net-info-fixes-20070619

Fix a NetInfo reference in the NetRestrict man page that should be
NetRestrict and add cross-references in SEE ALSO.

16 years agowindows-amd64-20070619
Jeffrey Altman [Tue, 19 Jun 2007 06:29:07 +0000]
windows-amd64-20070619

Use 0x0502 instead of 0x0500. There is no 64-bit Windows 2000 support.

Explicitly list the machine type as X64 for linking.

16 years agowindows-misc-20070619
Jeffrey Altman [Tue, 19 Jun 2007 06:24:23 +0000]
windows-misc-20070619

VMWare adapters have proven unreliable replacements for the Microsoft
loopback adapter.  Registering AFS often results in a name space collision.

Add cm_DumpCells() function and dump the cells as part of "fs memdump"

Dump all cm_scache_t and cm_volume_t regardless of reference counts

Fix cm_GetCell_Gen() to not allocate a new cm_cell_t when evaluating
mount points to aliases.  Instead, after looking up the alias successfully
search the allCellsp list for the fullname of the cell.  If found, use
the existing entry and cleanup the one we were about to allocate.

Use read locks whenever possible instead of write locks when searching
the allCellsp list.

16 years agomacos-realtime-ip-updates-20070618
Derrick Brashear [Mon, 18 Jun 2007 19:48:33 +0000]
macos-realtime-ip-updates-20070618

notice and deal with IP address changes

16 years agoreadme-20070618
Derrick Brashear [Mon, 18 Jun 2007 19:21:53 +0000]
readme-20070618

update the systype list

16 years agoavoid-empty-uuid-20070618
Derrick Brashear [Mon, 18 Jun 2007 19:03:00 +0000]
avoid-empty-uuid-20070618

avoid issue where uuid can potentially be 0: set one always at AFSOP_GO step

16 years agodarwin-collect-network-errors-for-fast-timeout-20070618
Derrick Brashear [Mon, 18 Jun 2007 18:57:31 +0000]
darwin-collect-network-errors-for-fast-timeout-20070618

same optimization we do on windows, linux

16 years agodarwin-afs-syscall-eliminate-needless-vfs-context-hold-20070618
Derrick Brashear [Mon, 18 Jun 2007 18:05:05 +0000]
darwin-afs-syscall-eliminate-needless-vfs-context-hold-20070618

avoid potential deadlock if e.g. SetTokens is called before the kernel module initialization completes

16 years agowindows-nim-afs-20070617
Asanka Herath [Sun, 17 Jun 2007 05:49:32 +0000]
windows-nim-afs-20070617

Don't assume that WM_DESTROY is the final message received by a
window.  Verify dialog data structures when handling messages and
reset the window data field when freeing the data structure.

Zero should be considered a valid credentials type identifier in
Network Identity Manager.

When checking if an identity is configured to obtain a token for a
specific cell, don't go through the list of cells if AFS tokens
are disabled for the identity.

Similarly, when removing a token for a specific cell from all
identities, don't bother modifying identities for whom AFS tokens
are disabled.

Keep track of whether a specific cell was added to the list of
cells to authenticate for an identity because it was listed in the
configuration or because a token for the cell already existed.

Correct an off-by-one error when calculating buffer sizes for
multi strings which failed to account for a double NULL
terminator.

Don't update the cell->identity mapping if a token for that cell
could not be obtained.

If the list of cell to authenticate for an identity is empty, we
still need to write the empty string to the configuration.
Otherwise, removing all the tokens from an identity will not
result in a configuration change reflecting that.

16 years agowindows-ioctl-path-availability-20070614
Jeffrey Altman [Thu, 14 Jun 2007 21:58:07 +0000]
windows-ioctl-path-availability-20070614

fix cm_IoctlPathAvailability to return the current volume state.
0, CM_ERROR_ALLBUSY, CM_ERROR_ALLDOWN, CM_ERROR_ALLOFFLINE

modify fs.c to generate messages when the errors are received.

16 years agowindows-volstate-update-post-network-change-20070614
Jeffrey Altman [Thu, 14 Jun 2007 21:54:16 +0000]
windows-volstate-update-post-network-change-20070614

When the system's IP address list changes we invalidate the existing
RX connections and probe all of the servers.  A better algorithm is
to probe all vldb servers, invalidate the rx connections, and then
probe all file servers.

16 years agorx-lwp-sendmsg-20070614
Jeffrey Altman [Thu, 14 Jun 2007 20:04:10 +0000]
rx-lwp-sendmsg-20070614

update the lwp version of rxi_sendmsg to return the same error, -1,
returned by the pthread version.

replace errno with WSAGetLastError() in the Windows blocks so that
the correct error value is checked.

16 years agowindows-pioctl-add-error-translations-20070614
Jeffrey Altman [Thu, 14 Jun 2007 19:29:51 +0000]
windows-pioctl-add-error-translations-20070614

add error translations for CM_ERROR_ALLDOWN, CM_ERROR_ALLBUSY,
CM_ERROR_ALLOFFLINE, CM_ERROR_NOSUCHPATH

16 years agowindows-magic-share-names-20070613
Asanka Herath [Wed, 13 Jun 2007 23:25:45 +0000]
windows-magic-share-names-20070613

Access to AFS volumes via magic share names

\\afs\<cell><type><volume>

<cell> = cellname
<type> = % or #
<volume> = volume name or id

16 years agowindows-server-ping-deadlock-20070612
Jeffrey Altman [Wed, 13 Jun 2007 07:04:55 +0000]
windows-server-ping-deadlock-20070612

avoid deadlock in cm_ServerPing due to volume status update code

16 years agonewuuid-20070612
Derrick Brashear [Tue, 12 Jun 2007 19:59:02 +0000]
newuuid-20070612

add the newuuid command

16 years agolinux-configure-vfs-update-20070612
Marc Dionne [Tue, 12 Jun 2007 19:38:20 +0000]
linux-configure-vfs-update-20070612

FIXES 62017

clean up output

16 years agolinux-vfs-flush-3arg-20070612
Marc Dionne [Tue, 12 Jun 2007 19:32:19 +0000]
linux-vfs-flush-3arg-20070612

FIXES 62203

3rd arg for passing lock owner id. add configure gunk also

16 years agolinux-sysctl-update-20070612
Simon Wilkinson [Sat, 23 Jun 2007 07:32:56 +0000]
linux-sysctl-update-20070612

FIXES 61906

2.6.21.1 introduces an additional .parent pointer in the middle of
the structure. As the OpenAFS code just initialises the structure
with a list, this causes it to assign the value intended
for .proc_handler to .parent

16 years agowindows-volume-status-tracking-20070612
Jeffrey Altman [Tue, 12 Jun 2007 16:23:09 +0000]
windows-volume-status-tracking-20070612

* re-write cm_Analyze to make better use of the known volume
  status.  VL_Server queries cannot result in CM_ERROR_ALLOFFLINE
  messages.

* renamed cm_CheckBusyVolumes to cm_CheckOfflineVolumes.
  busy volumes will be reset to srv_non_busy by the function
  but there is no mechanism for querying the busy state other
  than by attempting to access the resource.

* cm_Analyze will query the state of an offline volume before
  deciding whether or not to retry when all volume instances
  are offline.

16 years agolinux-2-6-22-updates-20070611
Marc Dionne [Tue, 12 Jun 2007 06:41:06 +0000]
linux-2-6-22-updates-20070611

FIXES 61767

1 - task_struct loses thread_info, which is now accessible through the
task_thread_info() macro. A configure test is added to deal with this.

2 - the SLAB_CTOR_VERIFY flag is gone

16 years agoman-fileserver-args-20070611
Lars Wilke [Tue, 12 Jun 2007 04:49:56 +0000]
man-fileserver-args-20070611

Add additional arguments to the SYNOPSIS that the file server recognizes.

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

Missed another erroneous option argument.

16 years agoman-vos-online-20070611
Steven Jenkins [Tue, 12 Jun 2007 04:42:01 +0000]
man-vos-online-20070611

Add initial man pages for vos offline and vos online.

16 years agowindows-volume-status-tracking-20070610
Jeffrey Altman [Sun, 10 Jun 2007 17:58:51 +0000]
windows-volume-status-tracking-20070610

* changed the enum values for cm_serverRef_t state info to use a
  private name space to avoid collisions (srv_)

* added a srv_deleted state for cm_serverRef_t objects.  This
  state is set when cm_FreeServerList() is called with the
  CM_FREESERVERLIST_DELETE flag set.  cm_FreeServerList() may
  not always delete the cm_serverRef_t from the list if it is
  still in use by another thread.  the srv_deleted state means
  the object's contents are no longer valid and it must be
  skipped.  It will be deleted the next time the object is
  freed and the refcount hits zero.

* the srv_deleted state is also used when a file server reports
  either VNOVOL or VMOVED instead of marking the cm_serverRef_t
  as offline.  This is done to prevent additional usage of the
  stale vldb data while waiting for the update volume request
  to complete.

* added a state field to the cm_volume_t object (enum volstate
  vl_ name space) that maintains the state of the volume based
  upon the states of all of the cm_serverRef_t and cm_server_t
  objects.

* modified cm_UpdateVolume() to set the state of the cm_volume_t
  RW, RO, and BK to either vl_alldown or vl_online.  There can't
  be any other states because cm_UpdateVolume() destroys any
  previous knowledge we might have had regarding busy or offline
  volume status

* modified cm_UpdateVolume() to update the volume name in the
  cm_volume_t to the volume base name if the previous value was
  a volume ID.

* modified cm_FollowMountPoint() to check to see if the volume
  name is a volume ID and if so call cm_GetVolumeByID instead
  of cm_GetVolumeByName.  This ensures that volume IDs are always
  looked up as numeric values.  There is no longer a need to
  maintain a separate cm_volume_t containing the string representation
  of the ID value.

* Added a flags parameter to cm_GetVolumeByName() and cm_GetVolumeByID().
  The first flag is a "CREATE" flag which is set by all existing
  calls.  The flag is not set by calls to cm_GetVolumeByID() from
  the server probe code when volume status is being updated.  We
  do not want the server probe operation to result in additional
  turnover in the cached volume data.  The second flag is NO_LRU_UPDATE
  which is set when the server probe code updates the volume status.
  This flag will be used to prevent the server probe operation from
  changing the order of the least recently used queue.

* Modified cm_GetVolumeByName to ensure that only one cm_volume_t is
  allocated for a given set of normal, readonly, and backup volumes
  regardless of whether or not the volume is accessed via name or
  ID number.  The cm_volume_t namep field is always the base name
  of the volume.

* Added a new volume state, vl_unknown.  This state is used as
  the initial state for all cm_volume_t when the cache manager starts,
  for each cm_volume_t at creation, and for each cm_volume_t when
  recycling.  The cache manager does not know the state of all
  volumes in the world, only those that are in the cache and for
  which it has queried the VLDB and hosting file servers.

* modified cm_GetVolumeByName() to initialize the state of a
  volume to vl_unknown.  The actual state will be set when a
  cm_VolumeUpdate() call completes successfully.

* changed name of scache hash table variables to avoid ambiguity
  when adding hash tables for volumes

* fix a buffer overrun in sys\pioctl_nt.c  pioctl().
  (thanks Asanka)

* modified cm_UpdateVolume() to handle the case in which there is
  no RW volume but there is are RO volumes for a given base name.
  This is done by querying for the ".readonly" volume name if the
  base name does not exist in the VLDB.  We never query for the
  .backup name because under the current usage model a .backup
  volume may only exist on the server that the read-write volume
  is located.  If there is no RW volume, there can be no .backup.

* Added four hash tables for cm_volume_t objects to improve the
  search time of cm_GetVolumeByID(), cm_GetVolumeByName() and
  cm_ForceUpdateVolume(). One each for Name, RWID, ROID, and
  BKID.  Three ID hash tables are necessary as long as it is
  desireable to maintain a single cm_volume_t containing all
  of the related RW, RO, and BK volume data.  Having the RW and
  RO volume data in the same object is necessary for the
  implementation of cm_GetROVolumeID() which returns either the
  RO or RW ID depending upon the existence of RO volume instances.

* Added a volume LRU queue so that volume reuse becomes fairer.
  This does not replace the all Volumes list which is used when
  it is desireable to walk a list of all the volumes whose order
  is not going to change out from underneath you which makes it
  safe to drop the cm_volumeLock.

* handles volume hash table updates where volume name to
  volume ID number changes.  The volume name remains
  constant in the cm_volume_t.  if a vos rename is performed,
  the name of the volume will change and the volume IDs will be
  updated.  Subsequent access to the old volume ID will create a
  new cm_volume_t with the new name.

* Added a daemon thread operation to query the state of volumes
  listed as busy or offline.  cm_CheckBusyVolumes() calls
  RXAFS_GetVolumeStatus() for each volume ID that is marked vl_busy
  or vl_offline.   If the volume is now online, the status on the
  volume is updated.  The default period is 600 seconds.  This can
  be configured with the BusyVolumeCheckInterval registry value.

* Added prototype for smb_IoctlPrepareRead() which was missing a
  return type in the function definition.

* Added volume id lists to the cm_server_t.  These lists are
  allocated in blocks of ~32 IDs.  When a cm_PingServer()
  detects a change in server state, the state of the cm_volume_t
  is updated.

* Added volID to the cm_serverRef_t object.  volID is used
  to identify the volume for which the object is a referral.
  cm_FreeServerList() uses the volID to remove the volume
  from the cm_server_t.

* In cm_Analyze, when VNOVOL or VMOVED are received,
  call cm_ForceVolumeUpdate() to force a refresh of the volume
  location data.

* Added cm_VolumeStatusNotification() which is used at the moment
  to log volume status changes to the trace log.  It will also
  be used as the access point to the File System Filter driver
  notification engine.

* Added an all cm_scache_t list to cm_data.  This replaces the use
  of the stat cache LRU queue when we need to enumerate all
  entries.  The LRU list order is not static and when using it to
  enumerate all entries it can result in items being missed or
  items being processed more than once.

* Modified cm_Analyze(). Instead of reseting the busy or offline
  state of a volume and forcing a retry of the operation
  cm_Analyze will defer to the background daemon thread that will
  update the state once every 600 seconds.

* Added the automatic generation of a Freelance ".root" read-write
  mountpoint that refers to the root.afs volume of the workstation
  cellname at the time the mountpoint is created.

16 years agorxkad-badticket-20070610
Jeffrey Altman [Sun, 10 Jun 2007 15:20:43 +0000]
rxkad-badticket-20070610

In rxkad_CheckResponse, when checking the return value from tkt_CheckTimes,
the order is == 0, == -1, < -1, <= 0.  The <= 0 case is extraneous so
remove it. Both < -1 and <= 0 returned RXKADBADTICKET.

16 years agowindows-pioctl-buffer-overrun-20070609
Asanka Herath [Sun, 10 Jun 2007 06:52:51 +0000]
windows-pioctl-buffer-overrun-20070609

this patch protects against a buffer overrun in the client if the
server were to send more data than the receiving buffer can hold.

16 years agolinux-kmem-destroy-fix-20070609
Derrick Brashear [Sun, 10 Jun 2007 06:39:15 +0000]
linux-kmem-destroy-fix-20070609

don't destroy if create failed

16 years agorestore-missing_afs_realm_names-20070606
Marc Dionne [Thu, 7 Jun 2007 03:18:21 +0000]
restore-missing_afs_realm_names-20070606

FIXES 62016

restore AFS_REALM_NAMES

16 years agovsprocs-avoid-bogus-error-20070606
Derrick Brashear [Wed, 6 Jun 2007 18:55:04 +0000]
vsprocs-avoid-bogus-error-20070606

don't EPRINT if it's not an error

16 years agoaix-declare-setlim-20070606
Derrick Brashear [Wed, 6 Jun 2007 18:21:05 +0000]
aix-declare-setlim-20070606

maybe fix lwp.c compiling with modern aix

16 years agosolaris-sparc-default-to-v8-insns-for-kmod-20070605
Derrick Brashear [Tue, 5 Jun 2007 18:10:00 +0000]
solaris-sparc-default-to-v8-insns-for-kmod-20070605

FIXES 23935

don't use the default instruction set since the compiler has changed over time

16 years agofix-kbuild-linux-ppc64-20070604
Jeffrey Hutzelman [Tue, 5 Jun 2007 04:47:09 +0000]
fix-kbuild-linux-ppc64-20070604

The Linux 2.6 kbuild environment requires assembly files end in .S, not .s.

16 years agoclone-dont-hold-vol-lock-20070516
Derrick Brashear [Fri, 18 May 2007 06:52:37 +0000]
clone-dont-hold-vol-lock-20070516

same deal as purge. a transaction on the volume outstanding holds it. we don't need to preclude all access

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

same deal as purge. a transaction on the volume outstanding holds it. we don't n
eed to preclude all access

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

same deal as purge. a transaction on the volume outstanding holds it. we don't n
eed to preclude all access

16 years agolinux-posix-lock-file-has-wait-arg-now-20070517
Derrick Brashear [Thu, 17 May 2007 19:28:10 +0000]
linux-posix-lock-file-has-wait-arg-now-20070517

FIXES 58590

hopefully this works, i can't actually try it now

16 years agolinux-sparc-arch-detection-20070517
Arkadi Shishlov [Thu, 17 May 2007 07:50:02 +0000]
linux-sparc-arch-detection-20070517

FIXES 60288

use arch to figure out if we are sparc64

16 years agolinux-posix-lock-file-has-wait-arg-now-20070517
Derrick Brashear [Thu, 17 May 2007 07:34:15 +0000]
linux-posix-lock-file-has-wait-arg-now-20070517

FIXES 58590

hopefully this works, i can't actually try it now

16 years agobucoord-dump-levels-20070517
Rainer Toebbicke [Thu, 17 May 2007 06:42:03 +0000]
bucoord-dump-levels-20070517

FIXES 57246

dont use memory past what you've allocated

16 years agolibafs-common-placate-irix-make-20070516
Lukas Hluze [Wed, 16 May 2007 21:57:20 +0000]
libafs-common-placate-irix-make-20070516

FIXES 59153

irix make wants $@ to be $(@) inside other braces

16 years agorx-ack-idle-comment-20070516
Chaskiel M Grundman [Wed, 16 May 2007 21:48:27 +0000]
rx-ack-idle-comment-20070516

FIXES 60046

fix comment

16 years agorx-tq-busy-20070516
Chaskiel M Grundman [Wed, 16 May 2007 21:44:07 +0000]
rx-tq-busy-20070516

FIXES 60046

abstract tq busy wait code

16 years agorx-send-req-ack-20070516
Chaskiel M Grundman [Wed, 16 May 2007 21:36:33 +0000]
rx-send-req-ack-20070516

FIXES 60046

change reply code where appropriate

16 years agoglibc24-jmp-buf-mangling-20070516
Arkadi Shishlov [Wed, 16 May 2007 21:21:44 +0000]
glibc24-jmp-buf-mangling-20070516

FIXES 60440

glibc 2.4 does jmp buf manging for "security"

whatever. deal.

16 years agosupergroup-cleanup-20070516
Marcus Watts [Wed, 16 May 2007 20:54:42 +0000]
supergroup-cleanup-20070516

FIXES 60809

Problems fixed with this patch:
/1/ supergroup bug: when updating an entry in prdb, the logic in
pt_mywrite is supposed to unset flagged & found bitmap entries.
This failed on little-endian architecture machines.

/2/ warnings; a few fixes to eliminate some compiler noise.

16 years agoptserver-fix-bitmap-20070516
Marcus Watts [Wed, 16 May 2007 20:42:56 +0000]
ptserver-fix-bitmap-20070516

FIXES 60680

make sure bitmap code is correct else supergroups returns invalid answer

fix verify code to be correct on little endian hosts

16 years agowindows-afsd-list-acl-only-dir-20070516
Jeffrey Altman [Wed, 16 May 2007 16:54:16 +0000]
windows-afsd-list-acl-only-dir-20070516

FIXES 60258

Do not return access denied when applying directory patches if the
user does not have read permission.  This is the case we want to
fake the directory entries for.  Also, make sure we set the directory
attribute on non-files so that the path can be accessed via the
Explorer Shell.

16 years agowindows-afsd-uninitialized-20070516
Jeffrey Altman [Wed, 16 May 2007 16:49:19 +0000]
windows-afsd-uninitialized-20070516

Do not use uninitialized variables in log messages

Do not dereference NULL pointers

16 years agowindows-afsd-list-acl-only-dir-20070515
Jeffrey Altman [Wed, 16 May 2007 04:43:47 +0000]
windows-afsd-list-acl-only-dir-20070515

FIXES 60258

When the ACL on a directory is list only, attempts to read the status
of items in the directory will fail.  Therefore, it is pointless to try.
Instead, when we know the user ACL does not have read permission, we
should immediately lie about the status info.  That way we don't pound
the file server with requests that will produce an abort which in turn
will trigger force the file server to delay responses to the client.

This change has the added benefit that cached status info is no longer
leaked to callers that do not have appropriate permissions.

With this change the Explorer Shell is much more responsive.

16 years agowindows-aklog-20070515
Jeffrey Altman [Wed, 16 May 2007 04:33:38 +0000]
windows-aklog-20070515

FIXES 60938

do not copy an uninitialized field

16 years agowindows-fs-getcacheparms-20070515
Jeffrey Altman [Tue, 15 May 2007 21:19:37 +0000]
windows-fs-getcacheparms-20070515

fix output of cache parms now that they are 64-bit

16 years agonamei-dont-randomly-full-salvage-20070514
Rainer Toebbicke [Mon, 14 May 2007 22:42:09 +0000]
namei-dont-randomly-full-salvage-20070514

FIXES 61300

trivial fix to clear forcep
(inode already does this)

16 years agogetdcache-no-slowpass-enforcement-on-dynroot-20070514
Chaskiel M Grundman [Mon, 14 May 2007 22:36:22 +0000]
getdcache-no-slowpass-enforcement-on-dynroot-20070514

don't enforce slowpass restriction on dynroot vcaches (and don't do unneeded work)

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

oops, another change slipped in

16 years agofix-partition-check-20070510
Frank Cusack [Thu, 10 May 2007 23:41:32 +0000]
fix-partition-check-20070510

oops

16 years agoopenbsd41-20070510
Jim Rees [Thu, 10 May 2007 21:48:33 +0000]
openbsd41-20070510

OpenBSD 4.1 config files

16 years agovos-namelen-for-dump-restore-is-stupid-20070509
Derrick Brashear [Thu, 10 May 2007 01:15:57 +0000]
vos-namelen-for-dump-restore-is-stupid-20070509

fixes bug reported by stephen joyce which i am too lazy to go get the RT number of

16 years agoka-forwarder-licensing-20070508
Russ Allbery [Tue, 8 May 2007 23:49:44 +0000]
ka-forwarder-licensing-20070508

ka-forwarder is under a different copyright not previously covered, so
embed the actual licensing in the source rather than referring to a file
that doesn't exist and add the relevant information to the LICENSE files.

16 years agoquickstart-pam-docs-20070507
Russ Allbery [Mon, 7 May 2007 20:16:02 +0000]
quickstart-pam-docs-20070507

Flesh out the PAM installation documentation for Linux and Solaris (and a
bit of reformatting in the HP-UX section).

16 years agoup-preserve-dir-mtime-20070507
Russ Allbery [Mon, 7 May 2007 18:17:42 +0000]
up-preserve-dir-mtime-20070507

FIXES 34522

Set the mtime on newly created directories to match the original directory.

16 years agowindows-netidmgr-20070505
Asanka Herath [Sat, 5 May 2007 22:13:20 +0000]
windows-netidmgr-20070505

Only automatically add configuration for cell foo.com if the realm
of the cell matches the realm of the identity

16 years agowindows-checkvols-freelance-20070504
Jeffrey Altman [Fri, 4 May 2007 07:05:05 +0000]
windows-checkvols-freelance-20070504

do not flush mount point values for freelance volume

16 years agowindows-wix-shell-ext-20070503
Jeffrey Altman [Fri, 4 May 2007 03:49:06 +0000]
windows-wix-shell-ext-20070503

When installing on 64-bit Windows we need to install the 32-bit and 64-bit
shell extensions under different HKCR keys.  Otherwise, only one of the
explorer versions will get an extension handler.

16 years agowindows-wix-beta-upgrades-20070503
Jeffrey Altman [Fri, 4 May 2007 00:12:15 +0000]
windows-wix-beta-upgrades-20070503

This change is not as important for OpenAFS as it was for KFW as
OpenAFS does not issue betas with the same build numbers as final
releases.  However, for users of daily builds when build numbers
are not being incremented it will provide benefit.

We modify the upgrade rules to include the current version number
and then block the uninstall if the currently installed package
is the one that is being installed.

The change applies to both the regular installer and the 32-bit
tools for WOW64 environments.

16 years agowindows-flush-mountpoints-20070502
Jeffrey Altman [Thu, 3 May 2007 01:44:50 +0000]
windows-flush-mountpoints-20070502

When flushing volume location information also flush the mount point
data.  This change results in behavior that matchs the Unix client.

16 years agowindows-wix-html-installgd-20070426
Jeffrey Altman [Thu, 26 Apr 2007 19:44:18 +0000]
windows-wix-html-installgd-20070426

FIXES 59827

The wix installer creates the wrong directory name for the IBM Quick Guide
Remember to specify the LongName.

16 years agowindows-dropbox-fix-20070426
Asanka Herath [Thu, 26 Apr 2007 19:06:44 +0000]
windows-dropbox-fix-20070426

FIXES 60161

A dropbox is a directory with ACLs 'li' that permits a user to create
a new file but not be able to read other files within the same directory.

The 1.5 Windows clients have not been able to write to dropboxes since
the addition of the locking code.  The lock acquisition test assumed
that if the user did not have PRSFS_LOCK or PRSFS_WRITE that it would
be unable to obtain a lock.  It did not take into account the special
treatment of PRSFS_INSERT by the file server and so never bothered to
ask.

As it turns out though, the locking situation is more complex than one
might think.  If the server is 1.4.1 or earlier, it will not grant
any locks for users with INSERT.  The PRSFS_LOCK privilege is required.

For 1.4.2 through 1.4.4, write locks will be granted if the user has
PRSFS_INSERT but a read lock will not be granted unless the user has
PRSFS_LOCK.  Therefore, if the server advertises the WRITELOCKACL
capability bit if the read lock is not granted a write lock can be
attempted.

For 1.4.5 and 1.5.20 and above, the file server will grant read locks
if the user has PRSFS_WRITE or PRSFS_INSERT.  (Insert only applies if
the user is the creator of the file).

This patch handles all of the above possibilities.  In the pre-1.4.2
case a read-lock request will be faked locally.

16 years agorx-call-abort-release-refcount-20070425
Derrick Brashear [Wed, 25 Apr 2007 20:47:13 +0000]
rx-call-abort-release-refcount-20070425

don't leak a call ref when doing a call abort

16 years agoquickstart-solaris-pam-20070423
Derrick Brashear [Tue, 24 Apr 2007 04:48:04 +0000]
quickstart-solaris-pam-20070423

this actually needs more fleshing out but it's at least a pointer

16 years agoquickstart-obsolete-appendices-20070423
Simon Wilkinson [Tue, 24 Apr 2007 04:37:52 +0000]
quickstart-obsolete-appendices-20070423

FIXES 60137

commit updates to the docs for obsolete stuff

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

also the appendix file

16 years agoviced-write-perm-grants-read-lock-20070423
Jeffrey Altman [Tue, 24 Apr 2007 01:27:30 +0000]
viced-write-perm-grants-read-lock-20070423

the permission to obtain a write-lock is granted either by having the
"w" permission or the "i" when owning the file.  The permission to obtain
a read-lock has been granted by having the "k" permission.  However it
makes no sense that someone can obtain a write-lock but not a read-lock.
This patch grants permission to obtain read-locks to those who can obtain
write-locks.

17 years agowindows-wix-html-installgd-20070420
Jeffrey Altman [Fri, 20 Apr 2007 11:58:22 +0000]
windows-wix-html-installgd-20070420

FIXES 59827

The wix installer creates the wrong directory name for the IBM Quick Guide

17 years agolinux-symlink-handling-avoid-crash-20070418
Christopher Allen Wing [Wed, 18 Apr 2007 19:18:35 +0000]
linux-symlink-handling-avoid-crash-20070418

Background: OpenAFS is vulnerable to crashing in the linux kernel symlink
code when running on kernel versions between 2.6.10 to 2.6.12.  This also
includes all RHEL4 kernels, because RHEL4 includes the code from 2.6.10. The
problem is that the symlink text caching API, page_follow_link() et al, is
unsuitable for network filesystems where the page cache may be invalidated
in parallel with a path lookup.

This crash can be triggered easily by doing a bunch of path lookups
involving symlinks (e.g., stat() on various files pointed to through links),
while simultaneously running 'fs flushvol' on the volume containing the
symlinks.

The simplest way to fix this problem is to disable the use of symlink text
caching when the kernel does not provide a usable symlink API.

17 years agovmalloc-no-glock-20070418
Chaskiel M Grundman [Wed, 18 Apr 2007 19:01:31 +0000]
vmalloc-no-glock-20070418

Based on Chris Wing's analysis which stated in part:
GFP_NOFS tells the allocator not to recurse back into the filesystem if it's
necessary to free up memory.  However, vmalloc() does not have such an
option.  Therefore, calling osi_Alloc() to request more than a page of
memory may end up recursing back into AFS to try to free unused inodes or
dentries.

In this case, what happened was that osi_Alloc() is called within an
AFS_GLOCK(); osi_Alloc() calls vmalloc() which tries to free dentry objects,
which then calls back into the AFS module.  Unfortunately, AFS_GLOCK() is
already held and we deadlock.

17 years agowindows-afskfw-bluescreen-20070418
Jeffrey Altman [Wed, 18 Apr 2007 16:57:05 +0000]
windows-afskfw-bluescreen-20070418

The afskfw library contains an unprotected call to krb5_free_context
which can result in krb5_free_context being called with a NULL pointer.
MIT's Kerberos libraries do not check that the pointer is non-NULL and
will attempt to use it as a valid pointer which will in turn result
in an invalid memory access error.

This library is used by afslogon.dll which is loaded by winlogon.exe.

If the krb5 profile is invalid, the krb5_init_context call will fail
to allocate a krb5_context structure which can then result in
krb5_free_context being called with a NULL pointer.

An unhandled exception within winlogon.exe will cause a blue screen event
on Windows 2000, XP and 2003.

17 years agowindows-afslogon-station-name-20070416
Jeffrey Altman [Tue, 17 Apr 2007 05:03:39 +0000]
windows-afslogon-station-name-20070416

Use case insensitive comparisons for the station name.  Otherwise, we
will fail to notice that the logon is interactive on Vista.

17 years agowindows-kfw-krb5_init_context-20070416
Jeffrey Altman [Tue, 17 Apr 2007 01:10:28 +0000]
windows-kfw-krb5_init_context-20070416

If krb5_init_context() fails make sure that no further krb5 calls
are performed.

krb5_init_context() will fail if the krb5.ini file is damaged.