5929 Commits

Author SHA1 Message Date
Simon Wilkinson
bd7a4ff106 DEVEL15-vol-proto-do-not-break-dafs-20090326
LICENSE IPL10
FIXES 12540

Reenable prototype of VolumeExternalName_r for dafs


(cherry picked from commit 4ced67ca980218e27aa4033f31a9d238590919d5)
2009-03-26 23:42:13 +00:00
Andrew Deason
48a5f73c9b DEVEL15-state-analyzer-usage-20090326
LICENSE IPL10
FIXES 124539

fix usage for state-analyzer


(cherry picked from commit 8cc60f4931f1b62c84d0a74d0fbbbfd0ea582a91)
2009-03-26 21:33:59 +00:00
Derrick Brashear
3e7f35284d DEVEL15-return-values-missing-fix-20090326
LICENSE IPL10
FIXES 124194

add return values for functions missing them


(cherry picked from commit d4359ad72aee9839ee019165a3fb37c9cfae3b4d)
2009-03-26 14:30:25 +00:00
Chaskiel M Grundman
498485a58e DEVEL15-cbr-free-what-you-alloc-20090325
LICENSE IPL10
FIXES 124531

dequeue and free items as alloc'd


(cherry picked from commit 80494f5096d231e1e032229732f2d94ba569718e)
2009-03-25 19:34:48 +00:00
Derrick Brashear
df46bd2b92 DEVEL15-shutdown-vcache-avoid-null-deref-20090324
LICENSE IPL10

avoid potential null pointer deref at shutdown


(cherry picked from commit 4162ff9d4d733afc788b3c002adc57aac78a3282)
2009-03-24 22:40:14 +00:00
Derrick Brashear
0b71649f69 DEVEL15-ia64-linux26-ucontext-20090325
LICENSE IPL10

use ucontext lwp, like we do on 1.4 and head
2009-03-25 19:05:59 +00:00
Simon Wilkinson
505d989110 DEVEL15-redhat-spec-update-20090325
LICENSE IPL10
FIXES 123650

install afszcm.cat, update CellServDB


(cherry picked from commit cc0922c26fcbeebe73d4df422db65a550a9c6bf8)
2009-03-25 18:42:34 +00:00
Rainer Toebbicke
a369eb1d5a DEVEL15-copyonwrite-optimization-fix-20090325
LICENSE IPL10

update to do tail case


(cherry picked from commit 78e29484eb67deb8c19e4549eabaa27a3527fcf6)
2009-03-25 14:34:47 +00:00
Derrick Brashear
fdc7026e91 DEVEL15-volser-split-namei-only-20090324
LICENSE IPL10

make vos split be namei-only


(cherry picked from commit 5e770d6d18eacd5e4e70dd95853e4f1d99c54df2)
2009-03-24 18:20:33 +00:00
Derrick Brashear
88b6b2f3eb DEVEL15-vol-split-nearino-20090324
LICENSE IPL10

add nearInode hint


(cherry picked from commit 1f83528147ee47addd926ae729ee36520d1e82e5)
2009-03-24 17:55:58 +00:00
Derrick Brashear
8eb5aee119 DEVEL15-vfsck-needs-fd-t-defn-20090324
LICENSE IPL10

make vfsck build again


(cherry picked from commit 9a697699b487066f04783194771774db42ecfba9)
2009-03-24 14:24:07 +00:00
Derrick Brashear
fe76b2607a DEVEL15-volser-prototype-cleanup-20090324
LICENSE IPL10

make prototypes and return values etc match


(cherry picked from commit 4df81d17bfbc1e2437883260c350be2631002ec0)
2009-03-24 14:22:05 +00:00
Hartmut Reuter
5a2771be8b DEVEL15-volserver-split-volume-functionality-20090324
LICENSE IPL10
FIXES 124520

implement the server side of vos split


(cherry picked from commit ba742892e2102cf545157e9c97df10799a58403e)
2009-03-24 13:36:35 +00:00
Derrick Brashear
41546ff01a DEVEL15-fssync-enum-syntax-20090324
LICENSE IPL10

no trailing comma


