252 Commits

Author SHA1 Message Date
Simon Wilkinson
ca99b18ab8 Linux: bdi doesn't always have a name
The 'name' element of the backing_dev_info structure is new in
2.6.32 - add yet another configure test, and #ifdef to protect our
setting of it.

Change-Id: I0a3e411e571e05771619381bf621d299482c695b
Reviewed-on: http://gerrit.openafs.org/1341
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit a9951410e1cb1a713f9d26a24d6b3cf485f94ac6)
Reviewed-on: http://gerrit.openafs.org/1498
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
2010-03-03 08:26:47 -08:00
Anders Kaseorg
fd82293843 Linux: autoconf.h is moving in 2.6.33
In 2.6.33, <linux/autoconf.h> is moving to <generated/autoconf.h>.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Change-Id: Ib97031728b89cf8e17581f3c425216ae4b5538ec
Reviewed-on: http://gerrit.openafs.org/1351
Reviewed-by: Marc Dionne <marc.c.dionne@gmail.com>
Tested-by: Marc Dionne <marc.c.dionne@gmail.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 91e50aa81bdeecbdf351088b3b5510fe3c8e848e)
Reviewed-on: http://gerrit.openafs.org/1375
Tested-by: Derrick Brashear <shadow@dementia.org>
2010-02-23 12:02:13 -08:00
Anders Kaseorg
6fc5c12f13 Linux: Use kbuild to check for UML
<linux/autoconf.h> is automatically included by kbuild; you aren’t
supposed to include it directly.  That breaks in 2.6.33 because
<linux/autoconf.h> is moving to <generated/autoconf.h>.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Change-Id: I56c90dfe90ef72408620793fcd4e927ea3d8f468
Reviewed-on: http://gerrit.openafs.org/1350
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 660c7a3952f36fc892e12aa6b11eda3295b1416d)
Reviewed-on: http://gerrit.openafs.org/1374
2010-02-23 12:02:00 -08:00
Anders Kaseorg
1a7c9185ed Linux: Remove unused LINUX_KERNEL_SELINUX test
This test needs <linux/autoconf.h>, which has moved in 2.6.33.  It is
also unused (it was removed in master by commit
35d5b6c4e101c92e2c242bb75029db24eb1aa7d7).

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Change-Id: I7876fed2ed2b0395cdf29c71edfdad1089c88cce
Reviewed-on: http://gerrit.openafs.org/1354
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
2010-02-21 04:04:04 -08:00
Marc Dionne
fcddefb76a Linux: kmem_cache_create fix and cleanup
Fix the kmem_cache constructor function to match the current
expected prototype, and cleanup related code.  This has been wrong
for a while, but since we were just passing extra parameters the
only effect was to generate a warning.

- Add a new configure test to detect the new constructor function
signature
- Define the older versions of the constructor in osi_compat.h,
making them call the current version
- Move a few compatibility #defines to osi_compat.h

(cherry picked from 3abc87a5a94f0d5eaca702c7bd66fbe35ce7b896)
Reviewed-on: http://gerrit.openafs.org/657
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

Change-Id: I3570a3268d35ac73409b96816ba5112f809f6645
Reviewed-on: http://gerrit.openafs.org/994
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
2010-01-14 07:35:30 -08:00
Derrick Brashear
2556d49ec5 linux kernel lacks uintptr
sadly only recent kernels include uintptr_t. change the cast to use unsigned
long

Change-Id: Ib69f7aa0f2d316c5ea8bdc960b15ee0f89f96250
Reviewed-on: http://gerrit.openafs.org/1059
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 165571947be770645900bb8d55ba7b6a3c58f8fd)
Reviewed-on: http://gerrit.openafs.org/1081
2010-01-08 10:53:58 -08:00
Marc Dionne
4d4c0e2853 Linux: deal with ctl_name removal
The binary sysctl interface will be removed in kernel 2.6.33 and
ctl_name will be dropped from the ctl_table structure.
Make the code that uses ctl_name conditional on a configure test.

