Whamcloud - gitweb
fs/lustre-release.git
22 years agoIgnore extN include files.
adilger [Thu, 9 May 2002 20:06:58 +0000 (20:06 +0000)]
Ignore extN include files.

22 years agoOne more extN ignore.
adilger [Thu, 9 May 2002 20:06:24 +0000 (20:06 +0000)]
One more extN ignore.

22 years agoAdd some more files to extN cvsignore.
adilger [Thu, 9 May 2002 20:05:55 +0000 (20:05 +0000)]
Add some more files to extN cvsignore.

22 years agoLanding the ldlm_testing branch; now the only difference is that the locking
pschwan [Thu, 9 May 2002 17:08:39 +0000 (17:08 +0000)]
Landing the ldlm_testing branch; now the only difference is that the locking
calls are #if 0ed out of the trunk's ll_file_read and ll_file_write

22 years agoAdd ext3 extended attributes patch to extN. This needed some massaging in
adilger [Wed, 8 May 2002 20:35:39 +0000 (20:35 +0000)]
Add ext3 extended attributes patch to extN.  This needed some massaging in
order to get it to fit with htree.  Note that the ext3 EA patch has been
stripped of all the syscall stuff to avoid intruding into the kernel too
much (we still need the VFS xattr methods, but those are really small.

22 years agoFix minor typo.
adilger [Wed, 8 May 2002 20:17:14 +0000 (20:17 +0000)]
Fix minor typo.

22 years agoAdd MDS filesystem methods for extN. For now they are identical to the
adilger [Wed, 8 May 2002 20:16:44 +0000 (20:16 +0000)]
Add MDS filesystem methods for extN.  For now they are identical to the
ext3 filesystem methods, but the fs_{get,set}_objid methods will change
to use EAs in extN.  We will probably also need to take additional blocks
for large directories into account when calculating the transaction size.

22 years agoAdd ext3 extended attributes patch. This does not include any of the EA
adilger [Wed, 8 May 2002 19:57:28 +0000 (19:57 +0000)]
Add ext3 extended attributes patch.  This does not include any of the EA
syscall interface code, nor the ACL code.

This _does_ require that the kernel sources be patched to add the xattr
VFS inode methods, but you do not actually need to rebuild the kernel before
using extN - the extra methods are defined in a struct declared by the extN
module so it has no problems if it has a different struct size.

22 years agoAdd extended attribute VFS methods to the inode operations struct, and a
adilger [Wed, 8 May 2002 19:52:03 +0000 (19:52 +0000)]
Add extended attribute VFS methods to the inode operations struct, and a
couple of other EA-related header files.

22 years agoFor some reason extN complains about "ntohl" not being exported, so rather
adilger [Wed, 8 May 2002 19:49:37 +0000 (19:49 +0000)]
For some reason extN complains about "ntohl" not being exported, so rather
than fix that I changed it to be "be32_to_cpu()" which is equivalent.  When
I get a chance I will look into this.

22 years agoRemove page.c from list of files (holdover from source Makefile.am)
adilger [Wed, 8 May 2002 07:07:43 +0000 (07:07 +0000)]
Remove page.c from list of files (holdover from source Makefile.am)
Split the EXPORT stuff from the main patch to allow it to fail silently
if that patch is already applied to the ext3 sources in the kernel.
Minor changes to htree patch to disable debugging output.

22 years agoIgnore extN files copied into tree from kernel.
adilger [Tue, 7 May 2002 23:47:42 +0000 (23:47 +0000)]
Ignore extN files copied into tree from kernel.
Add extN patches:
- ext3-ino_sb-macro.diff: abstracts access to u.ext3_{sb,i} because we do
  not have a u.extN_{sb,i} in the inode struct and we need to use u.generic.
  This patch is generic and could be included in the stock kernel (2.5 already
  has this abstraction)
- extN-ino_sb-fixup.diff: use the u.generic_{ip,sbp} pointer instead of extN,
  a few bits of cleanup from the above patch related to the hashed directory
  changes, and includes the extN_bread() export which we will no longer need
  to apply to the stock kernel.
- Makefile to do all of the conversion from ext3 to extN and such.

22 years agoWe don't actually use bulk_vec anywhere in ost_brw_read(), remove it.
adilger [Tue, 7 May 2002 07:29:58 +0000 (07:29 +0000)]
We don't actually use bulk_vec anywhere in ost_brw_read(), remove it.

22 years agoMinor change to niobuf variable name so it is consistent.
adilger [Mon, 6 May 2002 22:47:05 +0000 (22:47 +0000)]
Minor change to niobuf variable name so it is consistent.

22 years agoWMM
wmarcusm [Wed, 1 May 2002 21:30:59 +0000 (21:30 +0000)]
WMM
difftime() macro causing general protect faults when
type int is promoted to double.  Perhaps a gcc code
generation bug.

22 years agoFixed recovd deadlock
pschwan [Wed, 1 May 2002 17:10:59 +0000 (17:10 +0000)]
Fixed recovd deadlock

22 years agoAvoid cli_lock deadlock in ptlrpc_free_req
pschwan [Wed, 1 May 2002 15:44:11 +0000 (15:44 +0000)]
Avoid cli_lock deadlock in ptlrpc_free_req

22 years ago- added a 'dying' head to fix very bad bug in yesterday's request code
pschwan [Tue, 30 Apr 2002 22:08:05 +0000 (22:08 +0000)]
- added a 'dying' head to fix very bad bug in yesterday's request code
- removed request->rq_lock (never used)
- made a ptlrpc_thread structure, and a list of those in ptlrpc_service
- adapted service code to support multithreading
- removed service->srv_id (duplicated existing local_id)
- updated llecho

22 years agoFix OSC_DEVNO. It was set initially in the inferior environment variable
adilger [Tue, 30 Apr 2002 18:28:51 +0000 (18:28 +0000)]
Fix OSC_DEVNO.  It was set initially in the inferior environment variable
config method, but we can name devices now.  It is still convenient to
save this value to avoid having to get it for each test.  Maybe the
--thread and --device code can be changed to support device names directly
(if they don't already by virtue of using the same device setup code).

22 years agoFixup CFLAGS for building userspace test apps
pschwan [Tue, 30 Apr 2002 17:15:23 +0000 (17:15 +0000)]
Fixup CFLAGS for building userspace test apps

22 years agoCreate sparse files unless using one of the gzipped sizes. Waiting for
pschwan [Mon, 29 Apr 2002 22:20:00 +0000 (22:20 +0000)]
Create sparse files unless using one of the gzipped sizes.  Waiting for
6GB dd runs has lost all appeal.

22 years agoTrivial whitespace, struct, etc changes to bring the ldlm_testing branch more in
pschwan [Mon, 29 Apr 2002 22:04:40 +0000 (22:04 +0000)]
Trivial whitespace, struct, etc changes to bring the ldlm_testing branch more in
line with the trunk.

22 years agoremoved srv_ev from ptlrpc_service and put it on the service thread's stack
pschwan [Mon, 29 Apr 2002 21:54:30 +0000 (21:54 +0000)]
removed srv_ev from ptlrpc_service and put it on the service thread's stack

22 years ago- and here are the new files with the previous commit
braam [Mon, 29 Apr 2002 20:40:12 +0000 (20:40 +0000)]
- and here are the new files with the previous commit

22 years ago- see message on previous commit.
braam [Mon, 29 Apr 2002 20:36:57 +0000 (20:36 +0000)]
- see message on previous commit.

22 years ago- documentation update for MDS recovery
braam [Mon, 29 Apr 2002 20:36:26 +0000 (20:36 +0000)]
- documentation update for MDS recovery
- remove unused MGR_ constants
- remove rpc fallout from Andreas mergers
- add last committed updates to close/reint
- add handling of last committed to client file system
- add replay handling for recovery to client fs & rpc
- mark requests as completed and committed on the client to
  be agnostic of the ordering of these events
- state machine for recovd - basics in place
- last_committed and last_received moved in the lustre_msg from body
- client cleanup is call when system cleans up
- set transaction numbers properly on MDS
- mds_connect call completed
- obd interface for high availability new connection announcements

22 years agodefault is not relevant and leads to errors on all calls.
braam [Mon, 29 Apr 2002 15:25:48 +0000 (15:25 +0000)]
default is not relevant and leads to errors on all calls.

22 years ago- small 64-bit warning fix
pschwan [Sun, 28 Apr 2002 19:53:31 +0000 (19:53 +0000)]
- small 64-bit warning fix
- removed namespace creation from OSC--it's fixed in the branch and doesn't
  belong there anyways.

22 years agoUpdate llext3.sh and llrext3.sh scripts to use new config files. This
adilger [Sat, 27 Apr 2002 08:41:47 +0000 (08:41 +0000)]
Update llext3.sh and llrext3.sh scripts to use new config files.  This
reduces these scripts to basically llsetup.sh using some .cfg files.

22 years agoSend last_rcvd values around when talking to the MDS. The MDC gets the
adilger [Sat, 27 Apr 2002 08:33:54 +0000 (08:33 +0000)]
Send last_rcvd values around when talking to the MDS.  The MDC gets the
last_{rcvd,committed,xid} values on mdc_connect, but doesn't yet do
anything with this new data except print it to the debug logs.

A select number of MDS operations get last_{rcvd,committed} values sent
in the reply (mds_body) - create, getattr, open.  It is not totally
clear to me how to add in the mds_body to an RPC reply if it doesn't
already exist, so there is a little more work to do there.

At connect and reint time, client "UUIDs" are looked up and handled
appropriately for new and existing clients.  Currently, since the
RPCs don't actually contain any UUID values, all updates go to UUID "",
which is enough for testing, and should "just work" when UUIDs appear.

22 years agoAdd a helper function to abstract the actual location of the UUID, to
adilger [Sat, 27 Apr 2002 08:22:03 +0000 (08:22 +0000)]
Add a helper function to abstract the actual location of the UUID, to
avoid the need for changes when UUIDs move around.

22 years agoRemove redundant inode parameter from mds_fs_journal_data().
adilger [Sat, 27 Apr 2002 00:20:46 +0000 (00:20 +0000)]
Remove redundant inode parameter from mds_fs_journal_data().

22 years agoAdd lustre_fsync() helper function.
adilger [Sat, 27 Apr 2002 00:17:13 +0000 (00:17 +0000)]
Add lustre_fsync() helper function.

22 years agoAdd last_committed, last_rcvd, and last_xid to the RPC mds_body.
adilger [Sat, 27 Apr 2002 00:16:14 +0000 (00:16 +0000)]
Add last_committed, last_rcvd, and last_xid to the RPC mds_body.

22 years agoUpdate journal callback patch so that we can tell if it is applied.
adilger [Fri, 26 Apr 2002 15:59:27 +0000 (15:59 +0000)]
Update journal callback patch so that we can tell if it is applied.

22 years agoAdd support for JBD journal callbacks to update MDS last_committed value.
adilger [Fri, 26 Apr 2002 15:57:30 +0000 (15:57 +0000)]
Add support for JBD journal callbacks to update MDS last_committed value.
This needs the most recent kernel patch in order to work properly.  If
the kernel patch isn't applied, you will get a message like:

"no journal callback kernel patch, faking it..."

Likewise, ext2 has "fake" support for commit callbacks.

22 years agoAdd callbacks from the JBD (journal) to allow async notification of when
adilger [Wed, 24 Apr 2002 21:09:30 +0000 (21:09 +0000)]
Add callbacks from the JBD (journal) to allow async notification of when
a handle has been committed to disk.

22 years agoAdd client RPC xid to per-client last_rcvd data. If the MDS dies but the
adilger [Wed, 24 Apr 2002 20:16:19 +0000 (20:16 +0000)]
Add client RPC xid to per-client last_rcvd data.  If the MDS dies but the
client lives, the on-disk xid tells the client which operations the MDS
has completed, even if the client never got a reply (hence no last_rcvd #).

22 years agoCode to update the last_rcvd file within a transaction.
adilger [Wed, 24 Apr 2002 20:03:54 +0000 (20:03 +0000)]
Code to update the last_rcvd file within a transaction.

22 years agoMinor fixups to avoid warnings on 64-bit platforms.
adilger [Wed, 24 Apr 2002 08:46:14 +0000 (08:46 +0000)]
Minor fixups to avoid warnings on 64-bit platforms.

22 years agoNice change to the OBD_ALLOC and OBD_FREE macros - it prints the name of
adilger [Wed, 24 Apr 2002 08:34:15 +0000 (08:34 +0000)]
Nice change to the OBD_ALLOC and OBD_FREE macros - it prints the name of
the pointer which is being allocated or freed, to make debugging easier.

22 years agoThe code to read the last_rcvd file at MDS startup.
adilger [Wed, 24 Apr 2002 08:32:47 +0000 (08:32 +0000)]
The code to read the last_rcvd file at MDS startup.

22 years agoDon't print out bogus rootfid on error.
adilger [Wed, 24 Apr 2002 08:15:49 +0000 (08:15 +0000)]
Don't print out bogus rootfid on error.

22 years agoAdd llcleanup.sh script. This is the opposite of the llsetup.sh script,
adilger [Wed, 24 Apr 2002 06:31:47 +0000 (06:31 +0000)]
Add llcleanup.sh script.  This is the opposite of the llsetup.sh script,
and also needs a config file in order to work.  Some time soon when
network configuration is included, this will be able to do the network
cleanup, unlike the "llmountcleanup.sh" script.

22 years agoAdd in a bit of explanation to the config file documentation. Also added
adilger [Wed, 24 Apr 2002 06:29:55 +0000 (06:29 +0000)]
Add in a bit of explanation to the config file documentation.  Also added
some notes about the 'runtests' test.

22 years agoUpdate the new test configuration stuff to use the newly implemented obdctl
adilger [Wed, 24 Apr 2002 06:07:15 +0000 (06:07 +0000)]
Update the new test configuration stuff to use the newly implemented obdctl
features (newdev, name2dev FOO, and setup $FOO).  Also changed the "runtests"
script over to using the new configuration setup so that it is easier to run
with both ext2/ext3 MDS and obdext2/obdfilter OBDs.

22 years agoFixups to handle error recovery when we are out of memory. Some of them
adilger [Wed, 24 Apr 2002 06:00:47 +0000 (06:00 +0000)]
Fixups to handle error recovery when we are out of memory.  Some of them
need a bit closer inspection, but should be mostly correct.

22 years agoAllow obdctl to use "$OBDDEV" to resolve a device number in setup.
adilger [Wed, 24 Apr 2002 05:56:16 +0000 (05:56 +0000)]
Allow obdctl to use "$OBDDEV" to resolve a device number in setup.

This required changing the NAME2DEV ioctl so that it didn't change the
currently selected device when it was resolving a name.  Now the NAME2DEV
ioctl only resolves the name, and obdctl selects the returned device
explicitly (to user-space the "name2dev" command works exactly the same).

Cleaned up setup scripts to remove last vestiges of hard-coded device numbers.
Instead we use "setup $OBDDEV" (note that the '$' must be escaped from the
shell if using it in a shell script).

22 years agoAdded nesting of journaled operations to last_rcvd file. Currently has a
adilger [Wed, 24 Apr 2002 01:16:55 +0000 (01:16 +0000)]
Added nesting of journaled operations to last_rcvd file.  Currently has a
no-op for the last_rcvd update.

22 years agoOnly set up the MDS service after the filesystem-specific stuff is set up.
adilger [Wed, 24 Apr 2002 00:50:51 +0000 (00:50 +0000)]
Only set up the MDS service after the filesystem-specific stuff is set up.
Still working towards my broken tree - haven't hit the problem yet.

22 years agoSmall start to committing MDS changes. Testing/committing in separate tree
adilger [Tue, 23 Apr 2002 22:03:30 +0000 (22:03 +0000)]
Small start to committing MDS changes.  Testing/committing in separate tree
to ensure they are not the cause of my problems.  This one just adds new
fields into the MDS structs (no functional change).

22 years agoChange llext3.sh and llrmount.sh to use obdfilter, so that mount/remount
adilger [Tue, 23 Apr 2002 21:44:42 +0000 (21:44 +0000)]
Change llext3.sh and llrmount.sh to use obdfilter, so that mount/remount
will work properly.  Fixes "fatal - invalid inode" bug Peter reported.

22 years agoCommit minor cleanups to reduce size of outstanding changes in my tree.
adilger [Tue, 23 Apr 2002 21:33:05 +0000 (21:33 +0000)]
Commit minor cleanups to reduce size of outstanding changes in my tree.

22 years agoMore changes to OBDDEV so that cleanup works properly.
adilger [Tue, 23 Apr 2002 21:26:12 +0000 (21:26 +0000)]
More changes to OBDDEV so that cleanup works properly.

22 years agoAnother change to OBDDEV so that cleanup works properly.
adilger [Tue, 23 Apr 2002 21:18:49 +0000 (21:18 +0000)]
Another change to OBDDEV so that cleanup works properly.

22 years agoUse debugging macros to aid in tracing.
adilger [Tue, 23 Apr 2002 20:57:36 +0000 (20:57 +0000)]
Use debugging macros to aid in tracing.

22 years agoRemove extraneous RSH_MDS from elan-server.cfg.
adilger [Tue, 23 Apr 2002 20:55:19 +0000 (20:55 +0000)]
Remove extraneous RSH_MDS from elan-server.cfg.
Use OBDDEV for llext3.sh setup script, so cleanup works.

22 years agoFix symlinks when building a new tree outside the source tree.
adilger [Tue, 23 Apr 2002 20:30:30 +0000 (20:30 +0000)]
Fix symlinks when building a new tree outside the source tree.

22 years ago- newdev feature in obdctl
braam [Tue, 23 Apr 2002 19:23:24 +0000 (19:23 +0000)]
- newdev feature in obdctl

22 years agoDescription how to run the tests
braam [Tue, 23 Apr 2002 18:52:46 +0000 (18:52 +0000)]
Description how to run the tests

22 years agoMissed one of the "OBDDEV" changes to allow common cleanup in llecho.sh.
adilger [Tue, 23 Apr 2002 07:37:38 +0000 (07:37 +0000)]
Missed one of the "OBDDEV" changes to allow common cleanup in llecho.sh.

22 years agoCleanup - avoid extraneous indirection in ost_brw_write_cb().
adilger [Tue, 23 Apr 2002 07:36:15 +0000 (07:36 +0000)]
Cleanup - avoid extraneous indirection in ost_brw_write_cb().

22 years agoMinor cleanups, get ready to make statfs not complain.
adilger [Tue, 23 Apr 2002 07:33:49 +0000 (07:33 +0000)]
Minor cleanups, get ready to make statfs not complain.

22 years agoAdd in UUID fields.
adilger [Tue, 23 Apr 2002 07:33:04 +0000 (07:33 +0000)]
Add in UUID fields.

22 years agoAdd a couple of helper functions to get ll data from a superblock.
adilger [Tue, 23 Apr 2002 07:30:13 +0000 (07:30 +0000)]
Add a couple of helper functions to get ll data from a superblock.

22 years agoUpdate scripts to use name2dev.
adilger [Tue, 23 Apr 2002 07:28:39 +0000 (07:28 +0000)]
Update scripts to use name2dev.
For OST devices, use "OBDDEV" for all types (ext2obd,filterobd,echo) so that
you can clean them all up the same way.

22 years agoClean and restart up before running the removal test.
adilger [Tue, 23 Apr 2002 07:21:40 +0000 (07:21 +0000)]
Clean and restart up before running the removal test.

22 years agoUse underscores instead of dashes in device environment variables.
adilger [Tue, 23 Apr 2002 07:20:35 +0000 (07:20 +0000)]
Use underscores instead of dashes in device environment variables.

22 years agoReturn an error from simple_mkdir() if the target exists and isn't a directory.
adilger [Tue, 23 Apr 2002 07:15:49 +0000 (07:15 +0000)]
Return an error from simple_mkdir() if the target exists and isn't a directory.

22 years agoClear the current device in the filehandle if name2dev fails.
adilger [Tue, 23 Apr 2002 07:14:51 +0000 (07:14 +0000)]
Clear the current device in the filehandle if name2dev fails.

22 years ago64-bit warning fixes. Someone should take a closer look at ext2_obd.c
pschwan [Mon, 22 Apr 2002 22:06:42 +0000 (22:06 +0000)]
64-bit warning fixes.  Someone should take a closer look at ext2_obd.c

22 years agoCosmetic cleanup.
adilger [Mon, 22 Apr 2002 18:26:50 +0000 (18:26 +0000)]
Cosmetic cleanup.

22 years agoOnly put the ldlm connection if we are not connected locally.
adilger [Mon, 22 Apr 2002 18:18:28 +0000 (18:18 +0000)]
Only put the ldlm connection if we are not connected locally.

22 years agoAdd mds_fs_journal_data() method to enable data journaling on last_rcvd file.
adilger [Mon, 22 Apr 2002 18:15:42 +0000 (18:15 +0000)]
Add mds_fs_journal_data() method to enable data journaling on last_rcvd file.

22 years agoFix minor error in error checking.
adilger [Mon, 22 Apr 2002 18:12:37 +0000 (18:12 +0000)]
Fix minor error in error checking.

22 years agoFix MDS dir truncation bug.
adilger [Mon, 22 Apr 2002 18:11:30 +0000 (18:11 +0000)]
Fix MDS dir truncation bug.

22 years ago- minor further changes to the test script:
braam [Mon, 22 Apr 2002 17:34:25 +0000 (17:34 +0000)]
- minor further changes to the test script:
 - add a fail function to common.sh to notify user that umount failed

- give all attaches a name.
- clean up llmountcleanup.sh with name2dev
- remove debugging printouts from obdctl

22 years ago- small changes to name2dev:
braam [Mon, 22 Apr 2002 16:51:27 +0000 (16:51 +0000)]
- small changes to name2dev:
  Usage:
    obdctl > attach osc THEOSC
    obdctl > quit
    mount -t lustre_lite -o device=`obdctl name2dev THEOSC` none /mnt/lustre

- free a tiny leak
- temporary fix to runfailure-net
- also add to obdctl the setting of an environment variable when
  setting the name of a device.  Not clear yet if this is useful.

22 years ago- fix mds_connect memory leak
braam [Mon, 22 Apr 2002 06:56:45 +0000 (06:56 +0000)]
- fix mds_connect memory leak
- install name parameter for jt_attach in obdctl
- add name2dev feature to find device by name

22 years ago- rename ha_mgr to recovd
braam [Mon, 22 Apr 2002 05:57:35 +0000 (05:57 +0000)]
- rename ha_mgr to recovd
- rename connmgr_obd to recovd_obd
- pack fids as part of body_pack/body_unpack
- do body_pack/unpack for both requests and replies
- clean up 3 different groups of constants:
 - PTL_RPC_MSG_ERR/REQUEST -- into _idl: part of lustre_msg
 - PTL_RPC_FL_{TIMEOUT,REPLY...,} -- bitmask part of request->rq_flags
      will control the state machine for recovery somewhat
 - PTL_RPC_TYPE_REQUEST/REPLY -- request->rq_type:
      to determine what kind of packet is being sent
- ptlrpc_error: set the msg type field to an error message, otherwise
  the reply body is accidentally unpacked
- add a c_level field to the connection: the level will control what
  RPC's will go out during recovery and which ones are held up until
  recovery completes. This will be compared with an rq_level field
  (still to be added).
- mdc_connect further finished:
 - it gets the fid of ROOT on the MDS and
 - llite/super.c now uses that as the root inode. Didn't see major
   havoc.
 - the mds has a mds_rootfid field accordingly. This is set in
   mds_prep.

22 years agoInitialize ldlm_resources at allocation time instead of at ldlm_setup()
adilger [Thu, 18 Apr 2002 21:19:57 +0000 (21:19 +0000)]
Initialize ldlm_resources at allocation time instead of at ldlm_setup()
time, so we don't oops if ldlm_setup has not been called yet.

22 years agoIt is pretty important that Lustre knows when the DLM for a given service is
pschwan [Thu, 18 Apr 2002 16:54:00 +0000 (16:54 +0000)]
It is pretty important that Lustre knows when the DLM for a given service is
running on the local machine.

22 years agoUse a new ptlrpc_client->cli_lock to protect the cli lists.
pschwan [Thu, 18 Apr 2002 04:11:27 +0000 (04:11 +0000)]
Use a new ptlrpc_client->cli_lock to protect the cli lists.

22 years ago- fixed some warnings in the DLM
pschwan [Thu, 18 Apr 2002 03:00:36 +0000 (03:00 +0000)]
- fixed some warnings in the DLM
- fixed the connection reference leak when bulk is used
- fixed, I hope, a race condition with the HA lists that was corrupting memory

22 years agoThe more controversial changes, although my tree finally works:
pschwan [Wed, 17 Apr 2002 17:49:27 +0000 (17:49 +0000)]
The more controversial changes, although my tree finally works:

- if the enqueue_lock RPC doesn't return an immediately granted lock, go to
  sleep
- when the callback RPC is received, wake that process up
- LBUG if we try to free a lock that still has children
- set the completion_ast at the end of local_lock_enqueue, to avoid doing a
  spurious RPC in the case of an immediately granted lock
- removed ldlm_server_conn, in favour of using the MDS/OST connections that
  already exist.
- don't do remote locking RPCs if the lock is managed locally
- fixed some osc_setup error cases
- create a namespace at mount time

22 years agoThe noncontroversial portion of the last few days of changes:
pschwan [Wed, 17 Apr 2002 17:39:07 +0000 (17:39 +0000)]
The noncontroversial portion of the last few days of changes:

- ENTRY/EXIT/RETURN cleanups
- extraneous header file removal
- made forgetting the 'setup' arguments in MDS/OST less fatal
- added the connection and token to the CONNECT RPC, so that we can do the
  pointer/token connection trick now
- fixed the 60 byte/-60 byte "leak"
- added ptlrpc and ldlm setup to llmount.sh, llrmount.sh, -client, and -server

22 years agoAdd mount_count file to hold the current MDS generation number. Note that
adilger [Tue, 16 Apr 2002 07:22:49 +0000 (07:22 +0000)]
Add mount_count file to hold the current MDS generation number.  Note that
you cannot read this file from userspace, because it will (mistakenly) think
that this file lives on the OST and LBUG if that inode isn't allocated, or
you will get garbage data.  The kernel code has no problem reading it, of
course.  This LBUG will go away with EAs and/or when we start mounting the
ROOT directory, at which point you will not be able to read the file at all.

22 years agoOpen/create the last_rcvd file for MDS at filesystem mount time and close it
adilger [Mon, 15 Apr 2002 22:29:36 +0000 (22:29 +0000)]
Open/create the last_rcvd file for MDS at filesystem mount time and close it
when we unmount the filesystem.  Also check error returns from mkdir on FH
and ROOT directories (ignore EEXIST only).

22 years agoFix up thread exit status. It _should_ be returning 0 from WIFEXITED() when
adilger [Mon, 15 Apr 2002 21:12:49 +0000 (21:12 +0000)]
Fix up thread exit status.  It _should_ be returning 0 from WIFEXITED() when
there was an error (well, according to the wait(2) man page), but instead it
appears to just tell is if this PID has exited or not.

22 years agotests/Makefile.am: remove ldaptest.c from build list, it doesn't build
adilger [Mon, 15 Apr 2002 21:10:02 +0000 (21:10 +0000)]
tests/Makefile.am: remove ldaptest.c from build list, it doesn't build
tests/*.sh: add ptlrpc setup to config scripts
tests/runtests: use "sh ll*.sh" in case the script isn't executable

22 years agoGrab the inode semaphore per VFS locking rules in the MDS reint path.
adilger [Mon, 15 Apr 2002 20:12:17 +0000 (20:12 +0000)]
Grab the inode semaphore per VFS locking rules in the MDS reint path.

22 years agoOptimize write-full-page so that we don't read in a page full of data we
adilger [Mon, 15 Apr 2002 19:51:09 +0000 (19:51 +0000)]
Optimize write-full-page so that we don't read in a page full of data we
are not going to use.  This should speed up the rewrite tests in iozone.

Split the lustre_get_page() into two functions - lustre_get_page_read()
and lustre_get_page_write().  The first one reads in the page, and the
second one just gets the page locked but without any data.

22 years ago- new file
braam [Mon, 15 Apr 2002 18:50:01 +0000 (18:50 +0000)]
- new file

22 years ago- added, may prove useful as the first 20 lines of code.
braam [Mon, 15 Apr 2002 17:59:46 +0000 (17:59 +0000)]
- added, may prove useful as the first 20 lines of code.

22 years agoFixed build break
pschwan [Mon, 15 Apr 2002 16:34:45 +0000 (16:34 +0000)]
Fixed build break

22 years agoFixed build break
pschwan [Mon, 15 Apr 2002 16:33:15 +0000 (16:33 +0000)]
Fixed build break

22 years agoWARNING - if an RPC times out you will crash older UML's.
braam [Mon, 15 Apr 2002 08:13:59 +0000 (08:13 +0000)]
WARNING - if an RPC times out you will crash older UML's.

Update your user mode linux to the 2.4.18 um15 + extra patch
  take source from ftp.lustre.org:/pub/people/robert
[call_usermode_helper has a bug in older versions of UML]

- new infrastructure for MDS failover recovery
  - recovd replaces the ha daemon. Now located in RPC directory
  - this comes with a service daemon to answer connect calls
  - wrapped it in an obd, for management purposes, and to be able
    to run multiple daemons on one system eventually
- commit callback daemon added to the lustre_lite directory
- removed small amounts of dead code from the rpc directory
- this code has seen little testing
- added the configuration management section to the master document

22 years agoPopulate 'peer' before using it.
pschwan [Mon, 15 Apr 2002 07:10:37 +0000 (07:10 +0000)]
Populate 'peer' before using it.

22 years agoFixed some thinkos in the remote connection/token stuff. Fixed a typo in the
pschwan [Mon, 15 Apr 2002 05:44:51 +0000 (05:44 +0000)]
Fixed some thinkos in the remote connection/token stuff.  Fixed a typo in the
previous lock init fix.

22 years agoptlrpc_client->cli_lock moved to ptlrpc_connection->c_lock, but I'd forgotten
pschwan [Mon, 15 Apr 2002 05:14:38 +0000 (05:14 +0000)]
ptlrpc_client->cli_lock moved to ptlrpc_connection->c_lock, but I'd forgotten
to move the spin_lock_init().  Fixed.