Commit Graph

5018 Commits

Author SHA1 Message Date
Russ Allbery
62ffbc2a46 remove-administration-reference-20080627
LICENSE IPL10

Purge the old AFS Administration Reference documentation.  This has now
been completely replaced by the manual pages.
2008-06-28 07:32:45 +00:00
Russ Allbery
3b273dd552 install-and-document-klog-krb5-20080627
LICENSE IPL10

Install the Kerberos v5 klog as klog.krb5 and install a man page for it.
2008-06-28 06:19:22 +00:00
Jeffrey Altman
49db6afe0a windows-smb-dead-vc-gc-20080627
LICENSE MIT

When an SMB virtual circuit is prematurely closed due to an error
condition by one thread it is possible that there are still several
other threads still using the VC which will determine that the VC
is dead shortly.  As a result we maintain a dead vc list to ensure
that dead vcs are not destroyed while still in use.

With the addition of locking though this causes a problem because the
locks allocated to the virtual circuit are not freed until the vc is
destroyed.

This patch reworks the cleanup routine to make the freeing of resources
the responsibility of the release routine when the refcount hits 0
and the VC is marked dead.
2008-06-27 20:42:57 +00:00
Jason Edgecombe
e381e1d078 man-page-afs-fixes-20080626
FIXES 104745
LICENSE BSD

Fix several issues with the afs(1) man page.  Based on the patch by Jason,
but I also documented /vicepiv as the maximum, and /vicepiu as the
maximum recommended, partition.
2008-06-27 04:49:45 +00:00
Jason Edgecombe
d9dc7e28fe man-page-vldb_convert-20080626
FIXES 104192
LICENSE BSD

New man page for vldb_convert.
2008-06-27 04:29:12 +00:00
Jason Edgecombe
fbe10c8086 man-page-vos-clone-20080626
FIXES 104110
LICENSE BSD

Add man page for vos clone.
2008-06-27 04:19:07 +00:00
Asanka Herath
0e04d01891 windows-wix-install-idn-redist-20080626
LICENSE MIT

Install the Microsoft IDN Redistributables which are required for
Unicode Normalization on XP and 2003.
2008-06-27 03:04:12 +00:00
Asanka Herath
149fd85b20 windows-nsis-install-idn-redist-20080626
LICENSE MIT

Install the Microsoft IDN Redistributables which are required for
Unicode Normalization on XP and 2003.
2008-06-27 02:58:36 +00:00
Jeffrey Altman
c051bf5476 windows-vlserver-makefile-20080626
LICENSE MIT

more consistency changes to get the make rules for headers right
2008-06-26 18:04:04 +00:00
Jeffrey Altman
bc2836058a windows-nls-includes-20080626
LICENSE MIT

Add include for cm_nls.h
2008-06-26 17:46:35 +00:00
Asanka Herath
3b41209be7 windows-unicode-20080626
LICENSE MIT

This patch is the second stage of the Unicode conversion.  In this stage
the cache manager has been converted from using 8-bit UTF8 C strings to
16-bit UTF16 C strings in the SMB, the DNLC, the B+ tree, and other
directly related modules.  The cm_cell, cm_volume, cm_scache, cm_buf,
cm_dcache, and cm_dir modules are left 8-bit because their data is all
8-bit UTF8 since they work only on file server strings.

The SMB layer accepts 16-bit UTF16, the B+ tree and DNLC use normalized
strings as the key, and everything uses UTF8.  Efforts have been made
to minimize the number of transitions from UTF8 to UTF16 and back.

For the most part strings are tagged with clientchar_t and normchar_t
and fschar_t types in order to distinguish between the various types of
strings that are in use.

other changes include addition prototyping.
2008-06-26 06:43:49 +00:00
Asanka Herath
ef58ff2ea6 windows-osilog-safestring-unicode-20080624
LICENSE MIT

convert to using microsoft safe string functions.

add Unicode version of osi_LogSaveStringW.  This is safe to use export
even in none Unicode builds.

Some reformatting.
2008-06-24 14:41:13 +00:00
Matt Benjamin
9d1863dae7 tubik-build-fix-20080624
LICENSE IPL10

add missing build dependencies
2008-06-24 13:58:10 +00:00
Matt Benjamin
98b87a2ac1 tubik-build-fix-20080623
LICENSE IPL10

add missing build dependencies
2008-06-23 18:50:06 +00:00
Derrick Brashear
e5f9eba386 doc-nfs-translator-instructions-20080622
LICENSE IPL10
FIXES 103459

clarify instructions for the translator
2008-06-23 04:40:56 +00:00
Marc Dionne
583b267eb0 linux-2626-updates-20080612
LICENSE IPL10
FIXES 102821

