Commit Graph

5210 Commits

Author SHA1 Message Date
Jeffrey Altman
eb1ff11bf1 windows-ioctl-prefix-data-20080726
LICENSE MIT

The ioctl-prefix-data can be accessed either via a char_t or a wchar_t.
Copy the data buffer with memcpy() and not strcpy() because we need to
copy the entire string if it happens to be Unicode.
2008-07-27 03:43:14 +00:00
Jeffrey Altman
61d1578324 windows-build-20080725
LICENSE MIT

update README-NT and src/ntbuild.bat build instructions.
2008-07-25 21:25:55 +00:00
Jeffrey Altman
ba846eb829 windows-nsis-vc-runtime-install-20080725
LICENSE MIT

The NSIS installer was building a msi for the vc runtime that included
the Debug merge modules when the Retail merge modules should have been
used instead.
2008-07-25 20:43:36 +00:00
Jeffrey Altman
c10b26ca35 windows-buf-setdirty-20080724
LICENSE MIT

Everytime the CM_BUF_DIRTY flag is set on a cm_buf_t, the userp field
on the cm_buf_t must also be set.  Add a cm_user_t parameter to buf_SetDirty()
so that each function that calls it doesn't have to manually set the
last write user.  This improves code readability and the abstraction layering.
2008-07-24 20:32:58 +00:00
Jeffrey Altman
0ca9a136a7 windows-cm-makedir-20080724
LICENSE MIT

Extend the cm_MakeDir() function signature to permit the (optional)
return of the cm_scache_t object that was created by the operation
in the same way that cm_Create() does.

Make the return of the cm_scache_t by cm_Create() optional although
it is never used that way.

In both cm_Create() and cm_MakeDir() avoid releasing the cm_scache_t
object until we are actually finished with it.
2008-07-24 18:54:53 +00:00
Jeffrey Altman
70bfb2c59b windows-cm-req-smb-20080723
LICENSE MIT

Add smb_InitReq() calls cm_InitReq() and then sets the new
CM_REQ_SOURCE_SMB flag.  When this flag is set, the source of the
request is known to be the SMB interface.  This flag will not be
set on requests generated by the various background daemons.
2008-07-23 22:40:34 +00:00
Jeffrey Altman
8f75470349 windows-cm-rename-debugging-20080723
LICENSE MIT

Add some trace log statements to cm_Rename() that can be used for
debugging.
2008-07-23 22:24:51 +00:00
Jeffrey Altman
a9c00f2638 windows-btree-enum-20080723
LICENSE MIT

Fix next enum to return an invalid param error when beyond the end
of the list.
2008-07-23 22:19:19 +00:00
Jeffrey Altman
2ed0ee573c windows-volume-deadlock-20080722
LICENSE MIT

When updating the volume location information, if a new server must
be allocated and the server is down, then it is possible for a deadlock
to occur on the cm_volume_t rw lock.  Prevent that from happening.
2008-07-23 05:55:36 +00:00
Jeffrey Altman
5db162c8dc windows-build-system-20080722
LICENSE MIT

Move the man-pages build out of the 'install' step.
2008-07-22 16:01:22 +00:00
Jeffrey Altman
4437971563 windows-volume-vlgetaddrs-deadlock-20080721
LICENSE MIT

A missing tilde makes a huge difference.
2008-07-22 07:42:20 +00:00
Jeffrey Altman
b7398a8a50 windows-more-rxconnp-20080721
LICENSE MIT

convert additional 'connp' instances to 'rxconnp'

in cm_volume.c, make sure that we hold a reference to the rxconnp
whenever we use it to perform an RPC.
2008-07-21 21:55:06 +00:00
Jeffrey Altman
0172a6aa26 windows-cm_conn-20080721
LICENSE MIT

callp -> rxconnp
2008-07-21 19:34:05 +00:00
Jeffrey Altman
a92cd4ec76 windows-callp-to-rxcallp-20080721
LICENSE MIT

There has been long time confusion in the windows cache manager because
there are cm_conn object ptrs call connp and rx_connection object ptrs
call connp and rx_call object ptrs called callp and rx_connection object
ptrs called callp.