(cherry picked from commit 71a73608b1393a5f7f333cb680608d8a1f03a3f6)
2009-03-24 12:43:16 +00:00
Derrick Brashear
1c6aed0974 DEVEL15-fd-t-definition-fun-20090323
LICENSE IPL10

make FD_t be defined everywhere we need it


(cherry picked from commit 63b0d495cfc6362bced7b2492310cf1a0bf684b0)
2009-03-24 12:41:37 +00:00
Derrick Brashear
16582c9f50 DEVEL15-iced-threadnum-return-cast-20090323
LICENSE IPL10

cast return type from threadNum
2009-03-24 03:44:14 +00:00
Jeffrey Altman
cde1fb287c DEVEL15-vol-lock-fd-type-20090323
LICENSE IPL10

the lock_fd field of DiskPartition[64] is a file descriptor.
On Windows this is a HANDLE and on *nix platforms an int.
OpenAFS uses the FD_t type to provide platform specific type
info for file descriptors.  Use it for the lock_fd field and
the salvageLock in ObtainsSalvageLock().

Finally, the on the wire diskPartition[64] struct in volser/volint.xg
also contains a lock_fd field.  This is an on the wire field and
must be left at a fixed width of 32-bits.  Since a file descriptor
is not portable across machines we truncate the 64-bit HANDLE value
to fit in the 32-bit lock_fd field when necessary.


(cherry picked from commit a209012f1a3f83959f9df14ebad4aa2b50bacae0)
2009-03-23 22:47:47 +00:00
Jeffrey Altman
b7a6c26421 DEVEL15-vol-fssync-server-socket-20090323
LICENSE IPL10

GetHandler() sets up a fdset and returns the max socket fd
which is used with select().  Windows ignores the numfd param
(first param) of select() and therefore computing the max fd
value is meaningless.  We can avoid a number of casts by
not attempting to treat this value as osi_socket.


(cherry picked from commit aa8d735b8707e2bf9142699fd25034655c821f96)
2009-03-23 22:42:59 +00:00
Jeffrey Altman
3354c15e58 DEVEL15-libadmin-vos-ihandle-20090323
LICENSE IPL10

include afs/ihandle.h in order to gain access to the FD_t definition


(cherry picked from commit 1d4542f93bae6b59e7d4321c23a2551fa43416ba)
2009-03-23 22:38:27 +00:00
Derrick Brashear
aefaca423f DEVEL15-volser-fcn-return-types-20090323
LICENSE IPL10

make internal functions have correct return types


(cherry picked from commit 4d9f5731c9ec6c50154da9784df0631a65dd9a9d)
2009-03-23 19:53:55 +00:00
Derrick Brashear
494fb57504 DEVEL15-printf-sanity-args-20090323
LICENSE IPL10

fix type specifier for correct arg


(cherry picked from commit 3e15ed48d305a5fedb1af552459cf5bbe1b95a40)
2009-03-23 19:40:58 +00:00
Simon Wilkinson
60e5e69eab DEVEL15-disconnected-put-back-vcaches-we-held-20090323
LICENSE IPL10

if we hold a vcache for shadow, we need to release the ref when we give it up


(cherry picked from commit 62f4c29eef578b7f3df143f3ddd04307d8f2271f)
2009-03-23 19:11:25 +00:00
Simon Wilkinson
fc5f9be3c5 DEVEL15-disconnected-dont-double-dequeue-shadow-removal-20090323
LICENSE IPL10
FIXES 124496

queue_Remove twice tends to cause things like panics


(cherry picked from commit ad20213bbba4083160a88c2f65e5e8c8de259266)
2009-03-23 19:00:02 +00:00
Derrick Brashear
d7b2bdd57b DEVEL15-viced-type-fixups-20090323
LICENSE IPL10

SetLogThreadNum takes a fcn returning int.
get_key's first arg is a void*


(cherry picked from commit 7a7b55658b7c72eef0f9b495f02ce766c9961d6e)
2009-03-23 18:46:52 +00:00
Jeffrey Altman
b17bb5aaf8 DEVEL15-volid-unsigned-int32-20090323
LICENSE IPL10
FIXES 124510

assume volume ids are always unsigned 32 bit values


