Whamcloud - gitweb
fs/lustre-release.git
21 years agoDon't just delete the generated PDF.
gord-fig [Thu, 29 Aug 2002 03:29:58 +0000 (03:29 +0000)]
Don't just delete the generated PDF.

21 years agoOnly overwrite the magics, not the entire page to avoid excess CPU usage.
adilger [Thu, 29 Aug 2002 01:18:27 +0000 (01:18 +0000)]
Only overwrite the magics, not the entire page to avoid excess CPU usage.

21 years agoInstall and distribute lconf and lmc.
gord-fig [Thu, 29 Aug 2002 01:08:47 +0000 (01:08 +0000)]
Install and distribute lconf and lmc.

21 years agoUse a less evil port number.
adilger [Thu, 29 Aug 2002 01:03:01 +0000 (01:03 +0000)]
Use a less evil port number.

21 years agoExit from XML configs if there is an error.
adilger [Thu, 29 Aug 2002 01:02:22 +0000 (01:02 +0000)]
Exit from XML configs if there is an error.

21 years agoUse port 988 instead of 888.
adilger [Thu, 29 Aug 2002 01:01:07 +0000 (01:01 +0000)]
Use port 988 instead of 888.

21 years agoTry and work with different versions of dbench.
adilger [Thu, 29 Aug 2002 01:00:41 +0000 (01:00 +0000)]
Try and work with different versions of dbench.