From now on, rxconnp is a ptr to an rx_connection object;
rxcallp is a ptr to an rx_call object; and connp is a ptr to an
cm_conn object.
2008-07-21 17:18:41 +00:00
Jeffrey Altman
ab1ddbe803 windows-smb-ioctl-setacl-20080721
LICENSE MIT

setacl does not support the options structure.  just call parse ioctl path.
bug introduced during ioctl refactoring.
2008-07-21 10:19:26 +00:00
Jeffrey Altman
ff0f4a5965 windows-volume-vlgetaddrs-deadlock-20080719
LICENSE MIT

During cm_InitVolume() clear CM_VOLUMEFLAG_UPDATING_VL if we are reusing
the cache data just in case.

In cm_UpdateVolumeLocation() add trace logging to the sleeping, waking,
and awaking states; move the destruction of the old server list into
the region protected by the CM_VOLUMEFLAG_UPDATING_VL flag.
2008-07-19 15:47:40 +00:00
Russ Allbery
af5e519e8e always-wrap-vos-ctime-20080718
LICENSE MIT

When calling ctime on an afs_int32, always use a wrapper that assigns the
variable to a time_t before passing it in rather than conditionally doing
so on hosts with a large time_t.  This eliminates a configure test,
removes a bunch of warnings in vos.c on platforms with 32-bit time_t, and
will make no difference in generated code with any decent compiler.
2008-07-19 07:41:06 +00:00
Russ Allbery
9682d4c107 kill-ubik-pthread-env-20080718
LICENSE BSD

Everywhere AFS_PTHREAD_ENV was defined, UBIK_PTHREAD_ENV was defined as
well, so don't make them separate.  Building pthreaded Ubik is controlled
by deciding whether to build the t* versions of various directories, not
by the preprocessor directives.  AFS_PTHREAD_ENV is only defined when
building in those directories.

This change eliminates UBIK_PTHREAD_ENV and uses AFS_PTHREAD_ENV to mean
the same thing.

As a side effect, fixes compiles on arm with --enable-pthreaded-ubik, since
arm never defined UBIK_PTHREAD_ENV.
2008-07-19 07:11:05 +00:00
Jeffrey Altman
c797e08443 windows-volume-vlgetaddrs-deadlock-20080718
LICENSE MIT

If during volume location updating, the VL_GetAddrsU call fails for any
of the identified servers, return an error but do so without leaking
memory or deadlocking other threads that might be waiting.
2008-07-19 06:58:02 +00:00
Russ Allbery
d3900e4f35 suppress-cellconfig-warnings-20080718
LICENSE BSD

Add a forward declaration for struct ktc_encryptionKey to suppress warnings
from cellconfig.h about declaring a struct in a prototype.
2008-07-19 06:44:49 +00:00
Russ Allbery
227f7e8eda more-no-unconditional-pthreaded-ubik-20080718
LICENSE BSD

More directories should be conditional on pthreaded ubik.
2008-07-19 06:42:23 +00:00
Russ Allbery
d811361ce9 no-unconditional-pthreaded-ubik-20080718
LICENSE BSD

Don't compile pthreaded Ubik by default and instead actually require the
--enable-pthreaded-ubik flag.
2008-07-19 04:27:33 +00:00
Simon Wilkinson
5bbdc3fb69 discon-prototype-correction-20080718
LICENSE IPL10

correct prototype for disconnected afs
2008-07-18 15:54:22 +00:00
Russ Allbery
8009b045aa man-page-fileserver-long-line-20080717
LICENSE BSD

Fix long line in the SYNOPSIS for the fileserver man page.
2008-07-18 07:14:12 +00:00
Russ Allbery
a8e8287b75 demand-attach-vos-install-location-20080717
LICENSE IPL10

In the tvolser case, install vos in ${afssrvsbindir}/vos, not
${afssrvlibexecdir}/vos.
2008-07-18 01:21:44 +00:00
Asanka Herath
24ac19c606 windows-nls-zero-length-input-20080716
LICENSE MIT

If the input to the string conversion files is zero length
return nul string instead of NULL.

