Commit Graph

114 Commits

Author SHA1 Message Date
Jeffrey Altman
21ca232974 jbeuhler-flexelint-fun-with-printf-20031128
This patch addresses a number of problems with printf-like functions.

Most of them are %x formats applied to pointers (which could be a
problem depending on the architecture I would assume).  There is a
%p format for pointers on many machines but I don't know if it
applies to all supported OpenAFS platforms so I didn't go that route.

There is a buffer overflow fix to ktime.c

There are a couple places where incorrect format characters were used.

One call had two arguments swapped.

Other fixes include the use of PrintInode() and %s formats for
printing inode numbers.  The code was inconsistent in this regard -- sometimes
PrintInode() was used, sometimes it was side-stepped.

There is one place where a local shadowed another variable, so I renamed
the local.

The last segment points out that an fdset need not be anything printable
with an integer format.
--
Joe Buehler

Comments - The fdset comment relates to a WinSock only file on which
the size is a pointer to int.  Modified the source to use a %p instead
of %x as it is supported on Windows.

Added an assert(p != NULL) to src/rx/rx_packet.c
2003-11-29 21:37:50 +00:00
Jeffrey Altman
10750393dc jbuelhler-flexelint-aggregate-initialization-patches-20031129
This patch mainly makes explicit some initializations that were implicit.

There are several places where it looks like the missing initialization
may be a bug, and I have inserted comments to that effect in the
relevant patches.  Someone needs to look at them and supply
whatever is missing (if anything is).

In make_keyperm.c, an array was sized too large.
--
Joe Buehler
2003-11-29 20:23:24 +00:00
Jeffrey Altman
fc7931f4f2 joe-beuhler-patches-20031122
Joe Beuhler's many patches merged into the tree
2003-11-23 04:52:52 +00:00
Derrick Brashear
5e52289abf tvolser-update-20031121
add transaction mutex to handle global list of transactions
2003-11-22 02:57:04 +00:00
Jeffrey Altman
98544e6ab4 patch-from-shadow-to-jaltman-bkbox-20031120
This massive patch contains changes in several significant areas for Windows:

- the ability to specify the mount point to be something other than /afs

- functionality to assist debugging of the NT Services

- support for languages other than English (NTLang.bat)

- revisions to the Build system to support separate trees for src, obj,
  dest and free or checked; allow any MS compiler to be used

- updates to NSIS installer build

- mutex locking added to critical locations

- updates to IS5 directory tree creation

- update to afswsNetscape_config.sh
2003-11-21 07:59:35 +00:00
Derrick Brashear
b1dd6e87cb threaded-volserver-progress-20031114
not ready for primetime. not even close.
2003-11-15 04:59:08 +00:00
Derrick Brashear
79b67c7461 namei-ihandle-leak-20031114
FIXES 2518

namei_dec now logs if you have open ihandles when you unlink a file

====================
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.
====================
FIXES 2518

flush all dir buffers we have cached when rewriting a volume from a restore

avoids holding an ihandle which has an open fdhandle for an unlinked file

====================
FIXES 2518

remove logging code for now. it appears to trigger on some possibly legitimate operations.
2003-11-14 23:36:16 +00:00
Ed Moy
e2e93aa892 macos103-20031024
FIXES 2325

support for macos 10.3 for 1.2.10
2003-10-24 07:25:58 +00:00
Nathan Neulinger
3467c69702 voldump-builds-with-volser-20030827
avoid circular dependancy issue.
2003-08-28 04:16:33 +00:00
Nathan Neulinger
0f97dbabce vol-dump-tool-20030824
FIXES 2008

create direct-from-disk volume dump tool
2003-08-24 22:22:39 +00:00
Derrick Brashear
8f00fdfd5f reindent-again-20030808
FIXES 1774

catch things which crept in. if emacs hadn't started ignoring my code
formatting settings this would suck so much less....
2003-08-08 22:54:30 +00:00
R. Lindsay Todd
08db75c196 large-file-support-20030808
FIXES 1493

large file support in the fileserver, again
2003-08-08 21:40:42 +00:00
Derrick Brashear
872bc94f8c reindent-20030715
FIXES 1774

thanks to nneul@umr.edu for providing a script to do this.
gnu indent 2.2.9 options:
-npro -nbad -bap -nbc -bbo -br -ce -cdw -brs -ncdb -cp1 -ncs -di2 -ndj -nfc1
-nfca -i4 -lp -npcs -nprs -psl -sc -nsob -ts8

====================
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.
====================
FIXES 1774