(cherry picked from commit 886801b069fab1e6fc94003221dcfe18e05ac376)

Change-Id: Iba0f107f299c6515e4e560d7596e6187bd68e399
Reviewed-on: http://gerrit.openafs.org/904
Tested-by: Marc Dionne <marc.c.dionne@gmail.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Reviewed-on: http://gerrit.openafs.org/1013
Tested-by: Derrick Brashear <shadow@dementia.org>
2009-12-20 11:35:10 -08:00
Marc Dionne
277c2af3bf Linux: utsrelease.h is moving
In kernel 2.6.33, utsrelease.h has moved to include/generated.
Adapt the configure code to consider that location, and clean
up that section's indentation.

(cherry-picked from 36f97969f39637042a54c0d45877a48cc9dfcac1)

Change-Id: Ifb139aa8183740612fbb5e8dc06faf982fef9397
Reviewed-on: http://gerrit.openafs.org/1012
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
2009-12-20 11:29:00 -08:00
Simon Wilkinson
5979cb6a82 linux-byte-range-locks-sensibility-20090526
LICENSE IPL10
FIXES 124766

make our locks work correctly with the linux connectathon lock testing

Change-Id: Ic632c30f597881ae40a8b412a3a1fd99f35ef025
Reviewed-on: http://gerrit.openafs.org/928
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
2009-12-16 22:28:56 -08:00
Marc Dionne
9b37972e61 Linux: 2.6.32 - Adapt to writeback changes
Adapt to the writeback changes in kernel 2.6.32
- Since we define our own backing_dev, it needs to be registered with
the writeback code and attached to the super_block.  Otherwise it
might get ignored when writeback is needed.
- Each backing_dev now gets its own kernel thread.  The name of the
thread is based on the registered name - the openafs one will appear
as "flush-afs".

Reviewed-on: http://gerrit.openafs.org/574
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Change-Id: Ib1403a65991fc7c2cb73099feef7e0dbec02543d
Reviewed-on: http://gerrit.openafs.org/755
2009-10-30 05:21:46 -07:00
Russ Allbery
49094ccfa6 Add automatic sysname detection for ARM Linux
Add arm*-linux* to the case statement that attempts to automatically
determine the AFS sysname, similar to the other Linux sysname
determination cases.

Reviewed-on: http://gerrit.openafs.org/334
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit a59df36211d6bc641eeec6d8fd8876a98ce3600a)
Reviewed-on: http://gerrit.openafs.org/462
2009-09-15 22:40:17 -07:00
Derrick Brashear
76f8d59084 MacOS 10.6 support update
Make things build on MacOS 10.6 again. Don't break 10.5 build.
Fix an error in the MacOS port which was left from previous head.

Reviewed-on: http://gerrit.openafs.org/96
Verified-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 1d1ae6195bd03c4348a57914cf892e06b507d855)
Reviewed-on: http://gerrit.openafs.org/355
Tested-by: Derrick Brashear <shadow@dementia.org>
2009-08-27 21:49:47 -07:00
Simon Wilkinson
ac2227aac9 Remove the RCSID macro
The move to git means that we can no longer populate the RCSID
macro in the way that it was used with CVS. This patch simply
removes the macro from every file, except where it contains
information from upstream (and it's in a comment).

Reviewed-on: http://gerrit.openafs.org/14
Verified-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 3bb5fa5f1b3dc13ab20ed026c7ea64e11388b9c9)
Reviewed-on: http://gerrit.openafs.org/http://gerrit.openafs.org/174
Tested-by: Derrick Brashear <shadow@dementia.org>
2009-07-21 18:02:02 -07:00
Marc Dionne
1ad3a477d7 STABLE14-linux-keyring-export-check-20090701
LICENSE IPL10
FIXES 125001

check for key_type_keyring being exported; only use it if so


