Commit Graph

5446 Commits

Author SHA1 Message Date
Steven Jenkins
e5a6c3f62d undo-rename-residency-from-mrafs-to-osd-20090119
LICENSE IPL10
FIXES 124130

restore the mr-afs names until such time as the pioctl registrations
are addressed.
2009-01-20 03:29:01 +00:00
Jason Edgecombe
8c18c62dff man-page-pts-membership-fixes-20090119
FIXES 124157
LICENSE BSD

More wording and typo fixes for the pts membership man page.
2009-01-19 23:02:36 +00:00
Derrick Brashear
5e1859a88e linux-init-script-uses-bash-20090119
LICENSE IPL10
FIXES 124056

note the script uses bash
2009-01-19 20:53:42 +00:00
Simon Wilkinson
dc0b96f5b7 disconnected-extend-truncation-20090119
LICENSE IPL10
FIXES 124094

implement extending truncation so disconnected works
2009-01-19 19:42:32 +00:00
Simon Wilkinson
5774497117 abstract-reset-vcache-20090119
LICENSE IPL10
FIXES 124147

abstract vcache resetting code so disconnected can reuse it
2009-01-19 19:39:12 +00:00
Simon Wilkinson
9ef65a789f afs-q-improvements-20090119
LICENSE IPL10
FIXES 124134

simplify afs_q macros and allow further reuse in disconnected
2009-01-19 19:27:00 +00:00
Simon Wilkinson
e1cc987ea5 disconnected-flush-before-shadowing-20090119
LICENSE IPL10
FIXES 124149

make
touch a
fs discon offline
rm -f a
fs discon online
work
2009-01-19 18:47:52 +00:00
Steven Jenkins
92c7925b12 rename-residency-from-mrafs-to-osd-20090119
LICENSE IPL10
FIXES 124130

rename mrafs commands into their equivalent osd versions; structures etc are the same.
2009-01-19 18:09:06 +00:00
Simon Wilkinson
9fa51694c6 linux-disconnected-avoid-ls-hang-20090119
LICENSE IPL10
FIXES 124152

avoid allowing a non-CStatd vcache to make its way into a readdir which causes an infinite loop
2009-01-19 17:29:08 +00:00
Derrick Brashear
df71f42b63 krb5-klog-link-rule-20090118
LICENSE IPL10

this was just wrong
2009-01-19 03:25:10 +00:00
Derrick Brashear
dbc73f43ee volser-setflags-clear-callptr-20090118
LICENSE IPL10

make things calling SetFlags not error
2009-01-19 03:19:01 +00:00
Russ Allbery
d781450cf3 man-page-pts-membership-privilege-20090118
FIXES 124151
LICENSE BSD

Add system:ptsviewers to the privilege documentation of pts membership and
try to clarify the privilege required by being less verbose and hopefully
more direct.
2009-01-19 03:09:52 +00:00
Marc Dionne
24a5d12bae linux-2629-20090115
LICENSE IPL10
FIXES 124115

add 2.6.29 support
2009-01-15 13:26:55 +00:00
Chaskiel M Grundman
86225b6014 osi-probe-check-result-cope-with-enoent-20090115
LICENSE IPL10

in order for probing to work right
2009-01-15 13:12:58 +00:00
Jeffrey Altman
3394644531 rx-afs-kmutex-kcondvar-20090113
LICENSE BSD

The rx_pthread.h defines afs_kcondvar_t and afs_kmutex_t but
their use throughout the rx library is inconsistent.  Sometimes
they are used, other times pthread_cond_t and pthread_mutex_t.

This commit ensures that afs_kmutex_t and afs_kcondvar_t are
used consistently.
2009-01-14 06:34:08 +00:00
Simon Wilkinson
e6d60f58e2 linux-truncate-cleanup-20090113
LICENSE IPL10

fix the patch to actually be applicable
2009-01-13 19:37:03 +00:00
Jeffrey Altman
f1a13e1562 rx-make-rxdebug-optional-20090113
LICENSE BSD