Pass in -1 instead of computing the strlen.
2008-07-16 16:22:31 +00:00
Jeffrey Altman
6a749b71f7 windows-set-rx-dead-time-20080715
LICENSE MIT

No longer set the rx_SetConnDeadTime and rx_SetConnHardDeadTime to
the remaining request SMB RDR timeout within cm_ConnByMServers().
There are not per-call timeouts so simultaneous requests on the same
connection will race with each other either resulting in premature
timeouts or significantly extended timeouts.
2008-07-16 05:43:06 +00:00
Derrick Brashear
4d7cfa1293 softsig-structure-handling-20080716
LICENSE IPL10

this is sort of a dumb ifdef. harmless, but fix it to be what it's supposed to
2008-07-16 05:25:09 +00:00
Derrick Brashear
b4ce530d36 volser-reclone-bring-online-before-giveback-20080716
LICENSE IPL10
FIXES 107258

when giving back a volume after reclone, make it inService to avoid a race
between callers and the SetFlags RPC
2008-07-16 05:15:44 +00:00
Asanka Herath
447915ce6a windows-nsis-vs2008-runtime-20080715
LICENSE MIT

Add support for VS2008

Use MSI runtime installation package instead of EXE package

Cleanup runtime from the correct directory
2008-07-16 00:58:28 +00:00
Jeffrey Altman
66754898d9 windows-wix-html-cmdref-20080715
LICENSE MIT

Add new files to the installer.
2008-07-15 22:17:37 +00:00
Tom Keiser
5c762d3b76 dafs-avoid-assert-while-moving-volumes-20080714
LICENSE IPL10

The volume state is perfectly consistent. FSYNC_NEEDVOLUME (and the
other state in the pending_vol_op object) is perfectly normal -- it
simply means the volser has exclusive access to the volume for the
purposes of cloning. The bug is that during the DAFS development, I
changed the semantics of the VGetVolume interface without updating the
control logic in afsfileprocs accordingly:

In 1_4_x:
vp->specialstatus != 0 results in returning vp with nUsers incremented
and *ec = vp->sepcialstatus

In DAFS:
V_AttachState(vp) == VOL_STATE_UNATTACHED results in returning a NULL
vp. Since (vp->specialstatus != 0), *ec = vp->specialstatus.

The net result is we need to modify the VBUSY logic in CheckVnode().
2008-07-14 14:37:58 +00:00
Jeffrey Altman
03fb36bd53 windows-smb-misc-two-20080714
LICENSE MIT

Fix the assignment of SMB_ATTR_DIRECTORY.  Apply it to the correct field
name.
2008-07-14 14:36:44 +00:00
Jeffrey Altman
077c788275 windows-smb-misc-20080714
LICENSE MIT

Fix declaration of smb_ParseStringBuf to be consistent with
the prototype.

If the fileType of a cm_scache_t is unknown and if the vnode is odd,
then set the SMB_ATTR_DIRECTORY flag when reporting the DOS Extended
Attributes.

Fix the log message in smb_FindCMUserByName() to indicate "found"
instead of "not found".
2008-07-14 14:10:19 +00:00
Jeffrey Altman
33429756c1 windows-btree-enum-bulk-stat-20080714
LICENSE MIT

Refactor cm_TryBulkStat() to permit BulkStat RPCs to be executed
for lists of entries obtained either from the cm_dir structures
or a btree enumeration.   Add cm_BPlusDirEnumBulkStat() which
takes an enumeration object and performs a bulk status rpc on
every entry in the enumeration without advancing the enumeration
state.
2008-07-14 13:59:48 +00:00
Russ Allbery
faeb953142 readme-devel-doxygen-20080713
LICENSE IPL10

Document the preferred Doxygen comment style.
2008-07-14 06:53:14 +00:00
Russ Allbery
f49395a30a readme-fix-demand-attach-spelling-20080713
LICENSE IPL10

Fix the punctuation of the --enable-demand-attach-fs option.
2008-07-14 06:46:27 +00:00
Russ Allbery
1ed9e36ffc readme-improvements-20080713
LICENSE IPL10