(cherry picked from commit 4ca66112c2a012e04619445275507ae9cd6c11da)
2009-07-01 21:57:11 +00:00
Andrew Deason
6257a38048 STABLE14-osol-solookup-20090624
LICENSE IPL10
FIXES 124924

update for new opensolaris solookup function signature


(cherry picked from commit ee72f251049ca361b095e813adce63216343afd8)
2009-06-24 22:38:40 +00:00
Simon Wilkinson
72110be4f1 STABLE14-linux-allow-disabling-syscall-probing-20090602
LICENSE IPL10

give a configure switch to allow disabling syscall probing


(cherry picked from commit 091139b3e2160e1f56b11820d59589de9ccd9c40)
2009-06-02 19:32:08 +00:00
Derrick Brashear
19eb058d38 STABLE14-xml-versioning-take-two-20090601
LICENSE IPL10

deal with this in a way which does not trip creation of CML state config files


(cherry picked from commit 0a617e33234f6104fdfb0d45593cf313c961f653)
2009-06-01 18:52:13 +00:00
Derrick Brashear
41e3e1d446 STABLE14-xml-doc-building-glue-20090527
LICENSE IPL10
FIXES 124804

add configure switches for building docs. generate version files needed.


(cherry picked from commit e452c704c59700496227dccb3161efd34ca709ba)
2009-05-27 20:45:07 +00:00
Derrick Brashear
957fd4ed9e STABLE14-ukernel-use-fsblkcnt-20090513
LICENSE IPL10
FIXES 124681

blkcnt_t doesn't exist on fbsd, macos 10.3, and isn't really the right type.
this is the right type, but also can be missing. test appropriately.


(cherry picked from commit 070f02923cfa4e01ccb754928cdd4d02bec48720)
2009-05-22 17:31:43 +00:00
Matt Benjamin
fba9ac7a9c STABLE14-dragonfly-bsd-userland-20090427
LICENSE IPL10
FIXES 124702

add support for dragonflyBSD's userland


(cherry picked from commit 25f13f38064bf38ed89332b38c53c740475db87d)
2009-04-27 19:32:58 +00:00
Marc Dionne
761803469f STABLE14-linux-2630-maybe-20090331
LICENSE IPL10
FIXES 124560

hopefully support 2.6.30 when it's released


(cherry picked from commit d0a166bdffce2d2498cab54cc458d9489d05c299)
2009-03-31 13:16:45 +00:00
Derrick Brashear
f3933e252b STABLE14-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:35 +00:00
Marc Dionne
f495ff4e85 STABLE14-linux-key-alloc-changes-20090318
LICENSE IPL10
FIXES 124507

Fix the old configure test for key_alloc for the task argument - we
can't just rely on the number of arguments anymore. Wish this could be
done without using -Werror.
Add an additional test for the struct cred argument


(cherry picked from commit bf9dc554b366b08ce0bef62ce242c94371938000)
2009-03-19 04:02:53 +00:00
Marc Dionne
0dc296c6c3 STABLE14-linux-disable-readahad-20081108
LICENSE IPL10
FIXES 123604

The code has long contained a backing_dev_info structure, but it
was never attached to anything.  Initialize its use properly with
bdi_init, and attach it to i_mapping for every newly filled inode.
bdi_init and bdi_destroy are needed for proper initialization of
some percpu counters, otherwise we get some oopses.


(cherry picked from commit 18e78d91e78e541fce6c9295919946af0744aa7e)
2009-03-18 12:57:09 +00:00
Marc Dionne
6c9af0dc39 STABLE14-linux-2629-20090115
LICENSE IPL10
FIXES 124115

add 2.6.29 support


(cherry picked from commit 24a5d12bae9a2af393f3641055893824c71a4712)
2009-01-15 13:27:42 +00:00
Andrew Deason
4429ed93ee STABLE14-libuafs-set-fileoffsetbits-20090112
LICENSE IPL10
FIXES 124093