21 years agoAdd dcount assertions in obdfilter to catch any funny business (still
adilger [Thu, 29 Aug 2002 00:59:08 +0000 (00:59 +0000)]
Add dcount assertions in obdfilter to catch any funny business (still
open-unlink problems).

Only try to get a cache page if we already have a locked page.  This
is not Peter's "ignore page locks" code yet, but it's what I have in
my tree already and want to flush so I can test at LLNL.

21 years agoZap test_brw/obdecho pages we are going to read into, to ensure that we
adilger [Thu, 29 Aug 2002 00:51:54 +0000 (00:51 +0000)]
Zap test_brw/obdecho pages we are going to read into, to ensure that we
actually are getting new data therein, instead of old data.

Fix a kunmap imbalance for the non-verify case.

21 years agoAdd statfs method to LOV.
adilger [Thu, 29 Aug 2002 00:38:34 +0000 (00:38 +0000)]
Add statfs method to LOV.
Try to get valid data for getattr, if first objid fails.
Extract block count and mtime/ctime information from all objects.

21 years agoUse o_brw instead of o_getattr to distinguish between MDC and OSC operations.
adilger [Thu, 29 Aug 2002 00:35:15 +0000 (00:35 +0000)]
Use o_brw instead of o_getattr to distinguish between MDC and OSC operations.
If we ever make MDC use the OBD methods it would break.

21 years agoWe already set last_committed and last_xid for all packets, no need to do
adilger [Wed, 28 Aug 2002 23:50:06 +0000 (23:50 +0000)]
We already set last_committed and last_xid for all packets, no need to do
this for getstatus explicitly.

Store an xid in last_xid and not last_rcvd for reply packets.  Mike please
verify this.  I think it will help resolve strangeness I have observed in
the cleanup of expired requests on the clients, but that still needs some
investigation.

Add a spinlock to protect 64-bit increment of mds_last_rcvd, and also
make sure we only use each transaction value a single time.  This
would probably be a very rare issue for recovery, but may as well get
it now.

21 years agoRemove obsolete code from mds_ext3.c.
adilger [Wed, 28 Aug 2002 22:32:32 +0000 (22:32 +0000)]
Remove obsolete code from mds_ext3.c.

21 years agoWe get 64-bit xids over the wire, so we should store 64 bits on disk.
adilger [Wed, 28 Aug 2002 21:34:42 +0000 (21:34 +0000)]
We get 64-bit xids over the wire, so we should store 64 bits on disk.

21 years ago* Don't oops when destroying an export that doesn't have a connection.
shaver [Wed, 28 Aug 2002 15:27:04 +0000 (15:27 +0000)]
* Don't oops when destroying an export that doesn't have a connection.
  (I'm not sure this should happen, but it is, and this'll keep us from
  OOPSing on SMP boxes until I dig deeper.)

21 years ago* llrmount.sh now uses lconf
rread [Wed, 28 Aug 2002 02:36:56 +0000 (02:36 +0000)]
* llrmount.sh now uses lconf
* enabled lconf --reformat
* disabled the <autoformat> feature until I figure out how to
  determine if a block device actually has an fs or not

21 years ago* llecho.sh reimplemnted to use lmc/lconf
rread [Wed, 28 Aug 2002 01:19:35 +0000 (01:19 +0000)]
* llecho.sh reimplemnted to use lmc/lconf
* llechocleanup.sh added for completeness
* small changes to tools to support llecho.sh

21 years ago- allow the --ost command to have no arguments when used for obdecho
rread [Wed, 28 Aug 2002 00:39:24 +0000 (00:39 +0000)]
- allow the --ost command to have no arguments when used for obdecho

21 years ago- add support for obdecho. When creating the ost with lmc, add
rread [Wed, 28 Aug 2002 00:37:27 +0000 (00:37 +0000)]
- add support for obdecho. When creating the ost with lmc, add
  --obdtype=obdecho

21 years ago- replace llmount and llmountcleanup with versions that use lconf.
rread [Tue, 27 Aug 2002 23:59:29 +0000 (23:59 +0000)]
- replace llmount and llmountcleanup with versions that use lconf.
- remove old xml files

21 years agoAdd chaos13 patch from Andreas.
gord-fig [Tue, 27 Aug 2002 21:19:47 +0000 (21:19 +0000)]
Add chaos13 patch from Andreas.

21 years agoRevert error handling case - jumpling to out_unlink_cancel, which would seem
adilger [Tue, 27 Aug 2002 20:32:57 +0000 (20:32 +0000)]
Revert error handling case - jumpling to out_unlink_cancel, which would seem
to be the obvious thing to do given that we are supposed to have a lock on
this file at this point, causes an oops in ldlm_lock_decref() because the
lock is NULL.

21 years ago* Added test_brw to .cvsignore.
shaver [Tue, 27 Aug 2002 18:52:41 +0000 (18:52 +0000)]
* Added test_brw to .cvsignore.

21 years agoAdd missing header for lov_packmd() definition.
adilger [Tue, 27 Aug 2002 18:31:19 +0000 (18:31 +0000)]
Add missing header for lov_packmd() definition.

21 years agoRemove some old code now that we have the EOF lock.
adilger [Tue, 27 Aug 2002 06:30:25 +0000 (06:30 +0000)]
Remove some old code now that we have the EOF lock.
Extract the mtime and ctime from the obdo returned by punch.

21 years agoWhenever we get the file size from the OST, also get the blocks count at
adilger [Tue, 27 Aug 2002 06:25:29 +0000 (06:25 +0000)]
Whenever we get the file size from the OST, also get the blocks count at
the same time, since this is free.

21 years agoDon't copy the objid to/from the inode. There is nowhere that we use these
adilger [Tue, 27 Aug 2002 06:22:24 +0000 (06:22 +0000)]
Don't copy the objid to/from the inode.  There is nowhere that we use these
functions that we want that to happen.

21 years ago- more careful error checking
rread [Mon, 26 Aug 2002 23:44:36 +0000 (23:44 +0000)]
- more careful error checking

21 years agoMake symlinks actually work:
adilger [Mon, 26 Aug 2002 23:22:47 +0000 (23:22 +0000)]
Make symlinks actually work:
all - leave room for trailing NUL, for simplicity
mds_getattr_internal - check reqbody->valid instead of repbody->valid
ll_symlink - use lli_open_sem to protect lli_symlink_name allocation/data

21 years agofatal error if unable to determine local address
rread [Mon, 26 Aug 2002 22:24:35 +0000 (22:24 +0000)]
fatal error if unable to determine local address

21 years ago- use python 1.5.x version of exception
rread [Mon, 26 Aug 2002 22:16:19 +0000 (22:16 +0000)]
- use python 1.5.x version of exception

21 years ago- use python 1.5.x version of getopt exception
rread [Mon, 26 Aug 2002 22:15:31 +0000 (22:15 +0000)]
- use python 1.5.x version of getopt exception

21 years agoA network address of '*' will cause lconf to determine the local network
rread [Mon, 26 Aug 2002 22:11:32 +0000 (22:11 +0000)]
A network address of '*' will cause lconf to determine the local network
address automatically.  This may need some tweaking to support multiple
interfaces.

21 years agoRemove ugliness.
adilger [Mon, 26 Aug 2002 20:19:53 +0000 (20:19 +0000)]
Remove ugliness.

21 years agoRemove dead functions.
adilger [Mon, 26 Aug 2002 20:19:12 +0000 (20:19 +0000)]
Remove dead functions.
Fix major thinko in filter_setattr - we were checking ia_mode instead of
ia_valid to see whether we were truncating, so were not doing proper inode
locking or returning valid data.

21 years agoAllow unlinking non-regular files.
adilger [Mon, 26 Aug 2002 20:08:14 +0000 (20:08 +0000)]
Allow unlinking non-regular files.
Drop a lock handle when trying to unlink a file which does not exist.

21 years agoMore of the symlink story - extract the link target _after_ inode2body,
adilger [Mon, 26 Aug 2002 20:06:25 +0000 (20:06 +0000)]
More of the symlink story - extract the link target _after_ inode2body,
or we overwrite the OBD_MD_LINKNAME flag.

21 years agoFix minor typo in debug output.
adilger [Mon, 26 Aug 2002 20:04:56 +0000 (20:04 +0000)]
Fix minor typo in debug output.

21 years agoAdd l_dput assertion.
adilger [Mon, 26 Aug 2002 18:12:44 +0000 (18:12 +0000)]
Add l_dput assertion.

21 years ago* Move recovery state into connection from client, and fallout therefrom.
shaver [Mon, 26 Aug 2002 17:36:18 +0000 (17:36 +0000)]
* Move recovery state into connection from client, and fallout therefrom.

21 years agob=596505
pschwan [Mon, 26 Aug 2002 17:08:31 +0000 (17:08 +0000)]
b=596505
Finish the last oustanding EOF-lock related items.  Specifically:
- ll_file_write now handles O_APPEND correctly
- ll_truncate takes a PW lock across truncation
- ll_file_seek added (based on generic_file_llseek), does an i_size refresh

21 years agoMore security architecture. Perhaps we are done for the ARCH1, but I
braam [Mon, 26 Aug 2002 03:49:51 +0000 (03:49 +0000)]
More security architecture.  Perhaps we are done for the ARCH1, but I
suspect a bit of feedback will emerge.

21 years agoFix read-of-empty-page problem. Also avoid extraneous memset for cases
adilger [Fri, 23 Aug 2002 22:41:45 +0000 (22:41 +0000)]
Fix read-of-empty-page problem.  Also avoid extraneous memset for cases
where we are over{writing,reading} the entire page.

21 years agoMake all of the obdo<->inode and obdo<->iattr copy routines take a valid
adilger [Fri, 23 Aug 2002 21:50:09 +0000 (21:50 +0000)]
Make all of the obdo<->inode and obdo<->iattr copy routines take a valid
flag as a parameter, to avoid copying fields into or out of the obdo/inode
that you don't want to copy, just because oa->o_valid is set.

When we do the ll_file_size call to the OST, return the blocks count at
the same time.

Remove some of the verbosity from the locked-page writeout case.  Real
fix is pending.

21 years agoFix another nasty bug in ll_common_unlink - we were always setting the
adilger [Fri, 23 Aug 2002 21:35:30 +0000 (21:35 +0000)]
Fix another nasty bug in ll_common_unlink - we were always setting the
inode link count to zero, instead of just decrementing it.

Use a common name for ll_inode_info variables for clarity.

21 years agoReduce number of over-the-wire getattrs by half, and avoid duplicate
adilger [Fri, 23 Aug 2002 21:23:23 +0000 (21:23 +0000)]
Reduce number of over-the-wire getattrs by half, and avoid duplicate
inodes for every file operation.  This doesn't fix the dentry refcount
problem, but it is a big step in the right direction.

21 years agoFix minor typo - confusing when looking at the debug log, but not a bug.
adilger [Fri, 23 Aug 2002 09:44:55 +0000 (09:44 +0000)]
Fix minor typo - confusing when looking at the debug log, but not a bug.

21 years ago- Doh!
rread [Fri, 23 Aug 2002 06:25:01 +0000 (06:25 +0000)]
- Doh!

21 years ago- add lov_pack.c to llite
rread [Fri, 23 Aug 2002 01:41:16 +0000 (01:41 +0000)]
- add lov_pack.c to llite
- clean up ll_create_node for non-intent usage

21 years ago- cleanup output and enhance error reporting
rread [Fri, 23 Aug 2002 01:39:08 +0000 (01:39 +0000)]
- cleanup output and enhance error reporting
- change some options to be more consistent
- cleanup --help

21 years agoMinor cleanup.
adilger [Thu, 22 Aug 2002 23:10:42 +0000 (23:10 +0000)]
Minor cleanup.

21 years ago- fix false leak message
rread [Thu, 22 Aug 2002 22:47:25 +0000 (22:47 +0000)]
- fix false leak message

21 years ago- fix child wait
rread [Thu, 22 Aug 2002 22:31:51 +0000 (22:31 +0000)]
- fix child wait

21 years ago- fix insmod error message
rread [Thu, 22 Aug 2002 21:53:22 +0000 (21:53 +0000)]
- fix insmod error message

21 years ago- don't touch /proc/sys/portals/debug_path in noexec mode
rread [Thu, 22 Aug 2002 21:38:56 +0000 (21:38 +0000)]
- don't touch /proc/sys/portals/debug_path in noexec mode

21 years agoProperly quote command for tbox_absorb_log.
gord-fig [Thu, 22 Aug 2002 21:06:28 +0000 (21:06 +0000)]
Properly quote command for tbox_absorb_log.

21 years ago- cleanup remaining oa -> tmp brainos
rread [Thu, 22 Aug 2002 20:54:47 +0000 (20:54 +0000)]
- cleanup remaining oa -> tmp brainos

21 years agoMinor cleanups.
adilger [Thu, 22 Aug 2002 20:50:57 +0000 (20:50 +0000)]
Minor cleanups.

21 years ago- removed lock list from inode info
pschwan [Thu, 22 Aug 2002 20:46:29 +0000 (20:46 +0000)]
- removed lock list from inode info
- added a function to cleanup unused locks on a resource
- fixed readdir

21 years agoSimplify adding manual test results to Tinderbox.
gord-fig [Thu, 22 Aug 2002 20:32:12 +0000 (20:32 +0000)]
Simplify adding manual test results to Tinderbox.

21 years ago* Remove noisy lock-queue debugging spew.
shaver [Thu, 22 Aug 2002 20:23:24 +0000 (20:23 +0000)]
* Remove noisy lock-queue debugging spew.

21 years ago- more fixes..things work again.
braam [Thu, 22 Aug 2002 19:08:27 +0000 (19:08 +0000)]
- more fixes..things work again.

21 years ago- minor fixes trying to get the md right.
braam [Thu, 22 Aug 2002 18:58:20 +0000 (18:58 +0000)]
- minor fixes trying to get the md right.

21 years ago- stripe md fixes
rread [Thu, 22 Aug 2002 18:36:11 +0000 (18:36 +0000)]
- stripe md fixes

21 years agofixes for LOV -- CAREFUL this may break the tree...
braam [Thu, 22 Aug 2002 18:29:55 +0000 (18:29 +0000)]
fixes for LOV -- CAREFUL this may break the tree...

21 years ago- always create the gdb script
rread [Thu, 22 Aug 2002 18:06:33 +0000 (18:06 +0000)]
- always create the gdb script

21 years agoMove obd_getattr from ll_lookup2 to ll_read_inode2
pschwan [Thu, 22 Aug 2002 15:16:10 +0000 (15:16 +0000)]
Move obd_getattr from ll_lookup2 to ll_read_inode2

21 years agotest_brw/echo: verify == (objid != 0), highmem == (objid & 1), test default objid...
eeb [Thu, 22 Aug 2002 13:34:20 +0000 (13:34 +0000)]
test_brw/echo: verify == (objid != 0), highmem == (objid & 1), test default objid == 3

21 years ago* Chain granted locks off the export.
shaver [Thu, 22 Aug 2002 13:30:11 +0000 (13:30 +0000)]
* Chain granted locks off the export.

21 years agominor but important lov bug fixes Robert and I found out about.
braam [Thu, 22 Aug 2002 06:04:36 +0000 (06:04 +0000)]
minor but important lov bug fixes Robert and I found out about.

21 years ago- fix sending wrong attributes... Are there more of these?
braam [Thu, 22 Aug 2002 05:00:39 +0000 (05:00 +0000)]
- fix sending wrong attributes... Are there more of these?

21 years ago- abstracted some parts of ll_size into ll_size_lock and ll_size_unlock
pschwan [Thu, 22 Aug 2002 04:56:24 +0000 (04:56 +0000)]
- abstracted some parts of ll_size into ll_size_lock and ll_size_unlock
- added file size locking around the mds_setattr in ll_file_release

21 years agoin getattr requests, get the authoritative file size from the OST
pschwan [Wed, 21 Aug 2002 23:52:51 +0000 (23:52 +0000)]
in getattr requests, get the authoritative file size from the OST

21 years agoChange lov.xml file a little so that it works with localhost.
braam [Wed, 21 Aug 2002 22:36:29 +0000 (22:36 +0000)]
Change lov.xml file a little so that it works with localhost.
Remove the namespace locks from ll_file_release. Basic parallel I/O
now works, it seems.

21 years agoAdd target data for symlinks to intent.
adilger [Wed, 21 Aug 2002 22:25:14 +0000 (22:25 +0000)]
Add target data for symlinks to intent.

21 years agoFix symlink creation a bit more.
adilger [Wed, 21 Aug 2002 22:24:21 +0000 (22:24 +0000)]
Fix symlink creation a bit more.
Fix ll_create() error handling (at least it won't oops).

21 years agooptional highmem buffers in obdecho/test_brw
eeb [Wed, 21 Aug 2002 22:17:39 +0000 (22:17 +0000)]
optional highmem buffers in obdecho/test_brw

21 years agoSymlink support.
adilger [Wed, 21 Aug 2002 21:49:01 +0000 (21:49 +0000)]
Symlink support.

21 years agonew option: --nosetup disables device setup/cleanup. Useful for testing
rread [Wed, 21 Aug 2002 21:06:37 +0000 (21:06 +0000)]
new option: --nosetup disables device setup/cleanup. Useful for testing
module load/unload without any device config.

21 years ago* Add timeouts for blocking-AST callbacks.
shaver [Wed, 21 Aug 2002 20:49:11 +0000 (20:49 +0000)]
* Add timeouts for blocking-AST callbacks.
* Add fail_loc support for dropping a blocking AST reply or callback on the
  OSC.

21 years agoAdd module loading support to lconf. By default, lconf will load and
rread [Wed, 21 Aug 2002 20:47:24 +0000 (20:47 +0000)]
Add module loading support to lconf. By default, lconf will load and
unload the modules needed based on what devices are configured for a node.

The path to load modules from is determined based on the directory lconf is
run from. If a Makefile is found, the it is assumed lconf is in lustre/utils
and modules will be searched for in ../../lustre and ../../portals.

Module support can be turned off with --nomod, if desired.

Use option --gdb  to create a gdb module script. Lconf will print the path
of the script and pause for few seconds.

21 years ago- change default tcp port to 988
rread [Wed, 21 Aug 2002 20:40:15 +0000 (20:40 +0000)]
- change default tcp port to 988

21 years agoNo dput's, the VFS does this. Some sanity with rename appears to
braam [Wed, 21 Aug 2002 19:30:13 +0000 (19:30 +0000)]
No dput's, the VFS does this.  Some sanity with rename appears to
begin surfacing now.

21 years ago- redo rename to instantiate d_new on the client, instead of
braam [Wed, 21 Aug 2002 19:05:40 +0000 (19:05 +0000)]
- redo rename to instantiate d_new on the client, instead of
  trying to bypass that step (and run into troubles).

21 years ago- give inodes more metadata for objects. Per stripe we now maintain:
braam [Wed, 21 Aug 2002 17:05:43 +0000 (17:05 +0000)]
- give inodes more metadata for objects.  Per stripe we now maintain:
  - id
  - size
  - soon: also flags indicating if we have a "size" lock on the object
- fix two lov bugs (open/close) - both used the wrong oa.

21 years agoChange uml1 to localhost. Now it works.
braam [Wed, 21 Aug 2002 04:13:38 +0000 (04:13 +0000)]
Change uml1 to localhost. Now it works.

21 years ago- put Robert's file back...
braam [Wed, 21 Aug 2002 03:53:09 +0000 (03:53 +0000)]
- put Robert's file back...

21 years ago- In ordinary writes (not O_DIRECT) do not round the data object file
braam [Wed, 21 Aug 2002 03:41:13 +0000 (03:41 +0000)]
- In ordinary writes (not O_DIRECT) do not round the data object file
  size to a page boundary.   Objects are now as long as they should
  be.

21 years ago- add a name to ptlrpc_svc_init in preparation for eliminating
braam [Wed, 21 Aug 2002 03:15:21 +0000 (03:15 +0000)]
- add a name to ptlrpc_svc_init in preparation for eliminating
request->rq_obd
- fix typo in osc_enqueue

21 years ago- Do an additional getattr in ll_lookup2 after we get the lock, to refresh the
pschwan [Wed, 21 Aug 2002 02:37:36 +0000 (02:37 +0000)]
- Do an additional getattr in ll_lookup2 after we get the lock, to refresh the
inode attributes
- mds_blocking_ast didn't wait for all lock holders to finish with the lock
before cancelling it; fixed.
- adjusted more of the wildly inconsistent error code reporting, this time in
mds_getattr
- removed the bad array-walking code that I introduced yesterday to osc_enqueue

21 years agoFix input of objid.
adilger [Tue, 20 Aug 2002 21:47:17 +0000 (21:47 +0000)]
Fix input of objid.

21 years agoTest program to generate the "test_brw" pattern from user-space for a file.
adilger [Tue, 20 Aug 2002 21:02:02 +0000 (21:02 +0000)]
Test program to generate the "test_brw" pattern from user-space for a file.

21 years agode-serialised getattr, brw test ioctls
eeb [Tue, 20 Aug 2002 19:41:35 +0000 (19:41 +0000)]
de-serialised getattr, brw test ioctls

21 years agoPass the private descriptor pointer between preprw and commitrw for the
adilger [Tue, 20 Aug 2002 17:47:33 +0000 (17:47 +0000)]
Pass the private descriptor pointer between preprw and commitrw for the
ost_brw_read() case also.  Thanks again to Eric for finding.

21 years ago- allow lconf to continue to run in debug mode even if acceptor and lctl
rread [Tue, 20 Aug 2002 17:43:48 +0000 (17:43 +0000)]
- allow lconf to continue to run in debug mode even if acceptor and lctl
  are not available.

21 years agoFix missing increment for multi-page I/O cleanup/verification, found by Eric.
adilger [Tue, 20 Aug 2002 17:09:54 +0000 (17:09 +0000)]
Fix missing increment for multi-page I/O cleanup/verification, found by Eric.

21 years agoAdd simple test of mount and unmount.
gord-fig [Tue, 20 Aug 2002 16:58:53 +0000 (16:58 +0000)]
Add simple test of mount and unmount.

21 years ago- Add create and destroy operations to lctl.
adilger [Tue, 20 Aug 2002 06:29:31 +0000 (06:29 +0000)]
- Add create and destroy operations to lctl.
- Make the help options a bit more descriptive.

21 years agoRemove bogus assertion. The dentry isn't instantiated until later, and
adilger [Tue, 20 Aug 2002 05:39:49 +0000 (05:39 +0000)]
Remove bogus assertion.  The dentry isn't instantiated until later, and
we are guaranteed to have a valid inode if we return from ll_lookup2()
without an error code.

21 years agoComment out the rename part of runtests to try and get something working.
adilger [Tue, 20 Aug 2002 05:27:45 +0000 (05:27 +0000)]
Comment out the rename part of runtests to try and get something working.