(cherry picked from commit c39d0161552bf69affe839fcb36dfb858dbaedc1)
2009-03-23 18:19:04 +00:00
Derrick Brashear
15288f7859 DEVEL15-linux-task-becomes-task-struct-20090323
LICENSE IPL10

struct task->struct task_struct. configure needs to cope


(cherry picked from commit 4830a7c8d79c72dcd5d8ce4bab6b8c0a8b249d96)
2009-03-23 15:16:43 +00:00
Derrick Brashear
a436975534 DEVEL15-krb5-run-configure-tests-20090321
LICENSE IPL10
FIXES 124522

--with-krb5=/path caused us to not run configure tests. fix that


(cherry picked from commit 39c4e32bf484aab2c9cf978cbf5877bdb989e9d6)
2009-03-21 16:29:56 +00:00
Derrick Brashear
c04dc241ba DEVEL15-aix-no-aklog-tsm-without-krb5-20090320
LICENSE IPL10
FIXES 124522

don't build aklog_dynamic_auth without krb5


(cherry picked from commit c1d545dff6483369ade640b27b9ab7baaa6faac5)
2009-03-21 15:49:20 +00:00
Derrick Brashear
107aac6299 DEVEL15-rx-prototypes-alloc-free-ifdefs-20090321
LICENSE IPL10

don't prototype osi_Alloc/osi_Free if they're just #defines


(cherry picked from commit 4398d6277dacde8464c0db7a73d5ecb37039823f)
2009-03-21 15:45:52 +00:00
Derrick Brashear
563ffa4766 DEVEL15-sig-t-exclude-multiple-20090321
LICENSE IPL10

disallow multiple typedefs of sig_t


(cherry picked from commit 4bf68765b6d2a04c388ae9a5e6f134c0505a785b)
2009-03-21 15:39:14 +00:00
Derrick Brashear
91ea55fa2c DEVEL15-update-config-guess-20090321
LICENSE IPL10

update from upstream


(cherry picked from commit b1aaf822f558236b91e543f03bcf159db1054c0b)
2009-03-21 15:07:50 +00:00
Derrick Brashear
70572e538f DEVEL15-aix51-pag-header-20090320
LICENSE IPL10
FIXES 124522

no sys/pag.h until 5.2


(cherry picked from commit 3e034dcb6cbb82ef78853a342bd2c459250e0bcd)
2009-03-20 22:45:20 +00:00
Jeffrey Altman
9df22587de DEVEL15-vol-fssync-server-socket-20090320
LICENSE IPL10

another location where we need osi_socket


(cherry picked from commit 73a57e8013c67d5760c677c6aef36611af076af0)
2009-03-20 17:25:33 +00:00
Jeffrey Altman
28bcbbdd44 DEVEL15-libadmin-client-prototype-20090320
LICENSE IPL10

correct the prototype for afsclient_RXDebugOpenPort


(cherry picked from commit b2db1e83c1b4b66ee4f7fb22a6211f849f0e5dd4)
2009-03-20 17:21:59 +00:00
Jeffrey Altman
3853dd846d DEVEL15-xstat-printf-ptr-format-20090320
LICENSE IPL10

make use of AFS_PTR_FMT to avoid warnings on Windows.


(cherry picked from commit 218f08ffedb8c75e0314ab00000adf8419fdfe7b)
2009-03-20 17:10:19 +00:00
Jeffrey Altman
b1c1148189 DEVEL15-config-afs-ptr-format-20090320
LICENSE IPL10

Define AFS_PTR_FMT to permit per platform printf formats for pointer
representation.


(cherry picked from commit 37fc3b01445cd6446f09c476ea2db47fea544b7d)
2009-03-20 17:09:12 +00:00
Chaskiel M Grundman
3289196dfb DEVEL15-linux-osi-vm-flushpages-use-remote-invalidate-20090320
LICENSE IPL10

use invalidate_remote_inode instead of vmtruncate in osi_VM_FlushPages


(cherry picked from commit 18da64a45c5f1a069f39f687bd84ee51b77a6bd3)
2009-03-20 15:55:48 +00:00
Derrick Brashear
f6b127f72b DEVEL15-dyn-vcache-shake-needs-exporting-20090320
LICENSE IPL10

update to export shakeloosevcaches


