2572 Commits

Author SHA1 Message Date
Derrick Brashear
df63d437b9 STABLE14-cleanup-20050130
get all the drift between head and 1.4 branch
2005-01-31 04:34:42 +00:00
Chaskiel M Grundman
5b6fe6a693 STABLE14-linux-tasklist-lock-weak-20050129
FIXES 17424

weak binding to tasklist_lock


(cherry picked from commit 51ec9e099e22e16dbf8aee3333568b9ff26abd3f)
2005-01-31 04:25:31 +00:00
Jeffrey Hutzelman
b3e2c31138 STABLE14-osi-probe-syscall-20050129
FIXES 17405

add osi_probe


(cherry picked from commit f126dbdbe226bb05687f0bcbd0e379431f666219)
2005-01-31 04:25:13 +00:00
Jeffrey Altman
f7bb850073 STABLE14-createx-null-ptr-20050126
Don't release null scps


(cherry picked from commit 4cc0394af02a07a0000dd4ce9384398d8b03a6f4)
2005-01-31 04:24:58 +00:00
Jeffrey Altman
d82351b409 STABLE14-windows-aclent-20050126
Undo the FreeACLEnt lock as it is an automatic deadlock


(cherry picked from commit 4c27de95394d44e2066413de7eca65315b83cacb)
2005-01-31 04:24:44 +00:00
Chas Williams
3e6880c806 STABLE14-revert-afs-indextimes-in-dcache-20050125
FIXES 17377

indexTimes needs to persist, revert for now


(cherry picked from commit ff2e55343fdf14d730825c8e09dbe42b6037abb8)
2005-01-31 04:24:34 +00:00
Jeffrey Altman
27cdf06c28 STABLE14-winnotes-update-20050126
add dr watson info to install notes.

update changes list


(cherry picked from commit e41837e876f7dc947e8718b6dc972b803023eae5)
2005-01-31 04:24:05 +00:00
Jeffrey Altman
c0dc03d391 STABLE14-windows-misc-20050126
* The list of ACL entries was becoming corrupted because the function
    which obtained a free entry was doing so without the appropriate lock
    being held.

  * Changed the default @sys name list to "x86_win32 i386_w2k i386_nt40"
    for 32-bit x86 systems.  The default for itanium will be "ia64_win64"
    and "amd64_win64" for amd 64-bit processors.


(cherry picked from commit 516614090190f34cb74ec741cf06f86384bff4d1)
2005-01-31 04:23:57 +00:00
Jeffrey Altman
fa4b62ebb4 STABLE14-windows-misc-20050125
The list of ACL entries was being corrupted because the function
which obtains a free ACL entry was doing so without the appropriate
lock being held.

Returning Not A Directory is not the right thing to do when we are
attempting to resolve a path if the error is found on one of the
intermediary path components.  Instead return No Such Path or
No Such File as appropriate.


(cherry picked from commit ff3436446e1c8447d0f9703b088c6d65c6845aa0)
2005-01-31 04:23:45 +00:00
Jim Rees
7b9ca68155 STABLE14-obsd-vattrs-20040125
compare vattrs against VNOVAL, not -1
fixes mode setting now that modes are 32 bits


(cherry picked from commit e86eb73e30fe492c8be99a0a7a4788ec1b136ead)
2005-01-31 04:23:36 +00:00
Chas Williams
048c088f15 STABLE14-afs-indextimes-in-dcache-20050125
FIXES 17377

move indextimes array into dcache struct


(cherry picked from commit 1de152256aeb1d2b54e177a327404efe2504c815)
2005-01-31 04:23:31 +00:00
Chas Williams
8828862192 STABLE14-unpin-out-of-order-oops-20050125
FIXES 17346

unpin before freeing


(cherry picked from commit 9b7e78b048869e0319a369912d9fef63288dca7f)
2005-01-31 04:23:22 +00:00
Jeffrey Altman
6bd87f2519 STABLE14-rxdebug-withWaited-20050125
copy/paste error corrected.  'withWaited' never assigned a value


(cherry picked from commit 8a68d38977d4311a62350dd60645e39ded4650f1)
2005-01-31 04:23:17 +00:00
Derrick Brashear
4af4780deb STABLE14-linux-mmap-ro-means-no-write-20050125
don't allow a write map of a file which cannot be written to