Permit the rx library to be built without the RXDEBUG preprocessor
definition.  When RXDEBUG is not defined all of the debugging functions
either become stubs or log a message indicating that the library was
built without RXDEBUG so that there will be no surprises.  There
are no changes to the export list.  By default RXDEBUG is defined.

Eventually the definition of RXDEBUG can become a configuration option
to the build system.
2009-01-13 16:19:11 +00:00
Jeffrey Altman
510b2042b0 rx-finer-grained-locking-20090112
LICENSE MIT

fix typo in rx-finer-granded-locking-20090112
2009-01-12 20:22:24 +00:00
Matt Benjamin
ba9556ff2b freebsd-cleanup-20090112
LICENSE IPL10
FIXES 124107

minor freebsd cleanup
2009-01-12 14:33:09 +00:00
Marc Dionne
45e8089456 linux-i-size-20090112
LICENSE IPL10
FIXES 124106

use i_size_read macro correctly
2009-01-12 14:18:58 +00:00
Andrew Deason
47ac8ba702 libuafs-set-fileoffsetbits-20090112
LICENSE IPL10
FIXES 124093

make libuafs work with things which expect to be able to use native file
sizes etc
2009-01-12 14:11:36 +00:00
Marc Dionne
434ad30743 linux24-no-backing-dev-20090112
LICENSE IPL10
FIXES 124100

backing_dev_info isn't in 2.4
2009-01-12 13:28:42 +00:00
Rainer Toebbicke
d158ddb25c fetch64-fstrace-typo-20090112
LICENSE IPL10
FIXES 124113

move l to correct side of % for type printing
2009-01-12 13:24:13 +00:00
Jeffrey Altman
30cfed8e25 rx-statistics-active-flag-20090110
LICENSE MIT

Permit rx statistics gathering to be disabled by setting the
new rx_stats_active variable to 0.  This avoids grabbing the
rx_stats_mutex throughout the execution of the requests and
permits greater concurrency thoughout the library.
2009-01-11 05:53:36 +00:00
Jeffrey Altman
887a6eb59b rx-finer-grained-locking-20090110
LICENSE MIT

not everything should be under the rx_stats_mutex.  doing so
results in too much lock contention.  add new mutexes:
rx_quota_mutex, rx_waiting_mutex, rx_pthread_mutex, and rx_packets_mutex.
Each new mutex protects an associated group of variables.
2009-01-11 05:27:01 +00:00
Jeffrey Altman
5b0e23567e rx-user-socket-buffer-sizes-20090110
LICENSE MIT

if the socket buffer size specified by the configuration is too large
to be applied, do not drop down immediately to 32766 bytes.  Instead
try increasingly smaller values trying to find the largest one that
works.  use the same value for the send buf size as well.
2009-01-11 04:24:37 +00:00
Jeffrey Altman
3162fdd592 rx-rwlocks-no-more-20090110
LICENSE MIT

remove the use of rwlock and restore the use of mutexes.
the rwlocks are actually slower in performance testing.
2009-01-11 04:00:07 +00:00
Simon Wilkinson
f49bf1d919 linux-truncate-race-20090109
LICENSE IPL10
FIXES 124094

avoid a race during truncation which trips an issue when fsx is run
2009-01-09 15:09:14 +00:00
Andrew Deason
2d07a62c38 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.
2009-01-09 14:50:48 +00:00
Derrick Brashear
80fc888a92 netrestrict-no-wildcard-20090106
LICENSE IPL10

don't misadvertise network wildcard support
2009-01-06 13:40:04 +00:00
Jeffrey Altman
423ab97eee rx-do-not-race-current-packet-20090105
LICENSE MIT

