Whamcloud - gitweb
tappro [Mon, 4 Sep 2006 22:25:06 +0000 (22:25 +0000)]
- update mdd_rename_tgt()
- mdd_object_find() returns NULL if there is no mdd slice in lu_object (remote
object)
- simplify mdd_rename_sanity_check() a bit, test for mdd_is_parent() only if
source object is directory and do that check after all other sanity checks
because of its complexity
- put '-EOPNOTSUPP' stubs for remote cases of objects involved in rename
tappro [Mon, 4 Sep 2006 22:19:47 +0000 (22:19 +0000)]
add fsuid, fsgid to the struct md_op_data, set them in lmv instead of mdc
because mdc is used also on mds for cross-ref operations
tappro [Mon, 4 Sep 2006 22:17:31 +0000 (22:17 +0000)]
add md_attr parameter to the rename_tgt() method in MD API
huanghua [Mon, 4 Sep 2006 14:41:58 +0000 (14:41 +0000)]
some small fix and debug helper.
tappro [Mon, 4 Sep 2006 13:52:36 +0000 (13:52 +0000)]
- pass type and time to the remote operation
- sanity checks for remote unlink
tappro [Mon, 4 Sep 2006 08:50:25 +0000 (08:50 +0000)]
proper locking for the mod_count, remove assert for transaction while write_lock
yury [Mon, 4 Sep 2006 07:50:24 +0000 (07:50 +0000)]
- fixes in fid store, by now all ranges should be read from store correctly.
wangdi [Mon, 4 Sep 2006 07:14:49 +0000 (07:14 +0000)]
Branch: b_new_cmd
1)remove writepage/sendpage moo ops
2)comment some sanity check in mkfs_lustre for cmd.
tappro [Mon, 4 Sep 2006 06:58:06 +0000 (06:58 +0000)]
- fix locking during mdd_open()
- make mdd_get_md_locked() to avoid conditional locking in mdd_get_md()
tappro [Sun, 3 Sep 2006 20:11:46 +0000 (20:11 +0000)]
dput() is only needed is alias was returned
tappro [Sun, 3 Sep 2006 19:48:30 +0000 (19:48 +0000)]
put export in correct order, umount mdc obd devices while MDT umount
tappro [Sun, 3 Sep 2006 19:46:25 +0000 (19:46 +0000)]
orphan list iterator. prototype
yury [Sun, 3 Sep 2006 16:11:56 +0000 (16:11 +0000)]
- reorganizing fld and seq reqs handling stuff as preparation before making it understand recovery;
- in mdt replace all int result; with int rc;
nikita [Sun, 3 Sep 2006 12:41:49 +0000 (12:41 +0000)]
dt: add ->del() method to interator, and implemente it in osd
tappro [Sun, 3 Sep 2006 06:47:45 +0000 (06:47 +0000)]
fix bug with mcd allocation
wangdi [Sun, 3 Sep 2006 05:18:32 +0000 (05:18 +0000)]
Branch: b_new_cmd
serval fixes about multi mdses setup
tappro [Sat, 2 Sep 2006 20:12:15 +0000 (20:12 +0000)]
use own uuid for mdc instead of uuid of mdt itself to fix unclean umount
fanyong [Sat, 2 Sep 2006 14:50:38 +0000 (14:50 +0000)]
Fit for the changing of mdo_link interface.
fanyong [Sat, 2 Sep 2006 14:45:10 +0000 (14:45 +0000)]
Fix the interface of mdo_link:
1) pass "md_attr *" down for file xtime changing.
2) make it like mdo_unlink and others.
fanyong [Sat, 2 Sep 2006 14:38:03 +0000 (14:38 +0000)]
Fix the file(parent/child) x(a/m/c)time change rule according to the POSIX.
We have the same result on file xtime changing as ext3 now.
yury [Sat, 2 Sep 2006 10:56:50 +0000 (10:56 +0000)]
- renamed lmv_mgr_*() to lmv_obj_*() to be coherent with another obj methods.
yury [Sat, 2 Sep 2006 10:48:48 +0000 (10:48 +0000)]
- in lmv forward op_data formed in llite to slaves. This fixes invalidate create date for case open(O_CREAT);
- cleanup s in lmv.
wangdi [Fri, 1 Sep 2006 13:36:25 +0000 (13:36 +0000)]
Branch: b_new_cmd
forget a file in the last commit :(
wangdi [Fri, 1 Sep 2006 13:07:58 +0000 (13:07 +0000)]
Branch: b_new_cmd
fix comments format problem
wangdi [Fri, 1 Sep 2006 13:01:50 +0000 (13:01 +0000)]
Branch: b_new_cmd
some updates and fixes for splitting dir
fanyong [Fri, 1 Sep 2006 10:10:14 +0000 (10:10 +0000)]
1)"la->la_valid &= ~LA_CTIME" will cause ctime can not be set when setattr.
2)"la->la_valid |= LA_ATIME" and "la->la_valid |= LA_MTIME" will cause
unnecessary xtime be set, not POSIX.
yury [Fri, 1 Sep 2006 06:05:32 +0000 (06:05 +0000)]
- make seq clients name coherent with server's.
huanghua [Fri, 1 Sep 2006 03:05:25 +0000 (03:05 +0000)]
fix some small compile errors.
tappro [Thu, 31 Aug 2006 22:04:36 +0000 (22:04 +0000)]
small fixes: remove '_dev' from dt_sync and dt_ro methods, make compiler
happy
tappro [Thu, 31 Aug 2006 21:48:05 +0000 (21:48 +0000)]
small fix to avoid using NULL pointer
tappro [Thu, 31 Aug 2006 21:44:59 +0000 (21:44 +0000)]
orphan handling index creation and using code
tappro [Thu, 31 Aug 2006 21:43:16 +0000 (21:43 +0000)]
orphan handling in mdd
tappro [Thu, 31 Aug 2006 21:40:23 +0000 (21:40 +0000)]
- add mdt_iocontrol()
- move reply filling with transaction data to the transaction stop callback
- special methods mdt_open_transno() to update transno for open
tappro [Thu, 31 Aug 2006 21:34:53 +0000 (21:34 +0000)]
- add sync and set readonly methods for dt_device. Used for tests
fanyong [Thu, 31 Aug 2006 16:27:00 +0000 (16:27 +0000)]
Initialize the x(a/m/c)time for new file,
otherwise we will get file time of 1970-1-1.
wangdi [Thu, 31 Aug 2006 14:28:40 +0000 (14:28 +0000)]
Branch: b_new_cmd
add fid init/fini for cmm/mdc.
huanghua [Thu, 31 Aug 2006 14:21:10 +0000 (14:21 +0000)]
added some open recovery prototype code.
wangdi [Thu, 31 Aug 2006 09:59:44 +0000 (09:59 +0000)]
Branch: b_new_cmd
some fixes and updates for splitting dir
fanyong [Thu, 31 Aug 2006 08:38:39 +0000 (08:38 +0000)]
For tunefs we needn't other initialization.
tappro [Wed, 30 Aug 2006 17:37:15 +0000 (17:37 +0000)]
- osd_open() returns struct inode instead of struct dentry,
- do server_put_mount() in osd_device_fini() and call shrink_dcache_sb() before
it
- add igrab() in osd_index_compat_lookup(), this solves issue with MDT umount
huanghua [Wed, 30 Aug 2006 16:55:33 +0000 (16:55 +0000)]
pack reply message for mdt_attr_get*() by generic code.
huanghua [Wed, 30 Aug 2006 15:50:55 +0000 (15:50 +0000)]
pack reply message for reint operations with generic code:
we check the reply format to see if there are RMF_MDT_MD and RMF_LOGCOOKIES,
and set size for them.
wangdi [Wed, 30 Aug 2006 14:53:58 +0000 (14:53 +0000)]
Branch: b_cmd_new
Just miss a file in the previous commit.
wangdi [Wed, 30 Aug 2006 14:51:24 +0000 (14:51 +0000)]
Branch: b_new_cmd
1)add part of split support, still not finished.
2)some fixes for this splitting.
huanghua [Wed, 30 Aug 2006 11:17:05 +0000 (11:17 +0000)]
(1) store intent_disposition in mdt_thread_info, for mdt_update_last_rcvd to write to disk;
(2) change req_capsule_has_field() to check server and client;
(3) add some modules into module install scripts.
wangdi [Wed, 30 Aug 2006 09:09:00 +0000 (09:09 +0000)]
Branch: b_new_cmd
oops, just forget a file in the last commit
tappro [Wed, 30 Aug 2006 08:33:16 +0000 (08:33 +0000)]
temporary fix:
put mount refcounts back after because we need only lmi and it was got in osd
already.
wangdi [Wed, 30 Aug 2006 08:01:27 +0000 (08:01 +0000)]
Branch: b_new_cmd
1)some cleanup and fixes for splitting dir
2)reduce stack size according to nikita's comments
yury [Wed, 30 Aug 2006 07:02:13 +0000 (07:02 +0000)]
- reduce stack consumption in fld_client_rpc() and seq_client_rpc() functions.
huanghua [Wed, 30 Aug 2006 04:21:02 +0000 (04:21 +0000)]
reduce stack consumption aggressively according to nikita's suggestion.
yury [Tue, 29 Aug 2006 13:41:11 +0000 (13:41 +0000)]
- fixed names of client flds in lmv and cmm;
- using dht hash for fld (it still will call rrb). This is needed to not do changes in calling code later, when dht is ready;
- fixed stupid typo in seq_dht_scan() which caused nasty recursion.
yury [Tue, 29 Aug 2006 13:00:53 +0000 (13:00 +0000)]
-remove gtl from configure
yury [Tue, 29 Aug 2006 12:23:57 +0000 (12:23 +0000)]
- fixes in seq_store.c. By now controller and regular seq server store their state in different offsets and do not override each other;
- some cleanups in mdt handler names.
huanghua [Tue, 29 Aug 2006 10:54:10 +0000 (10:54 +0000)]
add error handling with no reply message packed.
huanghua [Tue, 29 Aug 2006 10:09:36 +0000 (10:09 +0000)]
(1) close continue even if we can not pack reply;
(2) some other small fixes.
tappro [Mon, 28 Aug 2006 21:14:53 +0000 (21:14 +0000)]
use lower case for function name
tappro [Mon, 28 Aug 2006 20:49:07 +0000 (20:49 +0000)]
implement MDT_FAIL_WRITE(), set the missed fail checks in mdt code
tappro [Mon, 28 Aug 2006 12:31:05 +0000 (12:31 +0000)]
- decrease the seq width to prevent i_ino overflow in CMD
- put code with iget5_locked() using in ll_iget() to provide generic mapping fid
to ino. It works though is disabled for now
huanghua [Mon, 28 Aug 2006 10:19:14 +0000 (10:19 +0000)]
move transaction commit callback context from dt_device to osd_device.
huanghua [Mon, 28 Aug 2006 07:45:41 +0000 (07:45 +0000)]
fix according to nikita's inspection result; mainly:
(1) add special lu_context for commit callback;
(2) add some comment for data structures and interfaces;
(3) handle transaction commit error;
(4) add lu_context_{enter, exit}() for transaction context.
tappro [Sun, 27 Aug 2006 22:34:10 +0000 (22:34 +0000)]
- add fid to the obd_client_handle and use it to select right mds in
lmv_set/clear_open_replay_data()
- add assert in ll_update_inode() for FID overwritting
- small fixes
tappro [Sun, 27 Aug 2006 22:28:25 +0000 (22:28 +0000)]
update open code for cross-ref cases
huanghua [Sun, 27 Aug 2006 12:01:20 +0000 (12:01 +0000)]
add basic open replay proto.
tappro [Sat, 26 Aug 2006 09:38:20 +0000 (09:38 +0000)]
pass parent fid to the remote server in cross-ref case to insert proper dotdot
entry in the created subdirectory
tappro [Sat, 26 Aug 2006 09:36:04 +0000 (09:36 +0000)]
- update mdd mdo_name_insert() method,
- make some changes to support cross-ref create
- __mdd_index_inser() is split into two methods: __mdd_index_insert_only() with
the old functionality and __mdd_index_insert() which also updates parent
attributes after inserting the name.
tappro [Sat, 26 Aug 2006 09:32:11 +0000 (09:32 +0000)]
update cmm methods due to the new parameter in mdo_name_insert()
tappro [Sat, 26 Aug 2006 09:30:07 +0000 (09:30 +0000)]
- add isdir parameter to the mdo_name_insert() method to know that subdir is
created and increase the nlink for directory. Needed for cross-ref cases.
yury [Sat, 26 Aug 2006 08:34:58 +0000 (08:34 +0000)]
- in lmv remove not needed checks.
huanghua [Fri, 25 Aug 2006 14:55:45 +0000 (14:55 +0000)]
some cleanup for MDS_OPEN. prepare for open replay handling.
yury [Fri, 25 Aug 2006 13:11:04 +0000 (13:11 +0000)]
- removed code used from MDS. We have cmm now and lmv is only used on client.
nikita [Fri, 25 Aug 2006 12:50:51 +0000 (12:50 +0000)]
mdd,mdt: add missed locking, found by lock-tracking code in osd
nikita [Fri, 25 Aug 2006 12:49:33 +0000 (12:49 +0000)]
osd: add code checking that lock is taken before operation starts
nikita [Fri, 25 Aug 2006 12:48:54 +0000 (12:48 +0000)]
oi: code inspection results
yury [Fri, 25 Aug 2006 12:41:22 +0000 (12:41 +0000)]
- cleanups in lmv
yury [Fri, 25 Aug 2006 11:38:01 +0000 (11:38 +0000)]
- removed not needed set_info command from lmv.
nikita [Fri, 25 Aug 2006 10:44:15 +0000 (10:44 +0000)]
dt: simplify ->do{un,}lock() interface: lock type (read/write) is always known statically, so encode it into method name
yury [Fri, 25 Aug 2006 10:34:40 +0000 (10:34 +0000)]
- fixed compile warning.
tappro [Thu, 24 Aug 2006 22:42:53 +0000 (22:42 +0000)]
- fix invalid conditon during check that fid2 is valid
- do lock_decref only if rc != 0
- set special policy for mkdir to test croff-ref cases
ericm [Thu, 24 Aug 2006 22:41:23 +0000 (22:41 +0000)]
branch: b_new_cmd
load lmv module
tappro [Thu, 24 Aug 2006 22:36:10 +0000 (22:36 +0000)]
return attr after remote request,
make common code in inline form,
initialize LOHA_REMOTE flag in mdc_object_init() instead of cmm_object_init()
nikita [Thu, 24 Aug 2006 19:30:36 +0000 (19:30 +0000)]
llite: avoid unintialized variables
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