fixes which went into 1.4.x already
2008-06-12 21:08:18 +00:00
Marc Dionne
bb617c649c cvsignore-updates-20080612
LICENSE IPL10
FIXES 102819

add missing things to cvsignore files
2008-06-12 21:00:12 +00:00
Marc Dionne
a33cd20d1b tubik-no-pinstall-on-head-20080612
LICENSE IPL10
FIXES 102819

no more pinstall on the head
2008-06-12 20:58:23 +00:00
Tom Keiser
a7b33b55bb dafs-updates-20080612
LICENSE IPL10

pending changes from tom to avoid a deadlock issue
2008-06-12 20:12:06 +00:00
Derrick Brashear
e2ce8710ef ptserver-simple-corrupt-protection-20080612
LICENSE IPL10

protects against direct loops, which we have seen in the wild, but not more (yet)
2008-06-12 19:36:15 +00:00
Derrick Brashear
bc47951c9e volume-limit-higher-20080612
LICENSE IPL10

allow more volume lookups to be cached
2008-06-12 18:24:25 +00:00
Jeffrey Altman
15ff831e4d windows-buf-clean-access-denied-20080612
LICENSE MIT

If the attempt to write the buffer returns access denied, store that
in the cm_buf_t object so that the error can be propagated.
2008-06-12 17:04:38 +00:00
Jeffrey Altman
d8c3a59818 windows-pioctl-refactoring-20080612
LICENSE MIT

Refactor the pioctl handling to provide a layer of abstraction
between the smb server and the actual pioctl data processing.
This will permit a redirector pioctl layer to be implemented
on top of the core cm_ioctl interfaces.

The general approach is that there is a new cm_ioctl_t object
which is embedded withing a higher level abstraction object.
This object maintains all of the pioctl state processing and
removes any notion of file descriptors or other communication
channel parameters.

The cm_ioctl module maintains just about all of the core
functional processing except for SetToken which needs further
abstraction.  Path processing is now performed at the higher
layer and cm_ioctl functions accept cm_user_t, cm_scache_t,
and cm_req_t objects from the higher layer.

The smb_ioctl module performs all of the path translation
using smb server knowledge and passes the necessary objects
to the cm_ioctl module for processing.
2008-06-12 15:54:23 +00:00
Jeffrey Altman
52490d7968 windows-scache-deletion-and-lock-verification-20080612
LICENSE MIT

Add lock assertions to various functions.

Obtain a missing lock around a call to cm_RemoveSCacheFromHashTable().

Correct an abstraction layer violation.  cm_scache_t objects should
be marked deleted in cm_Unlink() and cm_RemoveDir() and not in
smb_CloseFID().  Cleanup of deleted cm_scache_t objects should be
performed in cm_ReleaseSCache() when the reference count hits zero.

Prototype cm_AdjustScacheLRU() and re-implement it using osi_QAddH().
2008-06-12 15:20:46 +00:00
Jeffrey Altman
3306c0887b windows-vnodeops-wrong-logfile-20080612
LICENSE MIT

Use afsd_logp instead of smb_logp in osi_LogX() calls.
Do not violate layer abstraction.
2008-06-12 15:00:08 +00:00
Jeffrey Altman
ef48d6343d windows-scache-hash-tables-20080612
LICENSE MIT

Prevent corruption of the cm_data.scacheHashTablep lists when removing
and then re-adding entries to the hash table.  The cm_scache_t nextp
fields were not being reset to NULL which permitted loops to be created.
2008-06-12 14:33:36 +00:00
Marc Dionne
bed3e31ca4 linux-2626-support-20080608
LICENSE IPL10
FIXES 101091

add 2.6.26 support
2008-06-09 04:38:58 +00:00
Rainer Toebbicke
0da0a9d4d2 limit-mountpoint-symlink-abuse-20080608
LICENSE IPL10
FIXES 100836

official mountpoints end in a .; treat others as symlinks to avoid creating
files which can't be removed
2008-06-09 04:30:11 +00:00
Jeffrey Altman
ad05cdf649 windows-check-server-memleak-20080606
LICENSE MIT

Found a memleak in the cm_CheckServers routine.  Plug it.
2008-06-06 14:36:16 +00:00
Jeffrey Altman
39d2ac1438 windows-bpluss-memleak-20080605
LICENSE MIT

when deleting entries from a directory for items with non-8.3 names
memory for the longname field would be leaked.  don't do that.
2008-06-06 00:22:03 +00:00
Russ Allbery
1473a8747a man-page-readme-fileserver-20080605
LICENSE BSD

Remove the note about missing file server options.  We think we got them
all.
2008-06-05 21:19:10 +00:00
Jason Edgecombe
1fdfac7065 man-page-pts-updates-20080605
LICENSE BSD