(cherry picked from commit 6ef7d7dfb8caf4a555c2de480037769783cbe88e)
2009-03-20 15:04:18 +00:00
Jeffrey Altman
85537feeb7 DEVEL15-vol-fssync-socket-20090320
LICENSE IPL10

the argument to the function parameter is a socket.  fix the type
to be osi_socket.


(cherry picked from commit 0cd43484be886721c0c4d9750f0b40015ba60756)
2009-03-20 12:15:12 +00:00
Jeffrey Altman
cef66b06ff DEVEL15-libadmin-vos-windows-exports-20090320
LICENSE IPL10

do not export function name arrays that are already
exported by other libraries.


(cherry picked from commit 64c451cec0ccce8d095109a8697144be093c1259)
2009-03-20 11:52:22 +00:00
Jeffrey Altman
dfd7065a7d DEVEL15-libadmin-client-prototypes-20090320
LICENSE IPL10

fix the prototype for afsclient_RPCStatOpenPort and afsclient_CMStatOpenPort


(cherry picked from commit 5eea839b637a120e9b10246511b3d826a1e49a0f)
2009-03-20 11:49:44 +00:00
Jeffrey Altman
2ec5ab3d05 DEVEL15-libadmin-windows-socket-20090320
LICENSE IPL10

a socket on Windows is type SOCKET not HANDLE


(cherry picked from commit 14a60754951b7b4920ba1dfcf9c9aac99ae8bce4)
2009-03-20 11:47:13 +00:00
Jeffrey Altman
20872f9054 DEVEL15-windows-osistatl-20090320
LICENSE MIT

Add lock level to osistatl


(cherry picked from commit df961512e1162188a60cec613dd273e25dbf63c9)
2009-03-20 11:44:48 +00:00
Jeffrey Altman
c92c44fab5 DEVEL15-static-inline-macros-20090320
LICENSE IPL10
FIXES 124515

add back support for AFS_64BIT_ENV


(cherry picked from commit e460a6e30539086ff3c4bdb264ab57f6e045ad71)
2009-03-20 05:30:29 +00:00
Derrick Brashear
304f9d671e DEVEL15-ubik-recovery-use-file-number-not-hardcoded-zero-20090319
LICENSE IPL10

don't hardcode DB0, use the file number which is being recovered


(cherry picked from commit ef5f6f988c352db58e8b9df422b417cc199b4837)
2009-03-20 03:49:04 +00:00
Derrick Brashear
38b9d2cceb DEVEL15-param-file-64-bit-scalar-updates-20090319
LICENSE IPL10

64 bit scalar type availability


(cherry picked from commit 4eef62a2f29d81d4fd8c3d28beb0403499f9802e)
2009-03-20 03:12:23 +00:00
Derrick Brashear
26bcc392d8 DEVEL15-dynamic-vcache-allocation-20090319
LICENSE IPL10
FIXES 124334

add dynamic allocation of vcaches when possible (currently just for linux)


(cherry picked from commit e59b81c984652f7570708831d8b36bdd42f98cf8)
2009-03-20 02:31:41 +00:00
Derrick Brashear
ab1805508f DEVEL15-cbd-new-magic-version-with-fixed-time-size-and-dump-switch-20090319
LICENSE IPL10
FIXES 124451

make cbd able to select whether time is 32 or 64 bit; when time size is
known, have a new magic number so it's obvious


(cherry picked from commit 79d362c77cfc307dc66bfe874952a914e2313e89)
2009-03-19 20:13:02 +00:00
Derrick Brashear
117d0b9311 DEVEL15-bozo-fs-create-unused-ptr-20090319
LICENSE IPL10

add an "unused" field so we match the prototype for create in the bnodeops
struct


(cherry picked from commit fe98c927d3888814077b085e53725f15996cd1b9)
2009-03-19 18:03:51 +00:00
Derrick Brashear
acdd6d56d0 DEVEL15-static-inline-macros-20090319
LICENSE IPL10

rework the static inline macros to work with headers, with userspace code,
and to have just one copy


(cherry picked from commit 101399171b5a5315cb3f1fdd003d56f0ca214bc8)
2009-03-19 17:44:48 +00:00