Commit Graph

150 Commits

Author SHA1 Message Date
Hans-Werner Paulsen
2f3bdd36ee fssync-fix-log-20050721
don't call Log like it's ViceLog
2005-07-21 06:06:27 +00:00
Derrick Brashear
ea20d8d6c2 vnrehash-avoid-cachecheck-change-20050618
unlocking and locking lets us race and makes cacheCheck potentially go bad
2005-07-19 15:44:53 +00:00
Jeffrey Altman
5343ad18e3 not-cplusplus-20050530
variables must be declared at the start of a block.
2005-05-30 11:49:30 +00:00
Tom Keiser
b9ae6e9547 parallel-attaching-20050529
FIXES 18999

allow parallelization of VInitVolumePackage so attaching volumes can be sped up
2005-05-30 06:22:04 +00:00
Chaskiel M Grundman
f519e0457c volinfo-fixes-20050508
FIXES 18391

large (>31bit) volume id handling and fixed handling of cloned volumes
2005-05-08 07:09:19 +00:00
Derrick Brashear
1e75a2fdc1 vnode-nusers-avoid-potential-overflow-20050428
a byte is very small...
2005-04-28 06:02:19 +00:00
Derrick Brashear
e911b292af daemonize-log-somewhere-so-fds-can-close-without-harm-20050426
FIXES 18405

switch to VLog from printf
2005-04-27 02:36:40 +00:00
Rainer Toebbicke
6115ace770 maintain-volume-filecounts-20050424
maintain file counts in volume header
2005-04-24 15:19:55 +00:00
Peter Somogyi
9307de2fe7 aix-volser-fix-retry-20050413
FIXES 18240

destroy lock only after we gave up permanently
2005-04-14 02:59:34 +00:00
Derrick Brashear
706530c295 openafs-kill-dead-code-20050403
Code ifdef'd any of AFS_MACH_ENV, AFS_GFS_ENV, AFS_DEC_ENV dies

Code ifdef'd AFS_SUN_ENV either becomes AFS_SUN5_ENV or dies as appropriate,
in the kernel only. The database servers etc are probably still buildable,
and I still have a SunOS 4.1.4 machine. ;-) But the Solaris vnops get all
SunOS 4 code nuked.

Uses of AFS_ALPHA_ENV which secretly meant OSF/1,D/UX,Tru64 become
AFS_OSF_ENV.

Bozon lock use gets its own ifdef. OSF and Solaris define it. Darwin and any
BSDs have bozon lock usage removed: note that only OSF and Solaris were
bothering to *init* the bozon lock during NewVCache. Bozon locks are for
platforms where basically we could end up deadlocking ourselves because of
how locks are handled.

Some nonsensical ifdefs removed.
Some if 0'd code removed.
Some obsolete code (hpux pre-10, for instance) removed.
2005-04-03 19:09:05 +00:00
Derrick Brashear
af22fcd182 revert-salvager-verbosity-entirely-20050319
simply remove the verbosity added to salvager
2005-03-19 20:42:04 +00:00
Derrick Brashear
d82d85f7c4 volinfo-dont-bomb-on-attach-failure-20050310
let volinfo keep going in the face of failure
2005-03-11 02:54:49 +00:00
Karl Ramm
7c3aeba686 salvager-less-verbose-20050227
make the salvager less verbose
2005-02-27 18:31:42 +00:00
Jeffrey Hutzelman
19ff527496 implement-vpeek-for-listvol-20041211
FIXES 16765

 All of AFSVolListOneVolume, AFSVolXListOneVolume, AFSVolListVolumes,
 AFSVolXListVolumes currrently attach each volume to be listed with
 V_READONLY.  This makes the fileserver update and sync the volume header
 before releasing the volume to the volserver.  The result is that volume
 list operations are slow, and generate lots of fileserver load, as Jimmy
 pointed out during his talk this afternoon.

 The attached patch introduces a new attach mode, V_PEEK, which is like a
 cross between V_READONLY and V_SECRETLY.  It can be used for read-only
 operations on the volume header, where it is not necessary to inform the
 fileserver that the volume is being accessed.  The patch also changes
 the above-named RPC's to use the new mode.
2004-12-11 11:02:00 +00:00
Jeffrey Hutzelman
93bc285e69 vol-bless-20041202
FIXES 15928