Add documentation of foreign realm user registration and cross-realm PTS
groups.  Add documentation of missing ptserver flags.  Add some additional
to-do entries for the man pages.
2008-06-05 20:31:13 +00:00
Jeffrey Altman
b5d888ed40 windows-btree-short-name-20080604
LICENSE MIT

When constructing the shortname keyed entry in the tree, make sure that
the original long name is preserved.
2008-06-04 09:02:21 +00:00
Derrick Brashear
79b7b4eade linux24-hlist-unhashed-configure-test-fix-20080602
LICENSE IPL10

make the hlist_unhashed test actually work
2008-06-03 03:53:54 +00:00
Jeffrey Altman
2b937b867f windows-vlserver-remove-extraneous-make-targets-20080529
LICENSE MIT

remove extraneous make targets
2008-05-29 18:19:21 +00:00
Jeffrey Altman
749ae65481 rx-init-more-packets-20080529
LICENSE MIT

It is frequently the case that rx_getAllAddr() is called before
rx_Init() or rx_InitHost().  rx_getAllAddr() obtains the list of
interfaces by using rx_GetIFInfo() which in turn computes and
allocates the number of addition rx packets.  Unfortunately,
rxi_MorePackets() relies on the existence of an initialized mutex
and the mutex is not initialized (on Windows) until the rx_InitHost()
call.  Therefore, we must delay the rxi_MorePackets() call until
after rx_InitHost() if rx_getAllAddr() is called previously.

Failure to do so results in a panic.
2008-05-29 14:31:41 +00:00
Jeffrey Altman
11350e8024 strftime-portability-20080528
LICENSE MIT

%T is not portable to Windows.  Replace it with the equivalent %H:%M:%S
format string.
2008-05-29 05:02:36 +00:00
Jeffrey Altman
c5bce0f87d rx-out-of-memory-20080528
LICENSE MIT

in rxi_MorePackets() if osi_Alloc() fails to return the requested memory
call osi_Assert() instead of permitting subsequent null pointer dereferences
to corrupt the stack.
2008-05-29 04:35:19 +00:00
Jeffrey Altman
5ad08dc166 windows-vlserver-headers-20080528
LICENSE MIT

make sure the headers are copied to the correct location by providing
explicit rules
2008-05-28 19:37:09 +00:00
Jeffrey Altman
dc835c2d53 windows-buf-redirector-20080528
LICENSE MIT

Define new flag CM_BUF_REDIR for use with the redirector.
When set, the flag indicates that the buffer is being held by the redirector
and it should be left untouched by the cache manager.
2008-05-28 18:40:06 +00:00
Jeffrey Altman
5930abcbe1 windows-cpluscplus-compat-20080528
LICENSE MIT

Do not use reserved keywords 'new' and 'delete'.  Permit headers to
be included by files compiled in cplusplus mode.
2008-05-28 18:33:17 +00:00
Jeffrey Altman
54c0f2f837 windows-unused-var-20080528
LICENSE MIT

remove unused var cm_CachePathLen
2008-05-28 18:27:32 +00:00
Jeffrey Altman
7b8c8a48a3 windows-btree-20080528
LICENSE MIT

add cm_btree.h to afsd.h include list
2008-05-28 18:21:33 +00:00
Asanka Herath
c5911d25f8 windows-unicode-20080527
LICENSE MIT

An incremental commit.  This patch adds support for normalization of Unicode
but we have concluded that the normalization rules are incorrect.  Normalized
strings should not be written to the file server or returned to the application.
2008-05-27 21:33:14 +00:00
Jeffrey Hutzelman
b1549f29a9 rx-client-keep-keepalives-20080523
LICENSE IPL10
FIXES 20727

not our bug, but, previous code refactoring broke rx. put back keepalives in cli
ent rx connections while they are turned around.
2008-05-23 15:55:29 +00:00
Simon Wilkinson
18a36a3f62 disconnected-20080523
LICENSE IPL10

add readonly disconnected support
2008-05-23 15:57:18 +00:00
Derrick Brashear
b26f133a56 darwin-rc-common-does-set-minus-u-20080522
LICENSE IPL10

we need to cope with an unset variable
2008-05-22 22:03:16 +00:00
Jeffrey Hutzelman
c34822d610 rx-client-keep-keepalives-20080522
LICENSE IPL10
FIXES 20727

not our bug, but, previous code refactoring broke rx. put back keepalives in client rx connections while they are turned around.
2008-05-22 19:28:37 +00:00
Derrick Brashear
8450a1eb1d dafs-volumestats-conflict-20080521
LICENSE IPL10

avoid symbol conflict in volume.h
2008-05-22 04:51:27 +00:00
Derrick Brashear
dcafea769a vos-sync-flag-voltype-properly-20080521
LICENSE IPL10

when adding a backup volume to a vldb entry, flag it as such.
2008-05-21 21:15:41 +00:00