Whamcloud - gitweb
yury [Sun, 24 Sep 2006 18:18:19 +0000 (18:18 +0000)]
- changes in error messages of seq and fld.
fanyong [Sun, 24 Sep 2006 14:11:02 +0000 (14:11 +0000)]
(1) Remote/local user
(2) Permission check
yury [Sun, 24 Sep 2006 13:04:46 +0000 (13:04 +0000)]
- in mdc_replay_open() do not assert on body == NULL, that is legal case when server fails to replay LDLM_ENQUEUE.
yury [Sun, 24 Sep 2006 10:40:16 +0000 (10:40 +0000)]
- re-arrange seq and fld lprocfs stuff, put their lproc into "fld" and "seq" dirs respectively;
- fixes in mdt_enqueue() with handling obd_fail_loc;
- fixed missed lu_context_key_register() in fid init time.
tappro [Sat, 23 Sep 2006 19:56:42 +0000 (19:56 +0000)]
- wrong parameter fix
tappro [Sat, 23 Sep 2006 14:36:34 +0000 (14:36 +0000)]
- fix unlock without lock issue
tappro [Sat, 23 Sep 2006 14:18:30 +0000 (14:18 +0000)]
- return EREMOTE in mdd_is_parent() in case of remote parent, we don't need rc <
0 in that case
tappro [Sat, 23 Sep 2006 13:32:35 +0000 (13:32 +0000)]
- fixing locks in mdt_reint_rename() for cross-ref cases
tappro [Sat, 23 Sep 2006 13:31:52 +0000 (13:31 +0000)]
- wrong fid is used in mdt_is_subdir()
tappro [Sat, 23 Sep 2006 13:30:50 +0000 (13:30 +0000)]
- fix bug with getting object in mdd. If it is not located then it should be put
- small fixes in comments
wangdi [Sat, 23 Sep 2006 07:37:05 +0000 (07:37 +0000)]
Branch: b_new_cmd
llog_connect_body should be in offset 1
nikita [Fri, 22 Sep 2006 21:21:13 +0000 (21:21 +0000)]
osd: remove entry from oi map on object deletion
nikita [Fri, 22 Sep 2006 21:20:33 +0000 (21:20 +0000)]
iam: adjust nlink when polymorphing regular file into directory (this assures that /root has nlink 2). Patch looks huge because it seems to rearrange files in diff.
yury [Fri, 22 Sep 2006 20:02:53 +0000 (20:02 +0000)]
- fixed bug with handling replaying and resending FLD and SEQ RPCs. obd->obd_recovery_handler which is initialized in
target_handle_connect() time should be aware of all requests types and act appropriate.
tappro [Fri, 22 Sep 2006 19:26:36 +0000 (19:26 +0000)]
small fixes
yury [Fri, 22 Sep 2006 18:59:41 +0000 (18:59 +0000)]
- removed crow test from replay-single;
- added test 0c to replay-single which tests that fld create is replied in recovery;
- fixes in lmv amd in llite, return fld lookup errors;
- added fld_cache_flush(), using it from fld lproc;
- some cleanups in mdt.
wangdi [Fri, 22 Sep 2006 14:59:57 +0000 (14:59 +0000)]
Branch: b_new_cmd
some fixes according to nikita's comments
wangdi [Fri, 22 Sep 2006 14:04:02 +0000 (14:04 +0000)]
Branch: b_new_cmd
fix typo of last commit
tappro [Fri, 22 Sep 2006 12:39:08 +0000 (12:39 +0000)]
add mdt_object_cr_lock()
tappro [Fri, 22 Sep 2006 12:35:35 +0000 (12:35 +0000)]
small cleanup
tappro [Fri, 22 Sep 2006 12:35:07 +0000 (12:35 +0000)]
- create special lock with bits fix for cross-ref objects
yury [Fri, 22 Sep 2006 12:07:31 +0000 (12:07 +0000)]
- fixed resent for intent_open case;
- lots of cleanups and fixes in comments.
yury [Fri, 22 Sep 2006 11:31:15 +0000 (11:31 +0000)]
- commit files missed by Tom's commit.
wangdi [Fri, 22 Sep 2006 09:54:32 +0000 (09:54 +0000)]
Branch: b_new_cmd
For cross-ref object, UPDATE lock and LOOKUP lock can not retrieve at same time.
so we can not try to match them both on client
wangdi [Fri, 22 Sep 2006 08:15:07 +0000 (08:15 +0000)]
Branch: b_new_cmd
1. change our lvar hash method to normal ext3 hash methods and some fixes about it
2. add ext3 hash file to obdclass for temporarily for hash calculation on client.
wangdi [Fri, 22 Sep 2006 07:08:36 +0000 (07:08 +0000)]
Branch: b_new_cmd
some cleanup and typo fixes
vitaly [Fri, 22 Sep 2006 00:12:33 +0000 (00:12 +0000)]
Branch b_new_cmd
cleanup
vitaly [Thu, 21 Sep 2006 23:58:47 +0000 (23:58 +0000)]
Branch b_new_cmd
initialize missed o_gr and the corresponding o_valid flag in obdo
vitaly [Thu, 21 Sep 2006 19:04:35 +0000 (19:04 +0000)]
Branch b_new_cmd
bugfix for the memleak in ll_revalidate_it
bugfix for the memleak in mdt_destroy_export
vitaly [Thu, 21 Sep 2006 17:35:54 +0000 (17:35 +0000)]
Branch b_new_cmd
bugfix for memleak in lov_match
bugfix for possibly locked objects when enqueue or match only partially fails
tappro [Thu, 21 Sep 2006 16:46:03 +0000 (16:46 +0000)]
- update the cross-ref locking fix
- fix mdt_set_disposition() use before the rep is initialized
yury [Thu, 21 Sep 2006 15:43:31 +0000 (15:43 +0000)]
- improvements in error messages
wangdi [Thu, 21 Sep 2006 14:55:20 +0000 (14:55 +0000)]
Branch: b_new_cmd
1) revert back the last commit for cancel the update lock of cross-ref object,
since the following revalidate may need this lock.
2) set l_ast_data for the update lock in readdir, since it may not be set for the
for the cross-object.
3) in ll_revalidate_inode_it, we should only try to get GETATTR lock.
nikita [Thu, 21 Sep 2006 13:31:34 +0000 (13:31 +0000)]
move fid_{,un}_lock() functions into fid module
nikita [Thu, 21 Sep 2006 10:58:12 +0000 (10:58 +0000)]
lu2mdd_obj(): fix assert to match last commit
nikita [Thu, 21 Sep 2006 10:46:52 +0000 (10:46 +0000)]
cosmetic fixes
nikita [Thu, 21 Sep 2006 10:46:23 +0000 (10:46 +0000)]
move lprocfs_obd_cleanup() to lu_device_fini() to share the code
yury [Thu, 21 Sep 2006 09:05:44 +0000 (09:05 +0000)]
- fix typo in comment.
yury [Thu, 21 Sep 2006 09:03:34 +0000 (09:03 +0000)]
- fix in test-framework about getting osc uuid.
yury [Thu, 21 Sep 2006 08:54:48 +0000 (08:54 +0000)]
- fixes about obd_fail_loc handling;
- fixed nasty typo in fld handling define which could cause issues realy hard to find later, I was lucky to see now.
wangdi [Thu, 21 Sep 2006 07:52:29 +0000 (07:52 +0000)]
Branch: b_new_cmd
1)set the correct lock bit for cross-ref object.
2)in lmv_remote_intent, we should cancel the UPDATE lock, since we did not
set l_ast_data for this lock, the inode page will not be truncated when revoked
this lock, which will leave some stale dir page.
huanghua [Thu, 21 Sep 2006 05:29:14 +0000 (05:29 +0000)]
small fix about pack reply
vitaly [Wed, 20 Sep 2006 21:04:19 +0000 (21:04 +0000)]
Branch b_new_cmd
b=22564
always close epoch if not regular file
tappro [Wed, 20 Sep 2006 19:36:32 +0000 (19:36 +0000)]
- fix bug with missed object_put() in error case
- call mdt_handle_last_unlink() after rename only if it was successfull
vitaly [Wed, 20 Sep 2006 16:59:33 +0000 (16:59 +0000)]
Branch b_new_cmd
b=22564
Returns -EAGAIN instead of EAGAIN to clients when attribute update is needed.
Sets ldiskfs_inode_info.i_disksize to inode size in osd_inode_setattr to store
it correctly on the disk.
wangdi [Wed, 20 Sep 2006 16:13:43 +0000 (16:13 +0000)]
Branch: b_new_cmd
when ost recovery, we may only init llogs for group. not llogs for obd
yury [Wed, 20 Sep 2006 15:35:59 +0000 (15:35 +0000)]
- disable not working yet stuff.
yury [Wed, 20 Sep 2006 15:18:17 +0000 (15:18 +0000)]
- liblustre build fixes
wangdi [Wed, 20 Sep 2006 14:19:57 +0000 (14:19 +0000)]
Branch: c_new_cmd
1)reset the end offset of each hash segment
2)add up_call for disable transaction for splitting, since there will
include many transaction in one thread, and we do not need replay for
it, so do not set transaction temporarily.
3) some other fixes of readdir for splitting
yury [Wed, 20 Sep 2006 13:48:12 +0000 (13:48 +0000)]
- added limited lprocfs stuff in mdt to pass some tests;
- fixes in tests.
huanghua [Wed, 20 Sep 2006 09:17:16 +0000 (09:17 +0000)]
some more checks, and some small fix
tappro [Wed, 20 Sep 2006 08:44:17 +0000 (08:44 +0000)]
cancel export locks during disconnect
yury [Wed, 20 Sep 2006 08:13:14 +0000 (08:13 +0000)]
- fixes about lock fixup, replace and some resent issues.
vitaly [Tue, 19 Sep 2006 21:51:58 +0000 (21:51 +0000)]
Branch b_new_cmd
b=22564
perform done_write for pending inodes on shutdown
mark inode as having attributes changed on sync write.
yury [Tue, 19 Sep 2006 18:11:44 +0000 (18:11 +0000)]
- added resent support for getatr_name.
wangdi [Tue, 19 Sep 2006 16:12:57 +0000 (16:12 +0000)]
Branch: b_new_cmd
put the iam_it anyway
wangdi [Tue, 19 Sep 2006 16:07:50 +0000 (16:07 +0000)]
Branch: b_new
we should put iam_it anyway
wangdi [Tue, 19 Sep 2006 16:07:09 +0000 (16:07 +0000)]
Branch: b_new_cmd
merge llog group support from HEAD and some fixes.
yury [Tue, 19 Sep 2006 15:07:40 +0000 (15:07 +0000)]
- do not store server ctx to any structs, ctx is only valid in its thread;
yury [Tue, 19 Sep 2006 14:04:05 +0000 (14:04 +0000)]
- "more sophisticated" fix for recovery-small.sh test_3. By now client and server about getattr* RPCs always wait/send 4 fields even if some of them have zero size;
- adjust maxrep size for seq and fld services. Values are oriented on case of using mds_v1 which is bigger.
huanghua [Tue, 19 Sep 2006 10:57:06 +0000 (10:57 +0000)]
reserve some memory for MDS_GETATTR_NAME. This is ugly. So, maybe removed later.
tappro [Tue, 19 Sep 2006 07:00:57 +0000 (07:00 +0000)]
last_commit transno is needed in any request
huanghua [Tue, 19 Sep 2006 04:27:08 +0000 (04:27 +0000)]
(1) fix open re-construct: re-construct if create error; otherwise, do as regular open;
(2) fix some pointers initialization in md_attr in mdt;
(3) add some EXCEPT in replay-single.sh
wangdi [Tue, 19 Sep 2006 03:22:29 +0000 (03:22 +0000)]
Branch: b_new_cmd
some fixes about cmm
tappro [Mon, 18 Sep 2006 23:03:01 +0000 (23:03 +0000)]
- use 'last_received' name for last_rcvd file
- use journalled data mode on mds
tappro [Mon, 18 Sep 2006 21:04:34 +0000 (21:04 +0000)]
- add mode field in mdt_rec_rename. used for cross-ref request
- copy lmm and unlink cookie from cross-ref unlink to the initial reply buffers
tappro [Mon, 18 Sep 2006 20:59:39 +0000 (20:59 +0000)]
- get also la_flags attr in cmm_mode_get() to track append|immutable flags later
in mdd_rename.
tappro [Mon, 18 Sep 2006 20:56:56 +0000 (20:56 +0000)]
- assign ma_lmm and ma_cookie before the calling cross-ref mo_ref_del()
ericm [Mon, 18 Sep 2006 20:12:08 +0000 (20:12 +0000)]
branch: b_new_cmd
revert configure change which accidentally checked in.
ericm [Mon, 18 Sep 2006 20:10:14 +0000 (20:10 +0000)]
branch: b_new_cmd
fix according to nikita's suggestion:
- rename ptlrpc_flavor_t => ptlrpc_sec_flavor_t
- use OBD_ALLOC_PTR/OBD_FREE_PTR
- use "=" to assign structure instead of memcpy()
vitaly [Mon, 18 Sep 2006 19:56:14 +0000 (19:56 +0000)]
Branch b_new_cmd
b=22564
Size-on-MDS bugfixes for:
- using in ll_done_writing not pinned inode;
- queuing done_writing before close completes;
- memleak in ll_setattr_raw
yury [Mon, 18 Sep 2006 16:11:02 +0000 (16:11 +0000)]
- rename locking + CMD aware is_subdir() check.
tappro [Mon, 18 Sep 2006 14:15:50 +0000 (14:15 +0000)]
- move mode get code to the cmm_mode_get() function, use it also in cmr_rename()
nikita [Mon, 18 Sep 2006 12:01:56 +0000 (12:01 +0000)]
fix typo
huanghua [Mon, 18 Sep 2006 07:18:39 +0000 (07:18 +0000)]
remove duplicate shrink in mdt_rename_tgt()
tappro [Mon, 18 Sep 2006 07:12:44 +0000 (07:12 +0000)]
sanity test 24 fixes in CMD setup:
- get attributes after remote operation
- make index_delete(target_name) unconditionally in mdd_rename
huanghua [Mon, 18 Sep 2006 07:11:12 +0000 (07:11 +0000)]
(1) shrink rename reply;
(2) add abort_recovery ioctl support for mdt.
huanghua [Mon, 18 Sep 2006 03:39:32 +0000 (03:39 +0000)]
new MDS_CLOSE request format: now, we have mdt_epoch & mdt_setattr_rec instead of mdt_body.
tappro [Sun, 17 Sep 2006 22:39:40 +0000 (22:39 +0000)]
fix cross-ref rename issues
tappro [Sun, 17 Sep 2006 22:37:59 +0000 (22:37 +0000)]
- fix issue with mdd_sobj. it can be remote object.
tappro [Sun, 17 Sep 2006 22:36:39 +0000 (22:36 +0000)]
- fix for sanity test 48a in CMD. lock can be lost in case of -ESTALE
huanghua [Sun, 17 Sep 2006 18:13:37 +0000 (18:13 +0000)]
put object in mdd_rename and cml_rename.
huanghua [Sun, 17 Sep 2006 15:52:06 +0000 (15:52 +0000)]
small fix about RQF_MDT_EPOCH: check buffer len first.
wangdi [Sat, 16 Sep 2006 18:15:48 +0000 (18:15 +0000)]
Branch: b_new_cmd
some fixes about readdir and split dir
tappro [Sat, 16 Sep 2006 10:05:53 +0000 (10:05 +0000)]
- remove wrong assert from mdt_cross_open
- add mdc_attr_get() to retrieve attr for remote object while rename
- cmm changes to prepare src object type before processing with rename
- mdd don't use mdd_object for src while rename, because it can be remote
object, instead of that it uses its fid and type to do operations and checks
yury [Sat, 16 Sep 2006 07:52:18 +0000 (07:52 +0000)]
- removed not used variable.
vitaly [Sat, 16 Sep 2006 00:05:48 +0000 (00:05 +0000)]
Branch b_new_cmd
b=22564
cache file size on mds
tappro [Fri, 15 Sep 2006 16:56:29 +0000 (16:56 +0000)]
- take a lock for cross-ref object while open as lmv required
- separate the lock fixup after intent handling into the mdt_intent_lock_replace() method
huanghua [Fri, 15 Sep 2006 16:47:42 +0000 (16:47 +0000)]
(1) don't create object as required;
(2) shrink unlink reply message;
tappro [Fri, 15 Sep 2006 16:15:20 +0000 (16:15 +0000)]
small fixes
tappro [Fri, 15 Sep 2006 16:13:01 +0000 (16:13 +0000)]
- add cmm_thread_info key to the context,
- fix sgid issue with cros-ref case (sanity 6g)
- fix NULL md_attr while cml_rename()
wangdi [Fri, 15 Sep 2006 10:28:03 +0000 (10:28 +0000)]
Branch: b_new_cmd
some fixes about splitting dir
huanghua [Fri, 15 Sep 2006 04:02:58 +0000 (04:02 +0000)]
use xxxxx-MDTXXXX-mdtlov as mdt lov name to modify lov param
yury [Thu, 14 Sep 2006 13:38:33 +0000 (13:38 +0000)]
- update from 1_5
wangdi [Thu, 14 Sep 2006 10:55:17 +0000 (10:55 +0000)]
Branch: b_new_cmd
the page should be lock when truncate it
yury [Thu, 14 Sep 2006 10:45:32 +0000 (10:45 +0000)]
- make all "getters" name correspond to naming paradigm module-object-action.
huanghua [Thu, 14 Sep 2006 10:29:10 +0000 (10:29 +0000)]
(1) call mdt_shrink_reply() whenever possaible;
(2) fix a bug in mdc_xxx_pack(): 32 bit integer to __u64 convertion
huanghua [Thu, 14 Sep 2006 03:10:12 +0000 (03:10 +0000)]
call mds_postrecv() by pointer, not directly.
ericm [Thu, 14 Sep 2006 01:02:10 +0000 (01:02 +0000)]
branch: b_new_cmd
add a empty sec context handler on mdt.
nikita [Wed, 13 Sep 2006 22:53:44 +0000 (22:53 +0000)]
osd: check that transaction handle is supplied