Whamcloud - gitweb
braam [Wed, 27 Mar 2002 20:36:24 +0000 (20:36 +0000)]
More 'rpc_register_service' removal
braam [Wed, 27 Mar 2002 20:31:22 +0000 (20:31 +0000)]
- simplified ptlrpc_service by using ME auto-unlinking
- merged ptlrpc_init_srv and rpc_register_service
adilger [Wed, 27 Mar 2002 00:46:29 +0000 (00:46 +0000)]
Simple journal abstractions for the no-journal (ext2) and ext3 cases.
adilger [Tue, 26 Mar 2002 21:14:06 +0000 (21:14 +0000)]
Empty filesystems for creating tests. Using these is _much_ faster than
using "dd" to create an empty file and then mkfs to create the filesystem.
They are also highly compressed (1000:1) so they don't use much space.
The new_fs() helper in common.sh will use these files instead of dd+mkfs
if they match the parameters given to new_fs().
adilger [Tue, 26 Mar 2002 20:57:40 +0000 (20:57 +0000)]
Set an initial value for return code.
adilger [Tue, 26 Mar 2002 20:56:59 +0000 (20:56 +0000)]
Don't dereference "lock" before it is set.
braam [Mon, 25 Mar 2002 09:21:13 +0000 (09:21 +0000)]
remove gid/rid's; minor cleanups.
pschwan [Mon, 25 Mar 2002 01:56:42 +0000 (01:56 +0000)]
- default to 5G
- run with -i 0 -i 1
pschwan [Mon, 25 Mar 2002 01:55:49 +0000 (01:55 +0000)]
- build truncate with LARGEFILE64_SOURCE
- truncate's second argument is now in KB
braam [Sun, 24 Mar 2002 23:36:24 +0000 (23:36 +0000)]
*** empty log message ***
braam [Sun, 24 Mar 2002 23:23:27 +0000 (23:23 +0000)]
- more of the locking infrastructure.
- BUG -> LBUG to work with the crashdump tools
pschwan [Sun, 24 Mar 2002 08:59:53 +0000 (08:59 +0000)]
- ll_file_open was not passing the correct file->f_flags to mdc_open. Fixed.
braam [Sat, 23 Mar 2002 08:31:50 +0000 (08:31 +0000)]
- don't read the page if we're just about to completely overwrite it
- fixed one of the page invariant BUGs
adilger [Sat, 23 Mar 2002 00:50:00 +0000 (00:50 +0000)]
Commit changes to use new setup_portals helper function.
adilger [Sat, 23 Mar 2002 00:33:13 +0000 (00:33 +0000)]
mds/handler.c, mds/mds_reint.c: fixup the ext3 MDS code a bit to build on
the older 2.4.9 kernel (i_blkbits does not exist there), and add
in the missing fixup for i_diskblocks
ALL: add in test framework for simulating errors, dropped packets, etc.
does not yet integrate with the ext3 on-disk error interface
braam [Sat, 23 Mar 2002 00:15:23 +0000 (00:15 +0000)]
Remove yet another extraneous BUG()
adilger [Sat, 23 Mar 2002 00:03:06 +0000 (00:03 +0000)]
Remove annoying output from the shell when acceptor is stopped.
adilger [Fri, 22 Mar 2002 23:56:09 +0000 (23:56 +0000)]
Fixup logic a bit.
adilger [Fri, 22 Mar 2002 23:52:08 +0000 (23:52 +0000)]
Move portals setup into a helper function "setup_portals" that uses the
enviroment variables "NETWORK={elan,tcp}", LOCALHOST, SERVER, and PORT.
adilger [Fri, 22 Mar 2002 23:45:55 +0000 (23:45 +0000)]
Simple script to run vmstat and prepend the time, so we can see when vmstat
is not being scheduled instead of thinking that something is strange.
pschwan [Fri, 22 Mar 2002 23:12:12 +0000 (23:12 +0000)]
Remove silly BUG() that catches "erroneous" writes above 4G.
adilger [Fri, 22 Mar 2002 21:28:27 +0000 (21:28 +0000)]
The ext3 MDS code. Basically, we have to hack around the fact that ext3
does not have the directories in page cache, so we need to export the
ext3_bread() function in order to ensure we read the same data as what the
filesystem itself is using. This will likely go away at some time in the
future as ext3 is ported to the pure page-cache-based directory handling
that is in ext2 (which is slightly more efficient).
pschwan [Fri, 22 Mar 2002 20:18:09 +0000 (20:18 +0000)]
use relative paths to insert the modules relative to the test script
pschwan [Fri, 22 Mar 2002 19:33:12 +0000 (19:33 +0000)]
- added non-fatal qswnal insertion to common.sh
- fixed up various scripts to use the common.sh variables
adilger [Fri, 22 Mar 2002 19:02:28 +0000 (19:02 +0000)]
Script to use an existing ext3 MDS setup. Useful for testing recoverability
of an MDS setup with llext3.sh.
adilger [Fri, 22 Mar 2002 19:01:02 +0000 (19:01 +0000)]
Script to run iozone in a loop. It probably doesn't have the right iozone
parameters that people want, but it is a start.
adilger [Fri, 22 Mar 2002 18:59:15 +0000 (18:59 +0000)]
Update rundbench script for new debug control file.
adilger [Fri, 22 Mar 2002 18:57:56 +0000 (18:57 +0000)]
Update ostreq.sh script to use new helper functions.
adilger [Fri, 22 Mar 2002 18:56:49 +0000 (18:56 +0000)]
Minor cleanup.
adilger [Fri, 22 Mar 2002 18:55:44 +0000 (18:55 +0000)]
The loopback device helper will use the next unused loopback device instead
of just starting at minor 0.
pschwan [Fri, 22 Mar 2002 18:54:22 +0000 (18:54 +0000)]
- Take advantage of new disconnect semantics to make llmountcleanup.sh a more
general script
adilger [Fri, 22 Mar 2002 18:52:06 +0000 (18:52 +0000)]
Add ext3_bread to exported symbols. Needed because ext3 does not have
directories in the page cache yet.
pschwan [Fri, 22 Mar 2002 18:31:34 +0000 (18:31 +0000)]
- Removed an overzealous BUG() that keeps us from cleaning up after C-c
adilger [Fri, 22 Mar 2002 05:45:52 +0000 (05:45 +0000)]
Indenting only.
braam [Thu, 21 Mar 2002 20:06:01 +0000 (20:06 +0000)]
- Added UUID description to network document
- fixed leaked refcount in failed osc_request startup
- small debugging message fix
- removed extraneous PtlMDUnlink
- try to remove kqswnal in llmountcleanup
braam [Thu, 21 Mar 2002 05:39:14 +0000 (05:39 +0000)]
add path
braam [Thu, 21 Mar 2002 05:37:09 +0000 (05:37 +0000)]
dd kernel version deps
Cdd \7f\7f\7f\7fVS: ----------------------------------------------------------------------
braam [Thu, 21 Mar 2002 05:31:03 +0000 (05:31 +0000)]
- remove unhelpful CERRORs
braam [Thu, 21 Mar 2002 01:50:34 +0000 (01:50 +0000)]
- do the right thing when we catch SIGTERM
- removed extraneous MDUnlink
- added CERRORs to catch MD leak
braam [Wed, 20 Mar 2002 23:47:14 +0000 (23:47 +0000)]
- updated documentation (introduction)
- race fix in md_active
- new lock stuff
pschwan [Wed, 20 Mar 2002 22:27:53 +0000 (22:27 +0000)]
Yet another test script, this one for the DLM.
pschwan [Wed, 20 Mar 2002 22:27:04 +0000 (22:27 +0000)]
- mds_open/mds_close had an unbalanced mnt put/get. I'm still not clear on why
_every_ caller to mds_fid2dentry doesn't have this problem, but an extra
mntput fixed this one.
- oops. I committed my really large llmount.sh. Fixed.
adilger [Wed, 20 Mar 2002 20:52:11 +0000 (20:52 +0000)]
Update older ll*.sh scripts to use helper functions.
adilger [Wed, 20 Mar 2002 20:47:57 +0000 (20:47 +0000)]
Add "llrmount.sh" script, which does the same setup as llmount.sh, but does
not create new filesystems. It uses the existing filesystems from a previous
invocation of llmount.sh. This is useful for persistency testing or testing
recoverability.
adilger [Wed, 20 Mar 2002 20:46:25 +0000 (20:46 +0000)]
Add "old_fs" helper function (takes same args as new_fs helper) to just
set up an existing filesystem instead of creating a new one.
pschwan [Wed, 20 Mar 2002 19:58:43 +0000 (19:58 +0000)]
- don't free the request when you drop the packet--it's on the stack
- brought mdcreq.sh into the year 2002 (even though the mdc ioctl interface is
still broken)
pschwan [Wed, 20 Mar 2002 19:07:46 +0000 (19:07 +0000)]
- Removed the (nearly) unused obd_print_entry and fixed the code that
depended on it.
- Added code to drop packets based on /proc/sys/obd/drop_packet
- De-tabbified and switched a bunch of code to use RETURN and GOTO
braam [Mon, 18 Mar 2002 15:15:06 +0000 (15:15 +0000)]
- may not need this client lock
braam [Mon, 18 Mar 2002 15:00:07 +0000 (15:00 +0000)]
- add a figure
- fix the problem that the refcount is reduced on the wrong md in the
ring buffer
braam [Sun, 17 Mar 2002 05:39:22 +0000 (05:39 +0000)]
- temporarily change client.c which bums out on killing a client (PHIL?)
- lock the service structure whenever it mucks with state
- add full debugging to llecho.sh
adilger [Thu, 14 Mar 2002 21:54:43 +0000 (21:54 +0000)]
Check for 1 or 2 obdos being passed from test_brw ioctl.
adilger [Thu, 14 Mar 2002 21:49:44 +0000 (21:49 +0000)]
Change default obdctl test_brw behaviour to have only 1 obdo and 1 page.
Make BRW class ioctl check for one or two obdos.
braam [Thu, 14 Mar 2002 18:37:39 +0000 (18:37 +0000)]
- Small changes for packaging
pschwan [Thu, 14 Mar 2002 06:43:31 +0000 (06:43 +0000)]
- be more strict about what we accept from PtlEQGet in ptlrpc_check_event()
pschwan [Thu, 14 Mar 2002 06:33:35 +0000 (06:33 +0000)]
- fixed some NTOH/HTON mixups
- added some BUG()s in niobuf pack/unpack to catch bogus offsets
- added a couple of BUGs() in dropped-packet cases
braam [Thu, 14 Mar 2002 06:29:41 +0000 (06:29 +0000)]
- add correct file
braam [Thu, 14 Mar 2002 05:26:35 +0000 (05:26 +0000)]
- many small makefile changes to build package conveniently.
- to be done: retain CVS with anonymous root
- fix up the PORTALS path
- build a portals RPM
- include a better tags target that includes vim tags and portals.
adilger [Thu, 14 Mar 2002 00:16:31 +0000 (00:16 +0000)]
Use req->page instead of req->addr inside echo_commitrw, as the latter is
unset by the callback function on a write (it worked fine for reads ;-).
adilger [Wed, 13 Mar 2002 19:07:20 +0000 (19:07 +0000)]
Script to set up MDS using ext3 (basically llmount.sh with ext3 instead of
ext2 for MDS). Will not work unless ext3 has been patched with a_ops=&ext3_ops
in fs/ext3/inode.c and fs/ext3/namei.c. Not sure if that is the correct
solution yet or not.
pschwan [Wed, 13 Mar 2002 17:59:13 +0000 (17:59 +0000)]
- Makefile.am fixes to allow building in objdirs
adilger [Tue, 12 Mar 2002 23:08:32 +0000 (23:08 +0000)]
Add comment about direct access to fs-internal data struct - it works for
ext2 and ext3 (they happen to have the same layout) but it is dangerous.
Since it falls under the "hack - to be fixed with EA support" I didn't fix.
adilger [Tue, 12 Mar 2002 23:06:35 +0000 (23:06 +0000)]
A couple of cleanups while looking for ext3 bug - don't leak buf or bulk
allocations on error.
pschwan [Tue, 12 Mar 2002 20:34:24 +0000 (20:34 +0000)]
- brought lustre-debugging.lyx up to date
- removed unused obd_print_entry code
- fixed the llmount.sh debug level default
- minor debugging cleanups
- moved mdc_reint to where it's actually used
adilger [Tue, 12 Mar 2002 00:19:51 +0000 (00:19 +0000)]
Make llmountcleanup.sh use new helper methods.
adilger [Tue, 12 Mar 2002 00:19:15 +0000 (00:19 +0000)]
Clean up llmount.sh to use new helper methods
adilger [Tue, 12 Mar 2002 00:18:21 +0000 (00:18 +0000)]
Clean up llecho.sh script to use new helper methods
adilger [Tue, 12 Mar 2002 00:17:41 +0000 (00:17 +0000)]
Add helper routines to tests/common.sh:
- centralize location for debugctl, obdctl, ptlctl
- automate test filesystem creation
- check if devices exist before trying to create them (avoid error msg)
adilger [Tue, 12 Mar 2002 00:02:48 +0000 (00:02 +0000)]
Add openunlink binary to .cvsignore.
adilger [Tue, 12 Mar 2002 00:01:26 +0000 (00:01 +0000)]
Add echo_connect/echo_disconnect to do proper module refcounting (avoid
oops if we unload module while we have an open connection to it).
The echo_preprw and echo_commitrw methods now clean up properly on error.
adilger [Mon, 11 Mar 2002 23:56:39 +0000 (23:56 +0000)]
Fix BRW ioctl test interface. I had set up offset/count/flag per obdo
when it is really per-page.
adilger [Mon, 11 Mar 2002 19:45:31 +0000 (19:45 +0000)]
Unlock page in lustre_prepare_page() if there is an error.
pschwan [Mon, 11 Mar 2002 14:58:49 +0000 (14:58 +0000)]
- a few more header cleanups
- removed some unused code
- inserted many extra BUG()s to catch problems early
- fixed a use of the incorrect inode, and fixed the directory bug
- enabled mds_open/mds_close
- fixed a small leak in an error case
- removed an extra set_page_dirty() in the write path
- added an open/write/close/open/unlink/read/truncate/write/read/close test
pschwan [Sun, 10 Mar 2002 19:08:09 +0000 (19:08 +0000)]
We touched everything, but it's not as scary as it looks.
- dramatically reorganized and simplified the headers. Most of the nasty
recursive definitions are gone, and obd_class.h no longer drags in the
entirety of Lustre.
- .cvsignores updated and cleaned
- added another chunk of DLM code and a test, which passes (note that it doesn't
free the locks yet, so don't expect to cleanup afterwards)
- fixed OBD_ALLOC/OBD_FREE in the same ways as the Portals macros
- removed a lot of dead obd_class code
braam [Sat, 9 Mar 2002 18:31:38 +0000 (18:31 +0000)]
- add open and close calls: initial purpose is to support I/O to open,
unlinked files
- fix faulty connection handling in osc/ost methods: unlink, punch (this
should explain and fix the iozone behavior).
adilger [Fri, 8 Mar 2002 21:06:24 +0000 (21:06 +0000)]
Update preprw and commitrw methods on echo OST.
adilger [Fri, 8 Mar 2002 20:57:52 +0000 (20:57 +0000)]
Add BRW_READ and BRW_WRITE ioctls.
They are for BRW bulk transport testing, using a vector of 2 obdos with a
variable number of pages each. No data is currently passed to/from userspace.
In fact, I _think_ that no data is going over the transport either for some
reason, because the operation is too fast, even though I'm not getting any
errors.
adilger [Fri, 8 Mar 2002 20:47:51 +0000 (20:47 +0000)]
Add test_brw command. While it doesn't cause any errors, I don't think it
actually does the right thing yet - it runs much too quickly (faster than
getattr, in fact). Committing it to reduce the size of outstanding changes.
Add some performance stats to test_getattr.
adilger [Fri, 8 Mar 2002 20:41:33 +0000 (20:41 +0000)]
Adding ctags and other built files to .cvsignore to reduce clutter and make
changes more visible.
adilger [Fri, 8 Mar 2002 20:38:37 +0000 (20:38 +0000)]
Tiny cleanup in preprw to match commitrw.
adilger [Fri, 8 Mar 2002 20:34:31 +0000 (20:34 +0000)]
Add BRW_READ and BRW_WRITE ioctls.
adilger [Fri, 8 Mar 2002 20:30:34 +0000 (20:30 +0000)]
Don't try to close file pointer if there was an error opening it.
adilger [Fri, 8 Mar 2002 16:59:29 +0000 (16:59 +0000)]
Added cvsignore files to directories which didn't have them.
braam [Thu, 7 Mar 2002 23:41:09 +0000 (23:41 +0000)]
- first parts of lock management: module & resource hash +
header file with data structures.
pschwan [Thu, 7 Mar 2002 22:36:24 +0000 (22:36 +0000)]
- typing 'quit' was not cleaning up obdctl connections. fixed.
- switching devices also closes connections now.
pschwan [Thu, 7 Mar 2002 20:16:05 +0000 (20:16 +0000)]
- module insert code moved to tests/common.sh
- refactored request freeing code to handle the use of the reply buffer after
the mdc_getattr, etc. returns.
pschwan [Thu, 7 Mar 2002 17:23:02 +0000 (17:23 +0000)]
- made many CERRORs (the informative, rather than bad ones) into CDEBUGs. It
should run silently now.
pschwan [Wed, 6 Mar 2002 20:53:13 +0000 (20:53 +0000)]
- Report any leaked memory at module remove time
- Free the reply buffer when we destroy the request, thus avoiding the
double-free. If we ever move to an event model where we don't put the
ptlrpc_main() request on the stack, be careful that we don't free an outgoing
reply buffer before it's sent!
adilger [Tue, 5 Mar 2002 23:55:38 +0000 (23:55 +0000)]
Add echo_preprw() and echo_commitrw() methods to the echo OST. They have
not been tested yet, need to add test_brw to obdctl first.
adilger [Tue, 5 Mar 2002 23:51:16 +0000 (23:51 +0000)]
Don't dereference conn if we don't have a connection.
pschwan [Tue, 5 Mar 2002 22:02:59 +0000 (22:02 +0000)]
rpc/service.c: set max_offset when creating service MDs
added lustre debugging draft
braam [Tue, 5 Mar 2002 18:44:34 +0000 (18:44 +0000)]
- track offset for debugging
pschwan [Tue, 5 Mar 2002 18:29:37 +0000 (18:29 +0000)]
use debugctl for 'modules'
unload 'obdecho'
braam [Tue, 5 Mar 2002 18:13:18 +0000 (18:13 +0000)]
max offset patch for request headers,
missing obd_echo
pschwan [Tue, 5 Mar 2002 17:15:22 +0000 (17:15 +0000)]
Removed 'modules' functionality, which is now in debugctl
braam [Tue, 5 Mar 2002 01:00:36 +0000 (01:00 +0000)]
- add obdecho directory
- numerous small fixes to obdclass -- yippeah Andreas is back
- test_getattr (jt_multi_getattr) tells obdctl to fire many getattr requests.
- build this code, run obd/tests/llecho.sh and play with it
pschwan [Sun, 3 Mar 2002 08:03:03 +0000 (08:03 +0000)]
Fixed stupid bug, calling kunmap() on an address
pschwan [Sun, 3 Mar 2002 07:56:15 +0000 (07:56 +0000)]
build fix, remove 3rd buffer
braam [Sun, 3 Mar 2002 07:46:16 +0000 (07:46 +0000)]
- small fixes; things work.
braam [Sun, 3 Mar 2002 07:13:51 +0000 (07:13 +0000)]
- fix for reads
pschwan [Sun, 3 Mar 2002 06:50:17 +0000 (06:50 +0000)]
- fixed obd_brw_read bug