Throughout rx_rdwr.c functions allocate a register variable 'cp'
which is used to optimize access to call->currentPacket.
Unfortunately, if the call->lock is dropped (for example, CV_WAIT)
the synchronization between the two is lost.  This delta re-syncs
'cp' and call->currentPacket after each location where the call->lock
may be dropped.
2009-01-05 23:12:54 +00:00
Jeffrey Altman
e7edfbbf22 windows-license-smgl2rtf-20090105
LICENSE MIT

Ensure that the input string is nul terminated and then instruct
WideCharToMultiByte to compute the length itself instead of passing
in a value that is very likely to be wrong.
2009-01-05 18:16:44 +00:00
Jeffrey Altman
8c4b06a5b6 windows-afsd-freelance-20090105
LICENSE MIT

Bring a bit more sanity to the Freelance code:

1. Add functions cm_FreelanceFetchMountPointString and
   cm_FreelanceFetchFileType to cm_freelance.c.  These functions
   permit the MountPointString and FileType to be obtained within
   cm_GetSCache without requiring knowledge of data structures
   that should be private to cm_freelance.c

2. Enforce the rule that odd vnode values are directory objects.
   The root directory is 1 and everything else must be a multiple
   of two.

3. Use the unique field as an index into the localMountPoints
   array.

4. Fix cm_GetCallback to process freelance data refreshes on
   all objects in the freelance volume not just the root directory.
   If this is not done, an access to \\afs\foo prior to \\afs\all
   being evaluated will cause an unnecessary attempt to send a
   fetch status request to a file server and produce an alldown
   error.
2009-01-05 16:20:08 +00:00
Jeffrey Altman
02cd4c510b rx-packet-count-debugging-20090104
LICENSE MIT

change C preprocessor symbol required for packet count debugging
to RXDEBUG_PACKET
2009-01-05 00:00:08 +00:00
Jeffrey Altman
bf51eaca47 windows-client-config-manifest-20090104
LICENSE MIT
FIXES 123889

reverse change from 20081226.  removing the auto-generated manifest
removes the manifest binding to the run time library.  The reason
two manifests are specified is that we are merging them.
2009-01-04 19:19:31 +00:00
Jeffrey Altman
29e3bb5838 rx-packet-count-debugging-20081229
LICENSE MIT

Validating the state of the rx library is hard.  This patch makes it
a bit easier to validate from within crash dumps (or on Windows in
"fs memdump" output) whether rx packets and calls are in a sane state.
When the library is compiled with -DDEBUG the rx_call and rx_packet
data structures are extended to include a linked list of all allocated
objects and counters are added to track the number of packets on each
of the transmit, receive, and iovec queues.

This compliments the tracking of packet states via RX_PKTFLAGs.

For Windows, rx_DumpCalls and rx_DumpPackets functions are added
that will dump the state of all allocated calls and packets (in Checked
build) in response to a "fs memdump" command.  These functions are
exported from afsrpc.dll.
2008-12-29 22:36:32 +00:00
Andrew Deason
3d44f93f9a libuafs-updates-20081229
LICENSE IPL10
FIXES 124072

adds ATTR_* constants for UKERNEL code, and makes use
of them. Without this in some cases updating file metadata will also
update unrelated metadata (e.g. truncating a file changes the mode
bits).

adds threadsafe positional i/o calls to
afs_usrops.c: uafs_pwrite and uafs_pread, allowing for threadsafe
libuafs i/o.

changes the types of some fs-related
variables to be more "correct", I think (off_t for offsets, mode_t for
file mode, etc), it fixes a bug where nDaemons is not correctly set from
the uafs_Init parameter, fixes a segfault in uafs_open when O_CREAT is
specified, initializes a couple of static vars, "#if 0"s out code that
copies tokens from kernel-space to user-space (doesn't seem to work from
what I've seen, and the current code crashes on clientless Solaris
machines from being killed by SIGSYS)
2008-12-29 21:26:00 +00:00
Derrick Brashear
c11eb4c333 macos-103-fixes-20081229
LICENSE IPL10

