Whamcloud - gitweb
nikita [Thu, 24 Aug 2006 18:58:31 +0000 (18:58 +0000)]
fix a cut-n-paste error in previous commit
nikita [Thu, 24 Aug 2006 18:29:31 +0000 (18:29 +0000)]
iam: fix root node limit calculation for lfix format
tappro [Thu, 24 Aug 2006 15:39:48 +0000 (15:39 +0000)]
set handler in object_init() when that handler is initialized already
tappro [Thu, 24 Aug 2006 15:38:33 +0000 (15:38 +0000)]
profile should has different names for each mds
tappro [Thu, 24 Aug 2006 15:37:39 +0000 (15:37 +0000)]
in case of remote object flag OBD_MD_MDS should be set
tappro [Thu, 24 Aug 2006 15:36:59 +0000 (15:36 +0000)]
- fix MDT lov names, now we can have not one mdt so names should differ.
- remove unused variables and code
yury [Thu, 24 Aug 2006 15:27:25 +0000 (15:27 +0000)]
- add libiam.a (if exists) to rpm, this is neededfor testing our branch;
- replace all memcmp of fids by lu_fid_eq;
- allocate new fid for create case in ll_revalidate_it() in case of doing "goto do_lookup";
- removed needless lmv_fld_lookup() in lmv;
- fixed lmv_obj refcount management in error cases;
- comments are adjusted to be coherent with 80 columns style.
wangdi [Thu, 24 Aug 2006 08:37:51 +0000 (08:37 +0000)]
Branch: b_new_cmd
1)add O_CHECK_STALE flags to indicate wether it should check stale in
mdc_intent_lock.
2) some related fixes to make 48 pass
nikita [Wed, 23 Aug 2006 22:48:29 +0000 (22:48 +0000)]
libiam: exterminate SET_DEFAULT
nikita [Wed, 23 Aug 2006 22:40:51 +0000 (22:40 +0000)]
mkfs_lustre.c: get rid of SET_DEFAULT: use explicit constants, also fix error in /root file initialization
nikita [Wed, 23 Aug 2006 22:40:15 +0000 (22:40 +0000)]
libiam: adjust to changes in kernel code
nikita [Wed, 23 Aug 2006 22:39:47 +0000 (22:39 +0000)]
iam: assure that maximal number of entries in root node is less than in the non-root index node (index-node split algorithm assumes this)
nikita [Wed, 23 Aug 2006 22:38:54 +0000 (22:38 +0000)]
iam: fix assertions
nikita [Wed, 23 Aug 2006 16:49:32 +0000 (16:49 +0000)]
iam: clear hash (serving as a directory entry offset) sign bit: glibc getdents() is confused out of its (barely existing) intelligence otherwise
nikita [Wed, 23 Aug 2006 16:47:53 +0000 (16:47 +0000)]
fix a typo
huanghua [Wed, 23 Aug 2006 15:16:50 +0000 (15:16 +0000)]
remove "lu_context *" parameter from dtc_txn_commit()
fanyong [Wed, 23 Aug 2006 10:57:04 +0000 (10:57 +0000)]
1) for test_72: ensure we have enough space before the test.
2) for test_99b: we will get the same error on local filesystem--ext3.
3) drop some EXCEPT
tappro [Wed, 23 Aug 2006 09:58:15 +0000 (09:58 +0000)]
update due to new close() handling,
tappro [Tue, 22 Aug 2006 17:44:00 +0000 (17:44 +0000)]
add missed OBD_FAIL check, remove old file
nikita [Tue, 22 Aug 2006 14:44:01 +0000 (14:44 +0000)]
req-layout: empty set of fields contains ptlrpc_body
yury [Tue, 22 Aug 2006 13:37:54 +0000 (13:37 +0000)]
- more cleanups in LMV.
tappro [Tue, 22 Aug 2006 11:50:55 +0000 (11:50 +0000)]
add new modules in load_modules
fanyong [Tue, 22 Aug 2006 05:49:27 +0000 (05:49 +0000)]
Drop unused "USER_SPACE_TOP".
nikita [Mon, 21 Aug 2006 21:35:11 +0000 (21:35 +0000)]
lov_setstripe(): use set_fs()
nikita [Mon, 21 Aug 2006 19:39:04 +0000 (19:39 +0000)]
iam: fix issues found by Huang Huang during code inspection
nikita [Mon, 21 Aug 2006 19:38:10 +0000 (19:38 +0000)]
osd: osd_recovery_complete(): drop unneeded definitions
nikita [Mon, 21 Aug 2006 19:37:36 +0000 (19:37 +0000)]
lov: lov_getstripe(): use set_fs/get_fs
nikita [Mon, 21 Aug 2006 19:36:42 +0000 (19:36 +0000)]
liblustre: provide dummy set_fs/get_fs implementation
yury [Mon, 21 Aug 2006 17:32:18 +0000 (17:32 +0000)]
- cleanups on client after Nikita's inspection.
fanyong [Mon, 21 Aug 2006 16:18:41 +0000 (16:18 +0000)]
Get "UML" flag from /cpu/procinfo.
fanyong [Mon, 21 Aug 2006 16:10:48 +0000 (16:10 +0000)]
The arguments "lump" of lov_setstripe and lov_getstripe can be called
from both user level and kernel level. So copy_from_user or copy_to_user
maybe failed. In these case, we shoule use memcpy to do that.
to
wangdi [Mon, 21 Aug 2006 15:27:45 +0000 (15:27 +0000)]
Branch: b_new_cmd
inherit parent lmm, only if parent is not NULL
wangdi [Mon, 21 Aug 2006 14:57:07 +0000 (14:57 +0000)]
Branch: b_new_cmd
should not check stale when new fid allocating
wangdi [Mon, 21 Aug 2006 14:35:30 +0000 (14:35 +0000)]
Branch: b_new_cmd
only check stale when no fid allocation
huanghua [Mon, 21 Aug 2006 08:58:22 +0000 (08:58 +0000)]
(1) some cleanup on code
(2) change mdt_object->mot_writecount into an "int"
yury [Sun, 20 Aug 2006 14:33:52 +0000 (14:33 +0000)]
- fixes in convertion functions after Nikita's insp.
yury [Sun, 20 Aug 2006 13:13:22 +0000 (13:13 +0000)]
- merge with 1_5,some fixes.
brian [Sat, 19 Aug 2006 03:08:14 +0000 (03:08 +0000)]
(Hopefully) merge lustre/scripts from b1_5 as stuff in here is needed to
successfully test a mountconf branch with ltest.
tappro [Fri, 18 Aug 2006 23:22:13 +0000 (23:22 +0000)]
- fix defect with lost nlink++ in rename
- mdt_device_fini() shouldn't return child device
- mdt_handle_last_unlink() shouldn't change the result code
tappro [Fri, 18 Aug 2006 21:57:53 +0000 (21:57 +0000)]
another missed files in dist
wangdi [Fri, 18 Aug 2006 16:19:37 +0000 (16:19 +0000)]
Branch: b_new_cmd
1)add flag check in mdd_open
2)some other fixes about open and typo
tappro [Fri, 18 Aug 2006 15:04:24 +0000 (15:04 +0000)]
- use obd_last_committed instead of mdt value for now
- check result in stop callback and set transno = 0
- spin_unlock() after update the txi_transno on stop callback
- fix misspelled variable name
- rename mdt_update_last_transno() to the mdt_finish_reply() due to it's
functionality
tappro [Fri, 18 Aug 2006 09:38:04 +0000 (09:38 +0000)]
- save cookie size for mdt_shrink_reply()
tappro [Fri, 18 Aug 2006 07:19:50 +0000 (07:19 +0000)]
fix silly defect, thanks Wangdi.
tappro [Thu, 17 Aug 2006 23:08:46 +0000 (23:08 +0000)]
Code update during for recovery in new MDS:
- add ldo_recovery_complete() to the devices
- place all recovery-related stuff into mdt_recovery.c
- reconstruction code (except reconstruct_open)
- last_rcvd read/write helpers and update
- mdd_trans_stop() takes rc as parameter and saves it in thandle
tappro [Thu, 17 Aug 2006 23:01:27 +0000 (23:01 +0000)]
- store result code in thandle for last_rcvd update
- add ldo_recovery_complete() method in lu_device to finish all post-recovery
tasks
tappro [Thu, 17 Aug 2006 22:59:34 +0000 (22:59 +0000)]
another missed file for dist
tappro [Thu, 17 Aug 2006 21:19:46 +0000 (21:19 +0000)]
add header files to the dist
brian [Thu, 17 Aug 2006 19:53:19 +0000 (19:53 +0000)]
*** empty log message ***
brian [Thu, 17 Aug 2006 16:21:41 +0000 (16:21 +0000)]
Disable KGDB in RHEL4 kernel builds by default. These are the configs that
will be used to build test cluster kernels and having a kernel drop to kgdb
during an automated test is not terribly useful I think.
wangdi [Thu, 17 Aug 2006 15:11:07 +0000 (15:11 +0000)]
Branch: b_new_cmd
some fixes about get/set flags for test_52
nikita [Thu, 17 Aug 2006 14:24:12 +0000 (14:24 +0000)]
md: remove outdated comment
nikita [Thu, 17 Aug 2006 14:23:57 +0000 (14:23 +0000)]
liblustre: fix user level build
tappro [Thu, 17 Aug 2006 09:21:36 +0000 (09:21 +0000)]
- fix use-after-free issue. fld_server_proc_fini() should be called after
unregistering the fld service
tappro [Wed, 16 Aug 2006 22:30:24 +0000 (22:30 +0000)]
- register/degister keys in mod_init/exit to avoid issues while mds cleanup
- use one fld_thread_key structure
- remove unused code
tappro [Wed, 16 Aug 2006 20:25:11 +0000 (20:25 +0000)]
- call ldto_device_fini() in obd_precleanup()
- separate mdt_fini() from mdt_free()
- correct operation order in mdt_fini()
tappro [Wed, 16 Aug 2006 20:22:02 +0000 (20:22 +0000)]
move fld_client_init/fini to the cmm_device_mount/shutdown()
nikita [Wed, 16 Aug 2006 16:59:02 +0000 (16:59 +0000)]
- store object-existence flags in ->loh_attr
- drop context argument from lu_object_exists()
nikita [Wed, 16 Aug 2006 16:58:14 +0000 (16:58 +0000)]
sanity: 57b: 0. revert to 100 files, 1. comment out procfs stuff
nikita [Wed, 16 Aug 2006 15:41:44 +0000 (15:41 +0000)]
mdd: use ->loo_object_start() to initialize object flags
nikita [Wed, 16 Aug 2006 15:41:11 +0000 (15:41 +0000)]
osd: trivial fixes
nikita [Wed, 16 Aug 2006 15:40:56 +0000 (15:40 +0000)]
lu: add ->loo_object_start() method called late during object allocation. It can be used to perform initialization depending on lower layers
wangdi [Wed, 16 Aug 2006 14:07:55 +0000 (14:07 +0000)]
Branch: b_new_cmd
1)add append and immutable check
2)some fixes about set flags
3)some other fixes and cleanup
huanghua [Wed, 16 Aug 2006 09:51:39 +0000 (09:51 +0000)]
braces are forgotton after condition sentence.
fanyong [Wed, 16 Aug 2006 09:42:35 +0000 (09:42 +0000)]
Small change: for replacing "Ext3" with "Ldiskfs".
huanghua [Wed, 16 Aug 2006 07:26:52 +0000 (07:26 +0000)]
fix a defect introduced by last commit:
we return success to client when object locates on another server.
huanghua [Wed, 16 Aug 2006 07:13:10 +0000 (07:13 +0000)]
(1) mdt shrink reply;
(2) restore sanity 31 and 48 test
huanghua [Wed, 16 Aug 2006 03:08:30 +0000 (03:08 +0000)]
fix the return value defect
tappro [Tue, 15 Aug 2006 22:31:19 +0000 (22:31 +0000)]
add osd_shutdown()
tappro [Tue, 15 Aug 2006 22:30:49 +0000 (22:30 +0000)]
- add mdd_device_shutdown()
- rename mdd_cleanup_obd() to the mdd_fini_obd() and call it from
mdd_device_shutdown()
- rename mdd2_obd() helper to the mdd2obd_dev() to make it similar with others
- add mdd_obd_dev field into mdd_device and store mdd_obd pointer in it
tappro [Tue, 15 Aug 2006 22:22:23 +0000 (22:22 +0000)]
add cmm_device_shutdown()
tappro [Tue, 15 Aug 2006 22:21:35 +0000 (22:21 +0000)]
- add process_config call for stack cleanup. All devices will be stopped and
cleaned up before fini/free
nikita [Tue, 15 Aug 2006 14:55:52 +0000 (14:55 +0000)]
lu_object_attr() is only defined for local objects: check this in assertion
wangdi [Tue, 15 Aug 2006 11:39:44 +0000 (11:39 +0000)]
Branch: b_new_cmd
1) some fixes about set flags of inode
2) remove useless mti_ld
3) other small cleanup
nikita [Tue, 15 Aug 2006 11:19:31 +0000 (11:19 +0000)]
cosmetic fixes
nikita [Tue, 15 Aug 2006 11:19:00 +0000 (11:19 +0000)]
add "positioning by hash" to iam
huanghua [Tue, 15 Aug 2006 10:27:11 +0000 (10:27 +0000)]
restore xxx_attr_set() interface to have "const md_attr*" argument;
huanghua [Tue, 15 Aug 2006 10:02:43 +0000 (10:02 +0000)]
fixed:
(1) passed wrong lmm_size to mdd_get_md();
(2) handle -ENODATA error
huanghua [Tue, 15 Aug 2006 08:20:12 +0000 (08:20 +0000)]
fixing integer comparism bug
huanghua [Tue, 15 Aug 2006 07:50:36 +0000 (07:50 +0000)]
(1) fixing typo in mdd;
(2) fixing lum & lmm stripe_count;
wangdi [Tue, 15 Aug 2006 06:45:53 +0000 (06:45 +0000)]
Branch:
some fixes in mds_cmd_cleanup
wangdi [Tue, 15 Aug 2006 04:19:08 +0000 (04:19 +0000)]
Branch: b_new_cmd
1 remove md_lov_info and related info, since we create a tmp MDS obd to
access the lov, so just reuse mds lov code, no need share anymore.
2)some other fixes and cleanup.
huanghua [Tue, 15 Aug 2006 04:03:13 +0000 (04:03 +0000)]
(1) remove const from md_attr in moo_attr_set(), because this md_attr may be ajusted/fixed by MDD;
(2) make mdd_lov_mdsize() & mdd_lov_cookiesize() as static inline;
(3) some other small fixes;
wangdi [Tue, 15 Aug 2006 02:42:01 +0000 (02:42 +0000)]
Branch: b_new_cmd
it should check MA_LOV before unlink log
tappro [Mon, 14 Aug 2006 22:41:31 +0000 (22:41 +0000)]
fix defect with list_add_tail() params.
tappro [Mon, 14 Aug 2006 22:37:24 +0000 (22:37 +0000)]
forgotten lu_object_put() in case of error
ericm [Mon, 14 Aug 2006 22:00:06 +0000 (22:00 +0000)]
file sanity-gss.sh was added on branch b_new_cmd on 2006-09-11 22:05:00 +0000
yury [Mon, 14 Aug 2006 14:25:48 +0000 (14:25 +0000)]
- fixed typo in comment.
yury [Mon, 14 Aug 2006 14:23:45 +0000 (14:23 +0000)]
- update entries counter on entry delete.
yury [Mon, 14 Aug 2006 14:19:38 +0000 (14:19 +0000)]
- fixed bug in fld_cache_delete(), there should be used ..._safe list iterator;
- added simple cache shrink mechanism to fld cache. It maintains LRU list and
removes old used entries from it until desired size (passed in init time) is
reached. Also some threshold is used to avoid ping-pong and running shrink
each time as new entry is added in the conditions when cache is almost full.
huanghua [Mon, 14 Aug 2006 10:51:28 +0000 (10:51 +0000)]
(1) remove MD_ATTR_FLAGS. this is set by LA_FLAGS;
(2) atime/mtime/ctime typo in OSD;
(3) use our new valid bits in MDD entirely;
(4) some other small fixes;
wangdi [Mon, 14 Aug 2006 00:32:29 +0000 (00:32 +0000)]
Branch: b_new_cmd
should check mds_log_op_unlink > 0 in mdd_unlink_log
tappro [Sun, 13 Aug 2006 22:38:07 +0000 (22:38 +0000)]
- define and use mdd_attr_get_internal_locking() inline instead of passing flag
need_locked as parameter.
- get attr unlocked while create operations
tappro [Sun, 13 Aug 2006 21:53:53 +0000 (21:53 +0000)]
mdt_md_mkobj() don't need lov attr
tappro [Sun, 13 Aug 2006 21:52:23 +0000 (21:52 +0000)]
- fix issue with checking the result of mds_log_op_unlink() call
tappro [Sun, 13 Aug 2006 21:50:35 +0000 (21:50 +0000)]
- separate __mdd_iattr_get() to get only inode attr. Needed for internal MDD
use.
- small cleanups and comments,
- use __mdd_finish_unlink() in mdd_rename()
- fix mdd_rename() when tobj is dir, the additional ref should be deleted for
tobj itself
wangdi [Sun, 13 Aug 2006 17:36:07 +0000 (17:36 +0000)]
Branch: b_new_cmd
1) add ma_need to indicate which field it need when it call the lower layer
2) reorganize mdd setattr/getattr code.
3) fix some problems in set/get md.
4) prepare the reply buffer for close.
5) some other fixes and cleanup
tappro [Sat, 12 Aug 2006 14:45:01 +0000 (14:45 +0000)]
small fixes
tappro [Sat, 12 Aug 2006 13:38:05 +0000 (13:38 +0000)]
add debug
tappro [Sat, 12 Aug 2006 11:21:29 +0000 (11:21 +0000)]
- introduce open counter in mdd
- update mo_close() method with adding the md_attr
- split mdd_attr_get() into two sub-function __mdd_atte_get, __mdd_lov_get
because they are needed for internal use in mdd
- return lov ea and llog cookie in mdt_close() for unlinked file
- mdt_handle_last_unlink() checks the ma_valid fields to decide what to return
to the client