(cherry picked from commit 96cf60ef3e830d16325fba664044f751ca164f85)
2005-01-31 04:23:11 +00:00
Nathan Neulinger
d9b041c595 STABLE14-no-copy-libafs-builds-20050121
make things so file copies from src/libafs don't happen; change how libafs_tree
is done


(cherry picked from commit 187f26a3afe805180268322d93dd7e01974c5fb1)
2005-01-31 04:23:02 +00:00
Nathan Neulinger
516fc4207d STABLE14-no-copy-libafs-builds-20021015
make things so file copies from src/libafs don't happen; change how libafs_tree
is done


(cherry picked from commit 782109a29bd751a7681e3a31aeaa077e880208c3)
2005-01-31 04:23:01 +00:00
Chas Williams
bdd9440ece STABLE14-linux-revised-dentry-invalidation-20050121
FIXES 17337

"the latest 2.6 version of "tryflushdcachechildren" is probably
good enough for 2.2/2.4 as well. further, we can just call
d_invalidate() to make things less complicated. unification
is good.

its seen limited testing here under 2.4/2.6."


(cherry picked from commit 72ea4e2c690d28b6c5c464368099b49dac847642)
2005-01-31 04:20:35 +00:00
Nickolai Zeldovich
4240eeb48a STABLE14-rx-hash-table-mod-prime-20050121
see https://lists.openafs.org/pipermail/openafs-devel/2004-September/010967.htmland https://lists.openafs.org/pipermail/openafs-devel/2004-September/010968.html


(cherry picked from commit 01aca8ca222373d71941cd007bdc00260bd3ff5c)
2005-01-31 04:20:25 +00:00
Douglas Engert
98ede708a9 STABLE14-rx-packetreadwrite-adjust-offset-20050119
offset - l must be zero in the second loop pass to avoid overwrites


(cherry picked from commit 110b1f14bd5b5548211ece9a32c540490e0aef6a)
2005-01-31 04:20:12 +00:00
Derrick Brashear
178fc7050b STABLE14-readd-qwaiting-20050121
FIXES 5616

the problem was caused by optimization on solaris. sigh.


(cherry picked from commit 90115511209e59ff4728a66a575899312fdf3e5b)
2005-01-31 04:20:00 +00:00
Derrick Brashear
4aac3f5268 STABLE14-linux-no-log-in-tryflushdcachechildren-20050121
FIXES 5835

just don't log, and lock order doesn't matter


(cherry picked from commit 76d6e43eb8e1ec72fcfde7cf8f303f954c11da14)
2005-01-31 04:19:55 +00:00
Jim Rees
6764e021dd STABLE14-alloc-confusion-20040120
use osi_Alloc instead of osi_AllocLargeSpace for tokens, to match free


(cherry picked from commit a0ce71a84374cc0600813a3101b76f89df04ee76)
2005-01-31 04:19:41 +00:00
Jim Rees
42b012d21b STABLE14-obsd-cred-ptr-20040120
**credpp, not *credp (OpenBSD only)


(cherry picked from commit 7f430a45aa12108ed1dc93e4a41ac154b1397818)
2005-01-31 04:19:20 +00:00
Jim Rees
83abf6cbd0 STABLE14-re-indent-20040120
re-indent so I can read the file so I can fix a bug