make libuafs work with things which expect to be able to use native file
sizes etc


(cherry picked from commit 47ac8ba7022e80e5bc0023782b6b27d5ac97ccd3)
2009-01-12 14:12:03 +00:00
Simon Wilkinson
efd56d611a STABLE14-linux-truncate-race-20090109
LICENSE IPL10
FIXES 124094

avoid a race during truncation which trips an issue when fsx is run


(cherry picked from commit f49bf1d919b48901533da78c9fe38ca0339b7bca)
2009-01-09 15:09:33 +00:00
Andrew Deason
906a2b4d36 STABLE14-ac-verbatim-include-undefs-20090109
LICENSE IPL10
FIXES 124077

the undefs for things which are not ac macros ended up outside the ac verbatim
blob. fix it.


(cherry picked from commit 2d07a62c38fea642d52c20ff86e8f72e3c16bbe0)
2009-01-09 14:51:07 +00:00
Matt Benjamin
be8fd231ce STABLE14-amd64-fbsd-20081215
LICENSE IPL10
FIXES 123811

add support for fbsd 7.1, amd64 fbsd


(cherry picked from commit c63e2541e5879fe153238ad1d774f60fa00dc0ee)
2008-12-15 20:38:19 +00:00
Tracy Di Marco White
e108dbbd40 STABLE14-netbsd-acinclude-typo-20081117
LICENSE IPL10
FIXES 123647

fix netbsd version tests for amd64


(cherry picked from commit 122833a44eed58273e73992df815c7718ac6e4f7)
2008-11-17 23:14:27 +00:00
Marc Dionne
4d1e520c91 STABLE14-linux-new-aop-20081108
LICENSE IPL10
FIXES 123580

support for 2.6.28


(cherry picked from commit 041f09e17b7e1760a968c0e38f52d7feac2862ba)
2008-11-08 16:49:57 +00:00
Marc Dionne
be0deafca0 STABLE14-autoconf-262-support-20081020
LICENSE IPL10
FIXES 118058

fix the quoting and remove the tests we shouldn't need anymore


(cherry picked from commit bc9c0a14154639d8e45554a3abeb867af9a8d0b2)
2008-10-20 13:35:27 +00:00
Mike Meffie
2ca1a5cdeb STABLE14-linux-alt-builddir-fix-20081014
LICENSE IPL10
FIXES 121650

correct the if test to include missing x


(cherry picked from commit 9be6b92a17ebe1d125e13c1cbd7bce620e7672ce)
2008-10-14 15:38:51 +00:00
Stefaan De Roeck
377b27bb64 STABLE14-linux-alternate-kernel-builddir-20081012
LICENSE IPL10
FIXES 121354

add support for KBUILD_OUTPUT=... builds.


(cherry picked from commit 726fc5b8425eb7bbaab4bdde38d977382dc17a9d)
2008-10-12 19:02:35 +00:00
Derrick Brashear
797645eb78 STABLE14-find-new-xbsa-first-20081007
LICENSE IPL10
FIXES 119162

change test order


(cherry picked from commit af0b03055e8a3244881d8ac3e7c52ed775ae86d1)
2008-10-07 19:51:45 +00:00
Derrick Brashear
e89dfb2e8b STABLE14-acinclude-protos-20081002
LICENSE IPL10

add missing acinclude templates
2008-10-02 15:01:20 +00:00
Derrick Brashear
ac75e89d71 STABLE14-ah-verbatim-section-tweak-20080925
LICENSE IPL10

remove PACKAGE and VERSION


(cherry picked from commit eb875d30340a67af78638cf7f395dfe14c0ed405)
2008-09-25 18:00:17 +00:00
Derrick Brashear
607d4beeb3 STABLE14-acfooter-inline-20080925
LICENSE IPL10

based on work by mdw@umich.edu


