Whamcloud - gitweb
pschwan [Thu, 24 Oct 2002 00:54:44 +0000 (00:54 +0000)]
b=625069
- Workaround for 625069: send all LDLM requests, not just callbacks, to the
LDLM portal
- change CERROR in lov_getattr into CDEBUG
shaver [Thu, 24 Oct 2002 00:51:03 +0000 (00:51 +0000)]
"force" should _cause_ forcing, not disable forcing. Thanks to robert for the
catch.
shaver [Thu, 24 Oct 2002 00:32:56 +0000 (00:32 +0000)]
A patch only a mother could love to notify LOVs when OSCs are disabled due to
OST failure or partition.
Remember to re-enable it in your upcall, after reconnecting!
adilger [Wed, 23 Oct 2002 23:07:03 +0000 (23:07 +0000)]
Fix LOV stripe allocation.
Don't re-assign lsm_stripe_offset because it is 0 (which is a valid offset).
adilger [Wed, 23 Oct 2002 22:06:01 +0000 (22:06 +0000)]
Make the cleanup and remount scripts consistent in accepting "NAME" as
the basename of the config script, so you can do:
NAME=lov sh llmount.sh
NAME=lov sh llmountcleanup.sh
and it will work.
Also fix a bug in llmount.sh, which I think would have prevented the
XML config file from being regenerated properly.
shaver [Wed, 23 Oct 2002 18:57:33 +0000 (18:57 +0000)]
- Beginning of new REINT replay infrastructure.
- Poison imports for failed OSCs, so future requests get -EIO.
- Remove the epoch checking for mounts and inodes, because we don't want to
kill a while filesystem because a single OSC died.
- Close open files on MDS-disconnect.
- If asked with a "force" parameter, disconnect all remaining exports during
OBD disconnection.
- Teach lconf to send that parameter when given -f.
rread [Wed, 23 Oct 2002 10:50:05 +0000 (10:50 +0000)]
* startlevel and endlevel patch supplied by Evan.Felix@pnl.gov
thantry [Wed, 23 Oct 2002 03:18:36 +0000 (03:18 +0000)]
Some random double pointer error..
thantry [Wed, 23 Oct 2002 03:05:50 +0000 (03:05 +0000)]
File containing read/write fptr implementations for PTLRPC device. To be added to make path after review
thantry [Wed, 23 Oct 2002 03:05:21 +0000 (03:05 +0000)]
File containing read/write fptr implementations for OST device. To be added to make path after review
thantry [Wed, 23 Oct 2002 03:04:57 +0000 (03:04 +0000)]
File containing read/write fptr implementations for OSC device. To be added to make path after review
thantry [Wed, 23 Oct 2002 03:04:22 +0000 (03:04 +0000)]
File containing read/write fptr implementations for OBDFILTER device. To be added to make path after review
thantry [Wed, 23 Oct 2002 03:03:47 +0000 (03:03 +0000)]
File containing read/write fptr implementations for echo device. To be added to make path after review
thantry [Wed, 23 Oct 2002 03:03:16 +0000 (03:03 +0000)]
File containing read/write fptr implementations for MDS. To be added to make path after review
thantry [Wed, 23 Oct 2002 03:02:49 +0000 (03:02 +0000)]
File containing read/write fptr implementations for MDC. To be added to make path after review
thantry [Wed, 23 Oct 2002 03:02:20 +0000 (03:02 +0000)]
File containing read/write fptr implementations for LOV. To be added to make path after review
thantry [Wed, 23 Oct 2002 03:01:45 +0000 (03:01 +0000)]
File containing read/write fptr implementations for mount_point. To be added to make path after review
thantry [Wed, 23 Oct 2002 02:59:02 +0000 (02:59 +0000)]
Adding to the source repository. Will be linked in to the makefile after
review.
adilger [Tue, 22 Oct 2002 22:36:40 +0000 (22:36 +0000)]
Pass ioctls on LOV device through to all underlying OSCs if unknown.
adilger [Tue, 22 Oct 2002 21:22:58 +0000 (21:22 +0000)]
Fix LOV striping code:
- don't set default stripe count at lov_connect() time if it is zero, defer
it to lov_create() time in case the number of OSTs has changed
- validate the "stripe width < 4GB" requirement at lov_create() time, in
case bad user-specified striping patterns are given or #OSTs has increased
- don't override lsm_stripe_count if it is already set
- choose from all OSTs as the starting OST, instead of only [0-active]
- return -ENOTTY for unimplemented ioctls
adilger [Tue, 22 Oct 2002 20:41:47 +0000 (20:41 +0000)]
Minor tweak to match RH 2.4.18-14 function name in kernel.
adilger [Tue, 22 Oct 2002 20:33:28 +0000 (20:33 +0000)]
Remove old -12.5 kernel patch, the -14 patch is exactly the same, and uptodate.
pschwan [Tue, 22 Oct 2002 06:55:14 +0000 (06:55 +0000)]
- teeny fix to ll_revalidate2; this will be trumped by my fix for 626244
in ways that can scarcely be described by mere words
- multiple CONNECTs to the LOV would do more CONNECTs to the OSCs, each
clobbering the last connection and preventing cleanup; fixed.
- LOV targets now have an 'active' bit; inactive targets will be skipped at
CREATE and DISCONNECT time
- added locking for the above, along with a function to toggle the bit given an
LOV and a UUID
- added a LOV_SET_OSC_ACTIVE ioctl to the lov driver and lctl
braam [Mon, 21 Oct 2002 23:37:39 +0000 (23:37 +0000)]
- fixes to osc_brw path to address fsx failures. We in fact uncovered
serious problems with writes of less than one page.
- minor fixes for 2.5
adilger [Mon, 21 Oct 2002 22:05:33 +0000 (22:05 +0000)]
Commit new intent patch for 2.4.18.
adilger [Mon, 21 Oct 2002 22:05:11 +0000 (22:05 +0000)]
Remove sig from end of patch.
adilger [Mon, 21 Oct 2002 21:45:15 +0000 (21:45 +0000)]
The curse of copy-n-paste. Fix compile warnings and maybe code too.
adilger [Mon, 21 Oct 2002 21:32:53 +0000 (21:32 +0000)]
Getting ready to land OBD open file handles, and OSC/LOV local lock handle
allocations.
adilger [Mon, 21 Oct 2002 21:31:04 +0000 (21:31 +0000)]
A little debugging I've been running in my tree for a long time.
It caught a couple of minor bugs, and should prevent more in the future.
adilger [Mon, 21 Oct 2002 21:25:05 +0000 (21:25 +0000)]
Add lov_getconfig to lctl docs.
adilger [Mon, 21 Oct 2002 21:16:46 +0000 (21:16 +0000)]
Change lctl lovconfig command into lov_getconfig, and add lov_setconfig.
Update all scripts/docs which refer to the lovconfig command.
lov_getconfig compiles OK, and does not affect normal operation, but it
is not working yet (user-space segfault) and I need to run it on a real
system (can't run GDB under UML).
adilger [Mon, 21 Oct 2002 18:26:53 +0000 (18:26 +0000)]
Add permission bits to open(O_CREAT) (b=624321).
Add a verifiable data pattern so that we can confirm if data is going to the
correct stripe.
eeb [Mon, 21 Oct 2002 17:29:53 +0000 (17:29 +0000)]
removed demos/Makefile from configure.in
pschwan [Mon, 21 Oct 2002 07:17:26 +0000 (07:17 +0000)]
Oops, missed a hunk.
pschwan [Mon, 21 Oct 2002 07:16:15 +0000 (07:16 +0000)]
Move AM_CONDITIONAL into configure.in
adilger [Mon, 21 Oct 2002 07:05:15 +0000 (07:05 +0000)]
Include version.h so we can check version.
braam [Mon, 21 Oct 2002 07:03:25 +0000 (07:03 +0000)]
- fix to deal with other versions of automake.... :(
braam [Mon, 21 Oct 2002 06:47:07 +0000 (06:47 +0000)]
- compile fixes for 2.5 -- somewhat tentative here and there.
braam [Mon, 21 Oct 2002 06:35:22 +0000 (06:35 +0000)]
2.4 fixes
braam [Mon, 21 Oct 2002 05:58:41 +0000 (05:58 +0000)]
- 2.5 fixes for MDS
braam [Mon, 21 Oct 2002 04:25:20 +0000 (04:25 +0000)]
- compile fixes for 2.5.44
- echo works again
braam [Sun, 20 Oct 2002 22:40:11 +0000 (22:40 +0000)]
- put obdfilter before extN + mds to facilitate collab between peter +
andreas on 2.5
pschwan [Sun, 20 Oct 2002 19:18:38 +0000 (19:18 +0000)]
2.4 build fixes
braam [Sun, 20 Oct 2002 19:09:24 +0000 (19:09 +0000)]
- Lustre Lite at least superficially ready for 2.5
pschwan [Sun, 20 Oct 2002 00:16:14 +0000 (00:16 +0000)]
- Back out the ldlm_everything_lock patch, which causes a deadlock on cleanup
- Move backslashes in lustre_lite.h macros to fit in 80 columns
- Added a couple of structure fields that support my LOV work
braam [Sat, 19 Oct 2002 22:43:14 +0000 (22:43 +0000)]
- buffer checks are different for non-intent
- remove a it = ->d_it assignment
- set the intent at the end of lookup2
braam [Sat, 19 Oct 2002 19:53:09 +0000 (19:53 +0000)]
- fix rdev stuff
- assign d_fsdata in lookup2
braam [Sat, 19 Oct 2002 16:43:42 +0000 (16:43 +0000)]
- keep extN before MDS
braam [Sat, 19 Oct 2002 16:29:00 +0000 (16:29 +0000)]
Restore Phil's header fix that I whacked.
braam [Sat, 19 Oct 2002 16:09:43 +0000 (16:09 +0000)]
ONLY UPDATE IF YOU NEED THIS (i.e. Andreas probably will)
- more fixes for 2.5 builds, much overlap with Andreas' check in from
yesterday.
- add vfs_inode to Lustre inode info: for 2.5 this makes this the
whole inode.
- two versions of intent_release: Robert's and the new one for 2.5
- Robert's patch - so this may break some stuff, we'll sort that out.
- convert device numbers
- small fixes to make thread handling compatible with 2.5
- always compile super25.c and super.c; the contents is conditional on
the version
pschwan [Sat, 19 Oct 2002 11:33:33 +0000 (11:33 +0000)]
- Replace per-namespace recursive lock with an ldlm-global lock, to close the
race between ldlm_handle2lock and the lock destroy portion of ldlm_lock_put
- Add a special interface for ldlm_handle2lock to resolve the following
conflict between our invariants:
1. ldlm_handle2lock should never give a reference to a "dying" lock
2. ldlm_lock_decref needs to use ldlm_handle2lock to get a reference to a lock
so that it can decrease the readers/writers refcount
3. The lock can't finish dying until readers/writers hits zero.
That should be fixed now.
shaver [Sat, 19 Oct 2002 11:19:14 +0000 (11:19 +0000)]
- Split import reconnection and replay (OSC only needs to reconnect).
- Restore recovd-management of server-side connections (why did I take that out
in the first place?).
- Abort inflight, uncommitted and waiting requests for imports that are
invalidated by reconnection to OST. (Generates -EIO, or should!)
- Mete out harsh, harsh justice to locks held by recovery-invalidated imports.
- Remove LBUG()s now that some error returns from ldlm_cli_cancel are "normal".
- Cancel locks on disconnection from OST (really filter).
- Ignore replies that come in after we've started recovery on a given connection.
The socknal's implicit retransmission can otherwise cause us worlds and worlds
of hurt.
- Wake up when we get aborted, and return -EIO.
- Remove connections from the recovd's care when they go unused. (Which might
actually happen, once Phil lands his refcounting fixes!)
shaver [Sat, 19 Oct 2002 11:09:16 +0000 (11:09 +0000)]
- Rename ldlm_namespace_cleanup's "local" parameter to "local_only" for clarity.
- Remove spurious LBUG() or two.
- Export the cleanup and dump symbols we use in recovery.
pschwan [Sat, 19 Oct 2002 09:12:24 +0000 (09:12 +0000)]
Fix the connection refcount leaks. There were actually 3 separate bugs.
adilger [Sat, 19 Oct 2002 06:21:46 +0000 (06:21 +0000)]
UnlockPage->unlock_page. The two are identical, except that the former
does not exist in 2.5.
adilger [Fri, 18 Oct 2002 23:43:17 +0000 (23:43 +0000)]
Hiding will not save you.
adilger [Fri, 18 Oct 2002 23:39:18 +0000 (23:39 +0000)]
Don't refer to junk which doesn't exist.
adilger [Fri, 18 Oct 2002 23:38:54 +0000 (23:38 +0000)]
Yet more junk.
adilger [Fri, 18 Oct 2002 23:37:55 +0000 (23:37 +0000)]
More cruftectomy.
adilger [Fri, 18 Oct 2002 23:35:27 +0000 (23:35 +0000)]
Remove demos directory entirely.
adilger [Fri, 18 Oct 2002 23:34:45 +0000 (23:34 +0000)]
Remove ancient and unworking snapshot demo scripts.
adilger [Fri, 18 Oct 2002 23:27:46 +0000 (23:27 +0000)]
One more straggler in obdfs.
adilger [Fri, 18 Oct 2002 23:20:52 +0000 (23:20 +0000)]
Remove ancient and entirely non-working obdfs code from the HEAD.
pschwan [Fri, 18 Oct 2002 22:32:45 +0000 (22:32 +0000)]
More 2.5-SMP build fixes
pschwan [Fri, 18 Oct 2002 22:20:54 +0000 (22:20 +0000)]
Fix build on 2.4SMP
I don't have a working 2.5 llite directory yet, so can you test these
changes, Andreas?
pschwan [Fri, 18 Oct 2002 22:06:16 +0000 (22:06 +0000)]
I really broke the tree last night. I guess nobody has been using it much
today.
- Remove a bogus assertion in ldlm_completion_ast
- Add a class 9 hack in ldlm_destroy_lock to get things working
- LINUX_VERSION_CODE requires version.h
adilger [Fri, 18 Oct 2002 21:45:48 +0000 (21:45 +0000)]
Fix breakage from missing wait_on_buffer() inline.
shaver [Fri, 18 Oct 2002 21:42:03 +0000 (21:42 +0000)]
automake 1.6.x doesn't like the redefinition, and I bet that's not what we meant
anyway.
adilger [Fri, 18 Oct 2002 21:19:57 +0000 (21:19 +0000)]
Header changes needed to compile under 2.5 (compiled also with 2.4 to verify).
rread [Fri, 18 Oct 2002 19:39:03 +0000 (19:39 +0000)]
* allow lmc and lconf paths to be overridden in installed scripts
rread [Fri, 18 Oct 2002 19:29:06 +0000 (19:29 +0000)]
* fix braino
adilger [Fri, 18 Oct 2002 19:25:48 +0000 (19:25 +0000)]
More merging from the 2.5 tree.
radhikav [Fri, 18 Oct 2002 19:21:51 +0000 (19:21 +0000)]
Replace the man page for lmc to describe the current options for lmc. Added a new file which describes the proposed new implementation for lmc.
adilger [Fri, 18 Oct 2002 19:13:03 +0000 (19:13 +0000)]
Another minor "make the current code closer to intent code" change.
adilger [Fri, 18 Oct 2002 19:02:00 +0000 (19:02 +0000)]
Merge some of the no-op intent changes to the core tree before branching.
rread [Fri, 18 Oct 2002 19:01:50 +0000 (19:01 +0000)]
* change --with-portalslib to require the full path and also use the
--with-portals arg as the base dir for the default
* remove old config scripts and put examples in /usr/lib/lustre/examples
adilger [Fri, 18 Oct 2002 17:53:15 +0000 (17:53 +0000)]
Add missing symlink hunk.
adilger [Fri, 18 Oct 2002 17:51:54 +0000 (17:51 +0000)]
Minor cleanup.
pschwan [Fri, 18 Oct 2002 17:40:06 +0000 (17:40 +0000)]
bdevname changed in 2.5
radhikav [Fri, 18 Oct 2002 16:30:15 +0000 (16:30 +0000)]
Updated the lctl manpage and Lustre How-To.
adilger [Fri, 18 Oct 2002 07:40:21 +0000 (07:40 +0000)]
Show the size tha we were truncating too.
adilger [Fri, 18 Oct 2002 07:36:44 +0000 (07:36 +0000)]
Add some variables to the config scripts so they are easier to customize.
adilger [Fri, 18 Oct 2002 07:34:23 +0000 (07:34 +0000)]
Add a minor check to the punch call.
adilger [Fri, 18 Oct 2002 06:34:08 +0000 (06:34 +0000)]
Give a valid return code for the non-intent ll_unlink and ll_rmdir.
-ENOENT is what ext2_unlink uses, so it must be correct...
braam [Fri, 18 Oct 2002 05:11:14 +0000 (05:11 +0000)]
Amruts patch for building extN outside the source
braam [Fri, 18 Oct 2002 05:10:48 +0000 (05:10 +0000)]
Amrut's patch for building extN outside the source.
braam [Fri, 18 Oct 2002 05:00:26 +0000 (05:00 +0000)]
I believe this makefile change fixes the problems in the build outside
the source tree. Interestingly I did NOT need Amrut patches, but only
tested this for UML.
braam [Fri, 18 Oct 2002 04:32:25 +0000 (04:32 +0000)]
First check in of the new intent patch that protects d_it better.
Not much tested.
This one works against Red Hat 8.0 2.4.18-14 kernel sources.
pschwan [Fri, 18 Oct 2002 01:50:19 +0000 (01:50 +0000)]
- Modify ldlm_completion_ast to wake up when locks are cancelled as well as
granted
- Wake sleepers in ldlm_lock_destroy
adilger [Thu, 17 Oct 2002 23:51:54 +0000 (23:51 +0000)]
- Add a slab for allocating OSC lock handles - 16-byte handles are a waste
of 32-byte slab kmallocs.
- Rename a couple of the slabs to have an ll_ prefix for easy /proc/slabinfo
grepping.
adilger [Thu, 17 Oct 2002 23:30:51 +0000 (23:30 +0000)]
Don't store LOV EA data on mds_reint_create() for non-intent case - we
always do deferred object allocation now.
adilger [Thu, 17 Oct 2002 23:07:46 +0000 (23:07 +0000)]
Duh, repeat after me - compile before you commit.
adilger [Thu, 17 Oct 2002 23:04:58 +0000 (23:04 +0000)]
Fix merge error.
pschwan [Thu, 17 Oct 2002 22:45:02 +0000 (22:45 +0000)]
More debugging related to the portals/rpc weirdness.
pschwan [Thu, 17 Oct 2002 22:43:52 +0000 (22:43 +0000)]
Split ldlm_namespace_free into ldlm_namespace_free and _cleanup. Cleanup
will just discard all locks and resources.
This is not quite finished, because it needs to also wake up people who
were sleeping on these locks (and cause EIO or similar) before it can free
them.
pschwan [Thu, 17 Oct 2002 22:39:07 +0000 (22:39 +0000)]
Miscellaneous fixes:
- READLINK wasn't well represented in ll_lookup2, so failed readlinks would have
gone very poorly indeed.
- Remove #if 0s from ll_common_unlink; these were a temporary fix to
the "rmdir `pwd`" problem, which should no longer be necessary.
adilger [Thu, 17 Oct 2002 09:14:48 +0000 (09:14 +0000)]
- improved handling of errors returned from MDS intent operations.
- remove bogus setting of MDS reply body fields at client in ll_create_node
- always do deferred object creation with ll_create() for non-intent ops
adilger [Thu, 17 Oct 2002 09:09:25 +0000 (09:09 +0000)]
Minor optimization.
adilger [Thu, 17 Oct 2002 09:06:24 +0000 (09:06 +0000)]
Ensure that we get a valid rootino back to avoid polluting the inode hash.
adilger [Thu, 17 Oct 2002 08:35:22 +0000 (08:35 +0000)]
More pre-emtpive Changelog entries.