fix subst mistake
2003-07-16 00:28:24 +00:00
R. Lindsay Todd
4dd74ef182 splint-support-20030701
FIXES 1493

add splint support targets to makefiles
add support files
2003-07-02 02:03:17 +00:00
Hartmut Reuter
f43c2f4412 aix-51-support-20030701
FIXES 1661

make afs work for aix5.1 64 bit.
some code cleanup
2003-07-01 23:02:58 +00:00
Nathan Neulinger
725db719ee vol-extra-logging-on-attach-detach-20030623
FIXES 1387

add extra logging, revert in cases where you don't have log level turned up
2003-06-23 17:04:29 +00:00
Nathan Neulinger
8236e418cc more-warnings-and-prototyping-work-20030619
FIXES 1816

abstracted from work by toddr@rpi.edu
2003-06-20 01:40:15 +00:00
Chaskiel M Grundman
bc9ff0f640 windows-file-versioning-20030619
FIXES 1488

It adds:

- the binary version of the file version/productversion, which the MSI
engine sort of want files in MSI packages to all have. This requires
another variable to be maintained in NTMakefile.i386_nt40 (Please don't
change the value from 1,2,910,0 to 1,2,9,1 or something like that. The last
number group in the version is considered completely insignificant by some
things)
- some file typing, which I don't know if anything cares about
- Some new items in the stringfileinfo table, (InternalName and
OriginalFilename) without which explorer won't show use the version info in
constructing tooltip text.
- Actually setting ProductVersion and FileVersion to something real
- Language codes, which the MSI engine also wants
2003-06-19 20:00:31 +00:00
R. Lindsay Todd
befd22d01d logging-changes-for-large-files-20030619
FIXES 1493

create afs_vsnprintf. use it in FSLog. add new types which are intmax and uintmax,
32 or 64 bit as needed.. some casting.
2003-06-19 18:35:44 +00:00
R. Lindsay Todd
e110b1d34a logging-cleanup-20030602
FIXES 1493

logging function cleanup and protoizing
2003-06-02 15:37:48 +00:00
R. Lindsay Todd
df3dbd1578 splint-fileserver-volserver-cleanup-20030602
FIXES 1493

add "make splint" target for viced, vol, volser and clean up for splint
2003-06-02 15:35:59 +00:00
R. Lindsay Todd
a04ba28f72 largefile-2nd-try-base-work-20030602
FIXES 1433

another try at largefile support. macroize so things can be easily cut over
2003-06-02 15:27:54 +00:00
Jeffrey Hutzelman
e011b31bfa syslog-tags-20030515
FIXES 1266

include a program tag in syslog output
2003-05-29 19:03:14 +00:00
Derrick Brashear
36225d6573 vol-more-logging-20030515
FIXES 1453

much more to do here. start with this.
2003-05-15 17:41:25 +00:00
Jeffrey Hutzelman
5012151295 salvage-allow-hardlinked-logs-by-date-20030515
FIXES 1259

a switch causes salvager to create salvagelog hardlinks by date so
logs are preserved forever
2003-05-15 17:23:37 +00:00
Nathan Neulinger
1932dede05 vol-additional-logging-20030513
FIXES 1387

additional logging for attach/detach.
2003-05-14 15:54:53 +00:00
Nathan Neulinger
bdd9476a9a vol-gi-prototyping-20030513
FIXES 1432

changed slightly by shadow@dementia.org to not need forward decl.
2003-05-13 05:11:01 +00:00
Michael Niksch
3ab37f7148 salvager-aix-update-20030407
make it work with namei
2003-04-07 18:56:28 +00:00
Nathan Neulinger
73b4283116 revert-large-file-support-20030328
FIXES 1341

sadly there are problems. how long before this comes to the fore again
i don't know.
2003-03-28 09:35:53 +00:00
Thomas Mueller
8af8241e94 vol-ro-to-rw-tool-20030314
FIXES 1262

allow converting an ro to an rw on namei servers
2003-03-14 20:46:51 +00:00
James Peterson
5df76f7321 windows-build-updates-20030314
support for V6.0 and .Net complier, compile from either NT4.0 or XP
Source and object are separated into different directories.  The directory
tree would look as follows:

Base from %AFSROOT% environment variable
%AFSROOT%\src\... - all source and generated source
%AFSROOT%\obj\checked\... objects from a checked build
%AFSROOT%\obj\free\...    objects from a free build
%AFSROOT%\obj\dest\checked\...  DEST folder from a checked build
%AFSROOT%\obj\dest\free\....    DEST folder from a free build