(cherry picked from commit 9d09de799b6efc1a62e0cf28f1b033fd4132b2e1)
2008-09-25 15:44:03 +00:00
Niklas Edmundsson
cf4ddc21f6 STABLE14-aix61-initial-support-20080903
LICENSE IPL10
FIXES 113638

aix 6.1 support


(cherry picked from commit 539535cf679d6e70f34b80b74c127efae1f0bba2)
2008-09-03 19:27:37 +00:00
Derrick Brashear
3926d28f8c STABLE14-namei-by-default-on-sol10-20080816
LICENSE IPL10

default to namei, not inode, on solaris 10 except by request


(cherry picked from commit 03982bd54839f81cdc691ad83e946fac8f8789b7)
2008-08-16 22:37:51 +00:00
Marc Dionne
05ec17077a STABLE14-linux-2-6-27-20080816
LICENSE IPL10
FIXES 111634

add support for 2.6.27, which removes asm/semaphore.h


(cherry picked from commit d7a5619e5bd8241dd13611a4be37f04f3aa4ed27)
2008-08-16 20:43:13 +00:00
Todd DeSantis
8f94ec4482 STABLE14-butc-xbsa-update-20080711
LICENSE IPL10

update xbsa support for current tsm


(cherry picked from commit 5baf817a31e72d85415222af5c3dee70ed1f6bd3)
2008-07-15 11:33:57 +00:00
Marc Dionne
7b066c21a3 STABLE14-linux-2626-support-20080608
LICENSE IPL10
FIXES 101091

add 2.6.26 support


(cherry picked from commit bed3e31ca4da711649d6c6b9ab828515cd3418fc)
2008-06-09 04:39:42 +00:00
Derrick Brashear
6114ed092b STABLE14-linux24-hlist-unhashed-configure-test-fix-20080602
LICENSE IPL10

make the hlist_unhashed test actually work


(cherry picked from commit 79b7b4eaded831a33d85f580e9e4155528fbd35f)
2008-06-03 03:54:34 +00:00
Derrick Brashear
345ffd3735 STABLE14-linux-hlist-unhashed-opencoding-20080520
LICENSE IPL10
FIXES 93871

if we can't use hlist_unhashed (which is dumb) or we don't have it (less dumb) w
ork around it.


(cherry picked from commit c761f248397334400f8b4bb71cc4d01d3e4fc6ff)
2008-05-20 22:04:02 +00:00
Simon Wilkinson
2df69d3595 STABLE14-linux-fc9-20080419
LICENSE IPL10

add in needed changes for fc9 kernels


(cherry picked from commit 0caa578a05150451c706c2ec6c3d095c671a7043)
2008-04-19 22:56:06 +00:00
Marc Dionne
08c9069ac1 STABLE14-linux-no-syscall-probe-with-no-init-mm-20080406
LICENSE IPL10
FIXES 88000

no better idea for this, got to do something... push this for now


(cherry picked from commit c7ee4828e0d7c631fcd827d1a4c9af8bebb2fc2d)
2008-04-07 04:49:12 +00:00
Derrick Brashear
cb973c5a36 STABLE14-enable-linux-flock-20080324
LICENSE IPL10
FIXES 53457

enable flock again in 1.4; it's been on without complaint in 1.5 since the original ticket was filed
2008-03-24 20:46:40 +00:00
Chaskiel M Grundman
73681e858e STABLE14-hpux1123-sysname-detection-20080317
LICENSE IPL10
FIXES 89125

add the 11.23 sysname


(cherry picked from commit 7ffe6a97ff0453c2cae8b15a9d7e2084e3a864d4)
2008-03-17 18:08:00 +00:00
Derrick Brashear
1b065bec14 STABLE14-linux-2625-20080310
LICENSE IPL10

adapted from marc dionne's patch, but works more directly like the darwin port,
further, i'm guessing iget_locked will go away evewntually. maybe this is
too conservative?


(cherry picked from commit cadbebc2e50aedea01475620a3add4c315c13faa)
2008-03-10 19:05:28 +00:00