make macos 10.3 work again
2008-12-29 17:29:06 +00:00
Jeffrey Altman
d0cc6eb2f5 rx-rdwr-writeproc-race-20081228
LICENSE MIT
FIXES 123799

prevent rx_WriteProc() from passing a packet to rxi_PrepareSendPacket()
that has been freed and possibly allocated to another call.
2008-12-28 21:04:23 +00:00
Jeffrey Altman
8f3e660270 windows-smb-fs-attr-info-20081227
LICENSE MIT

even though the docs for FILE_FS_ATTRIBUTE_INFORMATION state
that the MaximumComponentNameLength field is in bytes, it turns
out that Windows SMB servers return the value in characters.

Reduce the reported value to 255 to match NTFS.
2008-12-28 04:41:38 +00:00
Jeffrey Altman
f70ba20320 windows-libafsrpc-makefile-20081227
LICENSE MIT

additional defines are to be appended to AFSDEV_AUXCDEFINES,
they are not supposed to replace the prior definition
2008-12-27 19:22:26 +00:00
Jeffrey Altman
a09a1709f6 windows-afsd-fs-attr-info-20081226
LICENSE MIT

Pointed out by jason edgecombe.  the AFS SMB server failed to report
the FILE_UNICODE_ON_DISK characteristic when responding to
TRANS2_QUERY_FS_INFORMATION.
2008-12-27 06:01:09 +00:00
Jeffrey Altman
f18b54bfe6 windows-install-nsis-20081226
LICENSE MIT

permit the location of the NSIS application to be configurable
2008-12-27 02:53:55 +00:00
Matt Benjamin
06468cb939 windows-client-config-manifest-20081226
LICENSE BSD
FIXES 123889

remove extraneous reference to the output manifest file which resulted
in two manifests being generated with conflicting UAC values.
2008-12-27 02:27:34 +00:00
Jeffrey Altman
61aa1b199c windows-afsd-btree-lookups-20081226
LICENSE MIT

when performing a lookup operation it is acceptable for the data version
of the btree to be greater than the data version of the cm_dirOp_t
under which the operation is being performed.  No change to the btree
can take place and the result of the lookup will maintain consistency
without requiring an additional restart of the directory operation.
2008-12-26 23:40:14 +00:00
Jeffrey Altman
4435c4fdcc windows-afsd-dir-prefetch-20081226
LICENSE MIT

when prefetching the directory buffers do not call cm_FlushFile to
discard locally modified buffers.  Instead just set the cm_scache_t
bufDataVersionLow to the current version.  out of date buffers will
therefore be ignored without requiring that locks be dropped and
reacquired and without searching all of the buffers associated with
the directory.
2008-12-26 23:34:26 +00:00
Jeffrey Altman
9784a9f0cc windows-afsd-max-daemons-20081226
LICENSE MIT

permit the number of daemon threads to be increased to 64 instead of
a maximum of 8.
2008-12-26 23:29:22 +00:00
Jeffrey Altman
9e2d9f6fa8 windows-afsd-rename-collision-20081226
LICENSE MIT

Do not permit cm_Rename() to rename an existing object such that it
creates a case-insensitive name collision with another object.
This change in behavior is consistent with the restrictions when
creating new objects.  This change prevents the explorer shell from
getting confused when it creates a new folder.
2008-12-26 23:26:09 +00:00
Jeffrey Altman
238ad07e13 windows-pioctl-drive-subst-20081226
LICENSE MIT

GetDriveType() will return "REMOTE" for drive letters that are mapped
to network devices via the SUBST command.  Recursively check drive letters
for the final substitution before checking to see if the drive letter
is in fact an AFS device.
2008-12-26 21:17:49 +00:00
Matt Benjamin
411a63fb06 windows-afsd-findserverbyip-refcount-20081223
LICENSE BSD
FIXES 124054

reference count the server object returned by cm_FindServerByIP
2008-12-23 20:42:38 +00:00