Before you start the build, you must build an object tree by issuing the
following:

nmake -f NTMAKEFILE mkdir

====================
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.
====================

support for V6.0 and .Net complier, compile from either NT4.0 or XP
Source and object are separated into different directories.  The directory
tree would look as follows:
2003-03-14 20:11:44 +00:00
Derrick Brashear
644c4935f8 vol-prototyping-20030309
prototype much of the vol package
2003-03-10 02:08:33 +00:00
Derrick Brashear
db942233a5 viced-vol-ansification-20030303
some more code ansified
2003-03-03 15:37:03 +00:00
Harald Barth
54f056cc7a nuke-create-windows-pathnames-only-on-windows-thanks-20030228
don't construct a windows path on unix
2003-03-01 01:22:08 +00:00
Derrick Brashear
0385de10a1 salvager-create-larger-buffer-for-inodes-tmpfile-and-avoid-overrun-20030224
FIXES 1318

pointed out by Hartmut Reuter
2003-02-24 16:37:03 +00:00
Derrick Brashear
454af39fbc vol-check-malloc-return-20030208
make sure malloc doesn't fail in vol package either
2003-02-08 07:38:39 +00:00
Rainer Toebbicke
cff48dcb52 rx-thread-id-assignment-fixes-20030203
in rx_pthread.c the
++rxi_pthread_hinum;
has to be protected by the rx_stats_mutex in all three cases. In the file I
attached in the openafs-devel article the last one was accidentally
unprotected.

the FSYNC_sync thread (fssync.c) needs needs to be handled as well.
2003-02-03 20:45:51 +00:00
Derrick Brashear
ec111ccc44 vol-clone-inc-failure-logging-20030117
log info in event of assert

====================
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.
====================

same change for IH_DEC
2003-01-17 06:46:39 +00:00
Nickolai Zeldovich
3ba961ca00 Wrap our assert() macro in do{..}while(0) to make it look
just like a real function.  Fix instances of use of this
macro that lacked a trailing semicolon of their own.
2003-01-14 01:05:11 +00:00
Nathan Neulinger
ab64672f2b salvager-fast-restart-log-to-syslog-also-20030111
if -syslog, also log this to syslog
2003-01-12 02:02:48 +00:00
Nathan Neulinger
580af44321 makefiles-cflag-cleanup-20030111
move cflags back to makefile.config, more cleanup, dup removal
2003-01-11 07:33:52 +00:00
Derrick Brashear
bd72450f80 vol-package-avoid-race-on-invalidating-hashed-vnode-20030111
thanks to whichever of jhutz@cmu.edu or cg2v@andrew.cmu.edu (or both)
noticed the race; also deal with wrap problem in VolumeCacheCheck that i
noticed
2003-01-11 07:26:35 +00:00
Sam Hartman
92e76f7eb2 include-errno-dont-declare-it-20030111
include errno.h instead of extern int errno ourselves
2003-01-11 07:22:14 +00:00
R. Lindsay Todd
800b103f0a fileserver-largefile-support-20020109
Fix compile problems for 64BIT_ENV with large files turned off
2003-01-09 19:16:50 +00:00
R. Lindsay Todd
a038124edc fileserver-largefile-support-20020107
fileserver-side large file support
2003-01-07 23:38:02 +00:00
Derrick Brashear
c9f2a72c91 fssync-interface-change-to-deal-with-callback-delays-20021204
move callback breaking into a separate thread

====================
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.
====================

the rest of it. somehow the original version of this was lost.

====================

the rest of it. somehow the original version of this was lost.

====================

the rest of it. somehow the original version of this was lost.
2002-12-04 16:52:53 +00:00
Chaskiel M Grundman
fb3ca24729 REVERT-volserver-dont-deal-poorly-with-fssync-blockage-20021016
not ready yet, needs work
2002-12-03 02:00:24 +00:00
Derrick Brashear
3a7d53e8bd vputvnode-print-error-number-on-write-failure-20021104
make log message include error when taking volume offline
2002-11-04 20:15:38 +00:00
Chaskiel M Grundman
141c26f78e volserver-dont-deal-poorly-with-fssync-blockage-20021016
The attached patch attempts to deal with the issue that the volserver
blocks if the fileserver's fssync interface isn't responsive by doing a
select (IOMGR_Select) before trying to read the server's response.
2002-10-17 02:50:40 +00:00
Nathan Neulinger
782109a29b no-copy-libafs-builds-20021015
make things so file copies from src/libafs don't happen; change how libafs_tree is done
2002-10-16 04:58:13 +00:00