add volume blesser
2004-12-01 22:53:30 +00:00
Horst Birthelmer
c0dd32748f aix-vol-salvage-make-malloc-not-be-cast-20041106
When you have a 64bit big endian machine with a 64bit off_t in the stat
the salvager won't work.

Malloc takes an "unsigned long" and a implicit cast will be almost
always zero :-).
2004-11-08 19:59:57 +00:00
Derrick Brashear
ee23c5f90a any-way-damnit-20041107
no comment.
2004-11-08 04:03:10 +00:00
Derrick Brashear
3f2e943d43 vol-fix-nuke-iteration-and-nuke-globals-20040928
allInodes global dies; don't use ti as an iterator right after freeing it.
2004-10-02 16:54:28 +00:00
Nickolai Zeldovich
788ca86bdc fix-indent-bug-with-lock-macros-part-two-20040818
Add trailing semicolons to _LOCK and _UNLOCK macros and re-indent.
This should've been in fix-indent-bug-with-lock-macros-20030729
but somehow it slipped by and I've only found it now.
2004-08-19 01:22:38 +00:00
Derrick Brashear
1a7e336a16 dux-vol-cleanup-20040808
make partition code work again on dux
2004-08-09 00:59:51 +00:00
Derrick Brashear
5dc0642264 fssync-more-offline-volumes-20040728
just let the offline volumes array be larger
2004-07-28 22:49:18 +00:00
Jeffrey Altman
f02a7996b9 win32-fd_set-20040719
Make sure that we do not alter the FD_SETSIZE on Windows.
On Windows this is an array of FD_SETSIZE.  FD_SETSIZE does
not define the maximum socket handle value.
2004-07-19 15:39:38 +00:00
Jeffrey Hutzelman
775933e895 rx-lwp-fdsetsize-20040708
FIXES 5615

limit our fd set size so we don't "lose" fds.
2004-07-08 06:16:55 +00:00
Derrick Brashear
4e2c9285f4 prototyping-20040623
i had this laying around, i don't know from when, but i should flush it to cvs
2004-06-23 15:27:35 +00:00
Nathan Neulinger
5191f00383 volinfo-large-size-update-20040602
FIXES 4679

make volinfo useful for >4gb
2004-06-02 08:04:15 +00:00
Love Hörnquist-Åstrand
e59d92b03e salvager-log-instead-of-abort-20040515
FIXES 4533

insert of assert, log an error
2004-05-15 07:11:40 +00:00
Nickolai Zeldovich
6f22e163a5 memory-leak-fixes-20040417
Fix some memory leaks.
2004-04-18 07:13:47 +00:00
Ed Moy
3ee6917895 macos-fstab-fun-so-fileserver-works-20040401
so we use getfsent and actually find vice partitions (and make volinfo work)
2004-04-01 23:26:22 +00:00
Chaskiel M Grundman
e1281a2014 inode-largefile-attempt-20040311
FIXES 3519

attempt to deal with large file fileservers for inode versions. not done yet
2004-03-11 20:22:07 +00:00
Derrick Brashear
ebd13b0272 fix-ih-lock-macros-20031209
FIXES 1774

probably safe to remove trailing ; in ihandle.h now too.
2003-12-09 19:58:28 +00:00
Derrick Brashear
36ac69eedc vol-linux-dont-assume-ext2-20031208
to deal simply with /usr/include/linux potentially having 2.6 kernel headers
in newer linuxes. given that we might not have ext2 as root, this check
probably wasn't sufficient anyway.
2003-12-08 07:31:57 +00:00
Derrick Brashear
6dc76e27f0 fssync-extern-loglevel-20031208
wanna use LogLevel to determine whether to log? make sure it's declared.
2003-12-08 06:09:12 +00:00
Jeffrey Altman
21caaae64f ticket-2618-patches-20031207
TICKET 2618

flexelint patches for prototype handling from Joe Beuhler

>>>>>>>>>>>>>>>>>>>>>>>>>>>>

This patch adds a bunch of missing prototypes, makes various
corrections to global prototypes, and removes global declarations that
are not needed.