Significant improvements to README, including:

- Add documentation of (nearly) all of the configure options.
- Update the platform list to reflect current reality.
- Update the HP-UX header download instructions for the current web site.
- Fiddle with formatting and wording in a few places.
2008-07-14 06:35:04 +00:00
Russ Allbery
db9f59e9be threaded-ubik-cvsignore-20080713
LICENSE BSD

Add .cvsignore patterns for threaded ubik builds.
2008-07-14 05:12:46 +00:00
Russ Allbery
2b7d9ab5d7 autoconf-help-text-20080713
LICENSE IPL10

Use AS_HELP_STRING for every AC_ARG_WITH invokation and add proper quoting
to all of them.  Based heavily on a patch by Simon Wilkinson, but with
less indentation and more quoting.
2008-07-14 05:05:46 +00:00
Russ Allbery
6a322e4eb7 man-page-html-index-underscores-20080713
LICENSE BSD

Remove underscores from the anchor in the index for all section 5 manual
pages.
2008-07-14 03:27:00 +00:00
Russ Allbery
2a92f43987 man-page-html-generation-hack-20080713
LICENSE BSD

Pod::Simple::Search ignores every POD file that doesn't "look right," which
means it skips files containing a period (like krb.conf.pod) unless you set
a search option.  Pod::Simple::HTMLBatch has no way to set search options.

Apply a truly horrible hack to get around this.
2008-07-14 02:45:14 +00:00
Jason Edgecombe
298fb5ce52 docs-ticket-104110-20080713
LICENSE BSD
FIXES 104110

add vos clone and vos shadow to overall list

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================
LICENSE BSD
FIXES 104110

add krb.conf

update CellServDB to discuss AFSDB DNS records
2008-07-14 00:51:35 +00:00
Jason Edgecombe
c766e74fd6 docs-max-part-size-20080713
LICENSE BSD
FIXES 86677

remove discussion of max partition size now that 1.5 has a limit of 2^64 KB.

add discussion of techinical nature of fs minidump on windows.

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================
LICENSE BSD
FIXES 86677

update discussion of max partition size.
2008-07-14 00:33:59 +00:00
Jeffrey Altman
df9f2455fb man-page-fs-read-not-list-20080711
LICENSE MIT

 - fs diskfree
 - fs examine
 - fs listquota
 - fs quota

require read permission not list for the root directory
of the volume and list permission for the preceding path.
2008-07-12 06:54:58 +00:00
Jeffrey Altman
30ba65bc5c windows-cm_req-layer-purity-20080711
LICENSE MIT

Ensure that the cm_req_t object is allocated and initialized at the
SMB layer for all incoming requests.  This is done for two reasons:

1. ensure that request start time is consistent across the lifetime
   of the request

2. permit the request object to be used to carry a flag indicating
   the source of the request.  This will permit different timeout
   algorithms to be used for SMB vs RDR in the future.
2008-07-11 23:25:21 +00:00
Todd DeSantis
5baf817a31 butc-xbsa-update-20080711
LICENSE IPL10

update xbsa support for current tsm
2008-07-11 10:49:33 +00:00
Jeffrey Altman
4f5b808414 windows-install-loopback-ddk-20080710
LICENSE MIT

Add support for dynamically determining which ddk include
path should be used.  The NTDDKDIR variable used to be set
to the specific directory in which netcfgx.h was located.
Now it is set to the top-level of the DDK install tree.
The specific directory that contains netcfgx.h varies based
upon whether the DDK is 3790.1830 or 6000.  Test for file
existence and specify the one that works.
2008-07-10 19:17:44 +00:00
Tom Keiser
f52f152236 dafs-update-exclusive-states-20080710
LICENSE IPL10

VOL_STATE_SALVSYNC_REQ is a mutally exclusive state. don't allow other things
to attempt to trigger that state when an exclusive state is already present
2008-07-10 19:14:40 +00:00
Derrick Brashear
078f966e62 solaris-udp-modname-20080707
LICENSE IPL10

older solaris 10 lacked this
2008-07-07 18:14:58 +00:00