(cherry picked from commit dacae61bda0105497e912b3cdac429066cd68fcf)
2005-01-31 04:19:09 +00:00
Chas Williams
9a5016c423 STABLE14-linux26-vcache-reclaim-cleanup-20050119
"ok, if you ever drop
dcache_lock you need to go to restart (i think that's pretty clear).
shrink_dcache_parent() _might_ reduce a dentry count to 0.  in the
previous version, it seemed to make the assumption that this would
always happen.  if shrink_dcache_parent() is unsuccessful and the
dentry is a directory, we cant restart.  we would just find the
the dentry again and do the same thing over (we could always d_drop
but you shouldnt do this to active directories -- see d_invalidate).

if we find a busy dentry, we abort all processing for this inode.
going back to restart would find the same busy inode.  (i suppose
we could use a d_flag to keep track of which dentry has been shrunk.
this has other trouble, like who resets the flag and when?)  since we
only do this for directories and d_alias typically only grows due to
soft/hard links (as far as i can tell) this scheme seems reasonable."


(cherry picked from commit 73437ee7d469765df30285369301e3907fee0a3c)
2005-01-31 04:18:56 +00:00
Chaskiel M Grundman
885559ab7e STABLE14-dirbuffer-fid-is-index-20050119
"The new buffer code (which I wrote) did not deal
with dcache object re-use, as I had conflated the concepts of "dcache *
reuse" and "dcache slot reuse".

This patch should fix this problem. It now stores the dcache index (aka slot number,
which is the same as the numeric part of the cache file's filename) in the
buffer instead of the ephemeral struct dcache pointer."


(cherry picked from commit 8ccd2d91d89fc3ed0170a458853ec95ff274c87d)
2005-01-31 04:18:40 +00:00
Jeffrey Altman
07ff56fbb4 STABLE14-rx-multiple-packets-20050118
Doug Engert reports that large tokens are corrupted when being sent
using RX.  This patch fixes two bugs which prevent the transmission
and receipt of multiple packet exchanges.


(cherry picked from commit f42701022203605f8509b106fe8ca1677666aaa9)
2005-01-31 04:18:32 +00:00
Jim Rees
2527473d99 STABLE14-obsd-cleanups-20040118
remove dead code
add (commented out, non-working) new reclaim code


(cherry picked from commit 5f498279b827675a48c80b7c2f43c78d8e41d406)
2005-01-31 04:18:25 +00:00
Jeffrey Altman
0e9de60611 STABLE14-windows-smb_vc_t-refcounts-20050117
Rework the reference counting of the smb_vc_t objects to use
smb_ReleaseVC and smb_HoldVC.  Add missing counts for references
from waiting locks.

Fix cm_ioctl.c to allow it to compile once again.


(cherry picked from commit eabe2b6f77da6913b4a6bd51220708c363762fe6)
2005-01-31 04:17:43 +00:00
Chas Williams
aa3ebd8013 STABLE14-linux26-rename-more-cleanup-20050116
FIXES 17284

cleanup how renaming does moving and unhashing of dentries


(cherry picked from commit cadc5b46e103fd543814d450dd9a568961c9886a)
2005-01-31 04:17:14 +00:00
Chaskiel M Grundman
08330670c7 STABLE14-linux26-dcache-lock-20050116
FIXES 17266

"The changes I submitted previously, and committed as
linux-26-vlru-cycle-20041012 do not satisfy necessary invariants of the
dcache api.

1) the dcache_lock is not held when calling d_unhashed and
list_empty(&dentry->d_subdirs)
2) the caller of d_prune_aliases does not hold it's own ref on the inode

Patch attached.(has been used lightly for a month or so)"


(cherry picked from commit 646028dbdb90640f14f7a22aede858432ffa9025)
2005-01-31 04:16:56 +00:00
Chaskiel M Grundman
a68dece64e STABLE14-linux26-zomb-gcpags-cleanup-20050116
FIXES 17265

clean up for newer non-TASK_ZOMBIE kernels


(cherry picked from commit 091d64876bea6737dd6cf89a9232dd11d0072677)
2005-01-31 04:16:49 +00:00
Chas Williams
ec3f5221e3 STABLE14-linux25-rename-rehash-not-move-20050116
not tested yet


(cherry picked from commit 8db7eb1876380df8100c5df37e6a25a7ebc4f43b)
2005-01-31 04:16:40 +00:00
Matthew Miller
7a10e32602 STABLE14-linux26-rlim-20050114
detect rlim stuff for linux 2.6


(cherry picked from commit 9e81a8e4c2e7830ab18de1f5dd23dfc916ef2bf0)
2005-01-31 04:16:28 +00:00
Derrick Brashear
0151cb9b67 STABLE14-fs-busy-stats-20050113
add support for counting number of vbusies returned


(cherry picked from commit d9e55baca180891ef999919118a5ad2d73764abb)
2005-01-31 04:14:45 +00:00
Johan Danielsson
126adfa9fd STABLE14-linux26-pag-copy-groups-always-20050113
FIXES 17226

always copy the group list on linux 2.6


(cherry picked from commit 0cea4432fcceff07103cb4df0eba9b5667ce1fa4)
2005-01-31 04:14:36 +00:00
Chas Williams
cc13538ae9 STABLE14-x86-sol10-param-cleanup-20050113
FIXES 17082

make user section match kernel section


(cherry picked from commit 7854052b3827a3853cb80a6f7de5dcc32756aa95)
2005-01-31 04:14:21 +00:00
Chas Williams
58ee8b895c STABLE14-fstrace-linux-proc-20050113
FIXES 17240

support /proc interface