One set of added prototypes is commented out because it applies to
some printf-like functions that are implemented the way it used to be
done before varargs existed, and they need to be unprototyped or the
code will fail to compile.  (There are a number of functions in the
OpenAFS code that need to be converted to use varargs...)

There is one place of note in src/WINNT/afsd/fs.c where typedefs for
afs_int32 and afs_uint32 conflict with afs/stds.h.  I just added a
note to that effect.

Prototypes in src/WINNT/afsd/fs.c are incorrect for Windows NT.  I
don't know whether the return type involved changes from platform to
platform -- they come from .xg files.

Some prototypes are now commented out or #ifdef'd to match the code
that uses them.

Some global variables conflict between modules and have been made static.
The bufferBlock variable was of two completely different types...

In src/config/stds.h, I changed the declaration of afs_intmax_t to
reflect the fact that the Windows platform supports 64 bit integers.
This may be incorrect semantically, but I believe it is needed for the
%llx format to match afs_intmax_t arguments (for printing of inodes
mainly, I believe).

There were two different declarations for the rxkad_stats structure --
I synced them up.

- Joe

Removed the conflicting typedefs from src/WINNT/afsd/fs.c

Removed the changes to src/config/stds.h.  Added declaration of
AFS_64BIT_CLIENT to src/config/NTMakefile.i386_nt40 instead.

Do not remove unused variables which are defintions of data type
values.  Instead comment them out to avoid space utilization and
warnings.
2003-12-07 22:49:00 +00:00
Derrick Brashear
ebe5567b3b salvager-remove-orphaned-header-20031204
FIXES 2522

this should be fixed for the global case, but that's harder to test
2003-12-04 17:02:38 +00:00
Kris Van Hees
8be29dc516 salvager-fix-misparented-vnode-1-20031204
if vnode 1 gets a parent (which is incorrect) arrange for it to be cleaned
up properly
2003-12-04 16:23:28 +00:00
Jeffrey Altman
61cf9fa731 jbeuhler-flexelint-bugs-found-20031128
This patch covers bugs found by running flexelint on
the CVS code on Windows NT.

- incorrect enum used in al_creds.cpp and various other files
- use of local after it goes out of scope in al_wizard.cpp
- uninitialized class members in afsclass/*
- cm_config.c looks like it has code commented out accidentally
- useless statement in alert.cpp
- no default case handling in problems.cpp
- strange use of & on booleans in set_clone.cpp
- fgets() and fclose() on closed stream in cellconfig.c
- memory leak in cellconfig.c
- *scanf into variables of unknown length in cellconfig.c
- incorrect pointer passed to getAFSServer() in cellconfig.c
- possible buffer overflows in userok.c
- address of array in bos.c
- too many arguments for printf() in commands.c
- return code not saved in bucoord/main.c
- bad types for argv arrays in bucoord/main.c
- probably incorrect initializer list in ol_verify.c
- extra argument to TLog() in lwps.c
- memory leak in cmd/cmd.c
- lack of typecast on malloc() in a couple files
- lower-case L for long constant in touch.c (is it a 1 or an l...)
- parentheses nesting error in util_cr.c
- apparently invalid case fall-through in util_cr.c
- various memory leaks in util_cr.c
- macro missing parens in crypt.c
- macro missing parens in quad_cksum.c
- null pointer deref in kpasswd.c (CVS work in progress?)
- Print_bos_ProcessState_p() code does not look correct
- extra argument to printf() in kas.c
- typo in vsprocs.c
- macro missing parens in iomgr.c
- address of array in threadname.c
- storing result of getch() in char type in waitkey.c (may not match EOF constant)
- storing pointer to local car in global in ptserver.c (benign -- it is in main())
- address of array in rx_lwp.c
- macro missing parens in rx_packet.h
- impossible == (signed vs. unsigned?) in rxdebug.c
- bogus constants in xdr.c and xdr_array.c (possible security implications?)
- incorrect test of fd for open file in update/server.c
- dangerous unparenthesized macro in get_krbrlm.c
- buffer overrun in regex.c
- missing comma causes string concat and bad array init in vlclient.c
- comparison of string < 0 in ntops.c
- default case has no code in vos.c
--
Joe Buehler

>>>>

Comments: Several comments for FIXME left in the code - unaddressed
2003-11-29 22:07:57 +00:00
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