Commit Graph

4194 Commits

Author SHA1 Message Date
Jeffrey Altman
c74a23fc40 windows-server-ping-deadlock-20070612
avoid deadlock in cm_ServerPing due to volume status update code
2007-06-13 07:04:55 +00:00
Derrick Brashear
b1bbe33fde newuuid-20070612
add the newuuid command
2007-06-12 19:59:02 +00:00
Marc Dionne
391d657c6e linux-configure-vfs-update-20070612
FIXES 62017

clean up output
2007-06-12 19:38:20 +00:00
Marc Dionne
6eabfbd4b9 linux-vfs-flush-3arg-20070612
FIXES 62203

3rd arg for passing lock owner id. add configure gunk also
2007-06-12 19:32:19 +00:00
Simon Wilkinson
a6294ee79a 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
2007-06-23 07:32:56 +00:00
Jeffrey Altman
86b3330c71 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.
2007-06-12 16:23:09 +00:00
Marc Dionne
37a0b14e01 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
2007-06-12 06:41:06 +00:00
Lars Wilke
ee37fd74ef 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.
2007-06-12 04:49:56 +00:00
Steven Jenkins
ce209b23a5 man-vos-online-20070611
Add initial man pages for vos offline and vos online.
2007-06-12 04:42:01 +00:00
Jeffrey Altman
66adaf3268 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.
2007-06-10 17:58:51 +00:00
Jeffrey Altman
f4bd260422 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.
2007-06-10 15:20:43 +00:00
Asanka Herath
8a814a5596 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.
2007-06-10 06:52:51 +00:00
Derrick Brashear
18484f0fc6 linux-kmem-destroy-fix-20070609
don't destroy if create failed
2007-06-10 06:39:15 +00:00
Marc Dionne
c0010267f2 restore-missing_afs_realm_names-20070606
FIXES 62016

restore AFS_REALM_NAMES
2007-06-07 03:18:21 +00:00
Derrick Brashear
fcfdcc3cc1 vsprocs-avoid-bogus-error-20070606
don't EPRINT if it's not an error
2007-06-06 18:55:04 +00:00
Derrick Brashear
cb18c5f802 aix-declare-setlim-20070606
maybe fix lwp.c compiling with modern aix
2007-06-06 18:21:05 +00:00
Derrick Brashear
a621049680 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
2007-06-05 18:10:00 +00:00
Jeffrey Hutzelman
e8493e06f9 fix-kbuild-linux-ppc64-20070604
The Linux 2.6 kbuild environment requires assembly files end in .S, not .s.
2007-06-05 04:47:09 +00:00
Derrick Brashear
aa5d46b71b 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
2007-05-18 06:52:37 +00:00
Derrick Brashear
ad98eacdad linux-posix-lock-file-has-wait-arg-now-20070517
FIXES 58590

hopefully this works, i can't actually try it now
2007-05-17 19:28:10 +00:00
Arkadi Shishlov
9352435f1c linux-sparc-arch-detection-20070517
FIXES 60288

use arch to figure out if we are sparc64
2007-05-17 07:50:02 +00:00
Derrick Brashear
59eb3de5ea linux-posix-lock-file-has-wait-arg-now-20070517
FIXES 58590

hopefully this works, i can't actually try it now
2007-05-17 07:34:15 +00:00
Rainer Toebbicke
87a93241da bucoord-dump-levels-20070517
FIXES 57246

dont use memory past what you've allocated
2007-05-17 06:42:03 +00:00
Lukas Hluze
5987e2923a libafs-common-placate-irix-make-20070516
FIXES 59153

irix make wants $@ to be $(@) inside other braces
2007-05-16 21:57:20 +00:00
Chaskiel M Grundman
d143385ec6 rx-ack-idle-comment-20070516
FIXES 60046

fix comment
2007-05-16 21:48:27 +00:00
Chaskiel M Grundman
7a72e2445f rx-tq-busy-20070516
FIXES 60046

abstract tq busy wait code
2007-05-16 21:44:07 +00:00
Chaskiel M Grundman
a900fe3089 rx-send-req-ack-20070516
FIXES 60046

change reply code where appropriate
2007-05-16 21:36:33 +00:00
Arkadi Shishlov
f550e3b3ff glibc24-jmp-buf-mangling-20070516
FIXES 60440

glibc 2.4 does jmp buf manging for "security"

whatever. deal.
2007-05-16 21:21:44 +00:00
Marcus Watts
d608809c24 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.
2007-05-16 20:54:42 +00:00
Marcus Watts
62dc197541 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
2007-05-16 20:42:56 +00:00
Jeffrey Altman
03e3b77553 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.
2007-05-16 16:54:16 +00:00
Jeffrey Altman
82d2cc5b7f windows-afsd-uninitialized-20070516
Do not use uninitialized variables in log messages

Do not dereference NULL pointers
2007-05-16 16:49:19 +00:00
Jeffrey Altman
e02fa3e73b 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.
2007-05-16 04:43:47 +00:00
Jeffrey Altman
60bbb56b54 windows-aklog-20070515
FIXES 60938

do not copy an uninitialized field
2007-05-16 04:33:38 +00:00
Jeffrey Altman
11cec9e764 windows-fs-getcacheparms-20070515
fix output of cache parms now that they are 64-bit
2007-05-15 21:19:37 +00:00
Rainer Toebbicke
c78b4c61f7 namei-dont-randomly-full-salvage-20070514
FIXES 61300

trivial fix to clear forcep
(inode already does this)
2007-05-14 22:42:09 +00:00
Chaskiel M Grundman
1b1c0eda5a 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
2007-05-14 22:36:22 +00:00
Frank Cusack
08cbee9b2d fix-partition-check-20070510
oops
2007-05-10 23:41:32 +00:00
Jim Rees
7e0571b0e5 openbsd41-20070510
OpenBSD 4.1 config files
2007-05-10 21:48:33 +00:00
Derrick Brashear
f2761c4163 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
2007-05-10 01:15:57 +00:00
Russ Allbery
707feb4fdd 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.
2007-05-08 23:49:44 +00:00
Russ Allbery
bc585c90cf quickstart-pam-docs-20070507
Flesh out the PAM installation documentation for Linux and Solaris (and a
bit of reformatting in the HP-UX section).
2007-05-07 20:16:02 +00:00
Russ Allbery
1d4d8f5c4f up-preserve-dir-mtime-20070507
FIXES 34522

Set the mtime on newly created directories to match the original directory.
2007-05-07 18:17:42 +00:00
Asanka Herath
958bbb77bf windows-netidmgr-20070505
Only automatically add configuration for cell foo.com if the realm
of the cell matches the realm of the identity
2007-05-05 22:13:20 +00:00
Jeffrey Altman
c8a3a0ecf2 windows-checkvols-freelance-20070504
do not flush mount point values for freelance volume
2007-05-04 07:05:05 +00:00
Jeffrey Altman
2b442dbddb 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.
2007-05-04 03:49:06 +00:00
Jeffrey Altman
9f508ce443 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.
2007-05-04 00:12:15 +00:00
Jeffrey Altman
d9946ba827 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.
2007-05-03 01:44:50 +00:00
Jeffrey Altman
113ccb9963 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.
2007-04-26 19:44:18 +00:00
Asanka Herath
bfed93d7fc 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.
2007-04-26 19:06:44 +00:00