(cherry picked from commit 270f675b6f64df5cca73de2ae097a12fd56c59b9)
2005-01-31 04:14:08 +00:00
Chas Williams
9d26f5c510 STABLE14-sol10-afsd-rc-20050113
FIXES 17036

install an rc file for solaris 10


(cherry picked from commit 2519680a2c93f4a3049e64bd22760510775e3343)
2005-01-31 04:13:57 +00:00
Love Hörnquist-Åstrand
072852376d STABLE14-nbsd30-20050113
FIXES 16889

netbsd 3 this time for sure


(cherry picked from commit ed02afba553ca9944c5e3c338188ba38b5946a0c)
2005-01-31 04:13:44 +00:00
Derrick Brashear
e54dc999eb STABLE14-largefile-efbig-20050113
FIXES 16964

return EFBIG instead of E2BIG


(cherry picked from commit 0a872abd75fa27bb91aa2724c54fc72fce03f241)
2005-01-31 04:13:36 +00:00
Douglas Engert
54c74d940f STABLE14-sol9-vfsck-interleave-becomes-si-20050113
FIXES 16941

fix remaining fs_interleave ref


(cherry picked from commit a18937e6a4e5f8a3266e6208bf51fea9bb636c48)
2005-01-31 04:12:57 +00:00
Kris Van Hees
bdcabfd4b8 STABLE14-linux-page-follow-link-light-20041209
FIXES 16742

new 2.6 uses page_follow_link_light
detect and use
2005-01-31 04:12:51 +00:00
Rainer Toebbicke
79dd19d6e7 STABLE14-lih-host-hold-20050113
FIXES 17211

"lih_r now leaves the current lih_host held, and h_Releases those for which
it changed mind during h_Enumerate. It also closes the window that
ClearHostCallbacks_r opens.

The problem was: due to the leak on the h_Hold table, rx connections and
host and client structures stopped being garbage collected once the
fileserver went through GetSomeSpace_r. Only relevant for "busy" servers,
many would never even invoke this routine."


(cherry picked from commit e4961402747d02f51b0ea82aad7f0d4f774dbeac)
2005-01-31 04:10:43 +00:00
Chas Williams
488be9122c STABLE14-linux26-avoid-memory-zone-fun-20050113
FIXES 16965

"  the wake_up_bit() mechanism has replaced
'per object' wait queues (atleast when testing for single bit changes).
the actual wait queue to use is determined using a hash on page->flags
(which encodes the zone table in the lower 8 bits).  afs inodes come from
a vmalloc() since afs gets all the inodes in one go.  vmalloc()'d memory
apparently doesnt get mapped to any particular zone.  so when an afs
inode uses wake_up_bit() they index off the end of the zone_page table.
"


(cherry picked from commit 543d4464d8afe11e74b239abb5da20b0269259b3)
2005-01-31 04:09:57 +00:00
Derrick Brashear
726b9f6de4 STABLE14-memcache-no-volitems-20050113
Don't try to open VolumeItems when using memcache


(cherry picked from commit 1307b891888c61debe2eadd47ddfe8717fc75ddd)
2005-01-31 04:09:51 +00:00
Jeffrey Altman
5a8303f799 STABLE14-windows-fs-wscell-20050112
when freelance mode is in use, "fs wscell" will now return
"Freelance.Local.Root"


(cherry picked from commit b11e76ce63b6c23265d17d5597342e4aa296f6c0)
2005-01-31 04:09:42 +00:00
Jeffrey Altman
f7f484bcca STABLE14-windows-pioctl-20050112
Fix a bug introduced in 1.3.75 within Tranceive().  If the file handle
is invalid, be sure to return an error.


(cherry picked from commit 5a3eddc8ba75832c55e322c7189ff5f20df834fe)
2005-01-31 04:09:37 +00:00
Jeffrey Altman
58c23d2810 STABLE14-windows-misc-20050112
New AFS Logo Icon

Fix the assignment of the dataVersion for the freelance scache entries

Fix the calling convention of the AFSD Service Main function to be
WINAPI.


(cherry picked from commit 4c861ab65683add205d062790036b27123d0fe6b)
2005-01-31 04:09:28 +00:00
Derrick Brashear
c13731d8fb STABLE14-rx-avoid-xmit-overflow-panic-20050107
instead of losing, just send the packets and then make another pass to collect more


(cherry picked from commit 1a8519de16a2dad989300da94d597fac57c20c0f)
2005-01-31 04:09:23 +00:00