Whamcloud - gitweb
fs/lustre-release.git
18 years agomdt: do not use mdt_thread_info for implicit parameter passing, add some consts
nikita [Fri, 4 Aug 2006 14:00:42 +0000 (14:00 +0000)]
mdt: do not use mdt_thread_info for implicit parameter passing, add some consts

18 years agoliblustre: fix warning during user-space compilation
nikita [Fri, 4 Aug 2006 13:59:53 +0000 (13:59 +0000)]
liblustre: fix warning during user-space compilation

18 years agomdt_mfd_open(): clean, use local variables
nikita [Fri, 4 Aug 2006 13:59:13 +0000 (13:59 +0000)]
mdt_mfd_open(): clean, use local variables

18 years agolu_object: store file type (regular, directory, etc.) in lu_object_header
nikita [Fri, 4 Aug 2006 13:58:48 +0000 (13:58 +0000)]
lu_object: store file type (regular, directory, etc.) in lu_object_header

18 years ago- place pill and rep_buf_size array from fld_req_handle() and seq_req_handle() into...
yury [Fri, 4 Aug 2006 13:47:39 +0000 (13:47 +0000)]
- place pill and rep_buf_size array from fld_req_handle() and seq_req_handle() into context instead of allocating then on stack.

18 years agoosd: fix typo
nikita [Fri, 4 Aug 2006 12:37:35 +0000 (12:37 +0000)]
osd: fix typo

18 years agoreq-layout: handle 0-length fields: use (-1) as variable field marker
nikita [Fri, 4 Aug 2006 12:35:36 +0000 (12:35 +0000)]
req-layout: handle 0-length fields: use (-1) as variable field marker

18 years agoBranch: b_new_cmd
wangdi [Fri, 4 Aug 2006 10:15:10 +0000 (10:15 +0000)]
Branch: b_new_cmd
1)add lmv getxattr md method.
2)some fixes about getxattr in mdt and mdc

18 years agoBranch: b_new_cmd
wangdi [Fri, 4 Aug 2006 06:25:45 +0000 (06:25 +0000)]
Branch: b_new_cmd
1)set mdc_get_attr reply bufcount to 3(same as server side), since
  different buffer count will cause different reply size, although
  some msg might be zero.
2)set md size before pack reply in getattr_name

18 years agoBranch: b_new_cmd
wangdi [Fri, 4 Aug 2006 02:56:28 +0000 (02:56 +0000)]
Branch: b_new_cmd
revert "reset lmm_md_size" back. since we need it

18 years agoBranch: b_new_cmd
wangdi [Fri, 4 Aug 2006 01:07:56 +0000 (01:07 +0000)]
Branch: b_new_cmd
1)some fixes according to nikita's comments
2)mdt_getattr/getattr_name should not have fixed size reply, since EA_DATA is not const,
  and should be set max acl size before pack reply

18 years agofile l_idmap.c was added on branch b_new_cmd on 2006-10-13 23:57:13 +0000
ericm [Thu, 3 Aug 2006 15:48:48 +0000 (15:48 +0000)]
file l_idmap.c was added on branch b_new_cmd on 2006-10-13 23:57:13 +0000

18 years agonot to overwrite client passed attr
huanghua [Thu, 3 Aug 2006 15:39:23 +0000 (15:39 +0000)]
not to overwrite client passed attr

18 years agofix:
huanghua [Thu, 3 Aug 2006 15:01:13 +0000 (15:01 +0000)]
fix:
(1) open smylink file;
(2) mdt_recovery() should return error on un-connected export;
(3) mdd_unlink permission check.

18 years agoBranch: b_new_cmd
wangdi [Thu, 3 Aug 2006 10:38:01 +0000 (10:38 +0000)]
Branch: b_new_cmd
change to MDSIZE and EASIZE to min size, after reorganize md size management

18 years agoBranch: b_new_cmd
wangdi [Thu, 3 Aug 2006 09:56:27 +0000 (09:56 +0000)]
Branch: b_new_cmd
some req should pack the reply after set md size.

18 years agoBranch: b_new_cmd
wangdi [Thu, 3 Aug 2006 08:43:58 +0000 (08:43 +0000)]
Branch: b_new_cmd
1)add get_maxsize to get max md and cookiesize
2)add upcall mechnaism from mds_obd-> mdd and mdd->cmm->mdt
  to update max md and cookie size when new ost added.

18 years agoBranch: b_new_cmd
wangdi [Thu, 3 Aug 2006 03:52:23 +0000 (03:52 +0000)]
Branch: b_new_cmd
1)add get_max_mdsize for getstripe
2)add mknod method in osd
3)some fixes in osd_mkfile

18 years agoBranch: b_new_cmd
wangdi [Wed, 2 Aug 2006 15:21:41 +0000 (15:21 +0000)]
Branch: b_new_cmd
only do unlink log when there is lmm

18 years ago- fixed bug with -ENOTSUPP for data stack on finalization.
yury [Wed, 2 Aug 2006 14:58:20 +0000 (14:58 +0000)]
- fixed bug with -ENOTSUPP for data stack on finalization.

18 years agollite: add comments describing new readdir (not finished)
nikita [Wed, 2 Aug 2006 13:45:02 +0000 (13:45 +0000)]
llite: add comments describing new readdir (not finished)

18 years agoosd: fix type declaration
nikita [Wed, 2 Aug 2006 13:29:27 +0000 (13:29 +0000)]
osd: fix type declaration

18 years agocmm: fix type declaration
nikita [Wed, 2 Aug 2006 13:29:04 +0000 (13:29 +0000)]
cmm: fix type declaration

18 years ago- mostly changes according to Mike's CODEINSP;
yury [Wed, 2 Aug 2006 11:01:03 +0000 (11:01 +0000)]
- mostly changes according to Mike's CODEINSP;

18 years agoreworked for mdt_getattr():
huanghua [Wed, 2 Aug 2006 08:37:19 +0000 (08:37 +0000)]
reworked for mdt_getattr():
prepacking for reply message, and shrink later.

18 years agoBranch: b_new_cmd
wangdi [Wed, 2 Aug 2006 07:06:07 +0000 (07:06 +0000)]
Branch: b_new_cmd
1) set setstripe support
2) serval fixes about mdd lov stuff.
3) should not reset la_flags in osd_inode_getattr, since it is the flags
   from the client now. maybe should create a ma_flags.

18 years ago- converting {seq|fld}_client_rpc() to new req-layout.
yury [Tue, 1 Aug 2006 16:47:09 +0000 (16:47 +0000)]
- converting {seq|fld}_client_rpc() to new req-layout.

18 years agoreworked symlink() and readlink():
huanghua [Tue, 1 Aug 2006 16:15:27 +0000 (16:15 +0000)]
reworked symlink() and readlink():
(1)symlink is implemented similar to other file type;
(2)target name is written to the regular file with dbo_write();
(3)taget name is read with dbo_read().

18 years ago- fixes in seq and fld after Mike's CODEINSP.
yury [Tue, 1 Aug 2006 14:55:39 +0000 (14:55 +0000)]
- fixes in seq and fld after Mike's CODEINSP.

18 years agorestore code commetted in debug mode
huanghua [Tue, 1 Aug 2006 14:16:48 +0000 (14:16 +0000)]
restore code commetted in debug mode

18 years agoadded symlink operation support.
huanghua [Tue, 1 Aug 2006 11:34:27 +0000 (11:34 +0000)]
added symlink operation support.

18 years agoBranch: b_new_cmd
wangdi [Tue, 1 Aug 2006 11:02:15 +0000 (11:02 +0000)]
Branch: b_new_cmd
oops forget commit this file

18 years agoBranch: b_new_cmd
wangdi [Tue, 1 Aug 2006 08:39:39 +0000 (08:39 +0000)]
Branch: b_new_cmd
disable 24o temporarialy, since rename lock is still in progress.

18 years agoBranch: b_new_cmd
wangdi [Tue, 1 Aug 2006 08:29:52 +0000 (08:29 +0000)]
Branch: b_new_cmd
fix lov set md problems

18 years agoBranch: b_new_cmd
wangdi [Tue, 1 Aug 2006 00:31:14 +0000 (00:31 +0000)]
Branch: b_new_cmd
we should check whether srcid is equal to tgtid before really rename

18 years agoBranch: b_new_cmd
wangdi [Mon, 31 Jul 2006 19:10:00 +0000 (19:10 +0000)]
Branch: b_new_cmd
fix stupid type in mdd_rename_unlock

18 years agoBranch: b_new_cmd
wangdi [Mon, 31 Jul 2006 16:42:57 +0000 (16:42 +0000)]
Branch: b_new_cmd
remove this finish req, which will be handled later. otherwise,
it will cause oops in later req finished

18 years agofixed a bug introduced by altering xxx_attr_get() interface in mdd_create():
huanghua [Mon, 31 Jul 2006 10:31:31 +0000 (10:31 +0000)]
fixed a bug introduced by altering xxx_attr_get() interface in mdd_create():
only do moo_attr_get() when everything is ready.

18 years agoBranch: b_new_cmd
wangdi [Mon, 31 Jul 2006 09:06:13 +0000 (09:06 +0000)]
Branch: b_new_cmd
add ptlrpc setattr service

18 years agoBranch: b_new_cmd
wangdi [Mon, 31 Jul 2006 08:56:03 +0000 (08:56 +0000)]
Branch: b_new_cmd
remove this unproper msg, since revalidate_it also will with IT_CREATE|IT_OPEN
so, we can not check IT_CREATE to make whether should allocate fid.

18 years agoattr_get is changed. It takes now md_attr() and does 'lov' getting inside
tappro [Mon, 31 Jul 2006 05:56:33 +0000 (05:56 +0000)]
attr_get is changed. It takes now md_attr() and does 'lov' getting inside

18 years agoBranch:b_new_cmd
wangdi [Mon, 31 Jul 2006 00:02:39 +0000 (00:02 +0000)]
Branch:b_new_cmd
remove lov_objids and last_rcvd create in osd_mount, since they could be
created in mkfs

18 years agoBranch: b_new_cmd
wangdi [Sun, 30 Jul 2006 10:33:58 +0000 (10:33 +0000)]
Branch: b_new_cmd
create last_rcvd node in osd_mount

18 years ago(1): fixed a bug in mdt_close(): error handling for xattr_get();
huanghua [Sun, 30 Jul 2006 08:24:37 +0000 (08:24 +0000)]
(1): fixed a bug in mdt_close(): error handling for xattr_get();
(2): add persistent data access support for mdt: read & write mdt server data.

18 years ago- using dt_body_ops in server sequence manager to store seq mgr state and read it...
yury [Sat, 29 Jul 2006 08:56:16 +0000 (08:56 +0000)]
- using dt_body_ops in server sequence manager to store seq mgr state and read it from store in startup time.

18 years agoBranch: b_new_cmd
wangdi [Sat, 29 Jul 2006 05:57:45 +0000 (05:57 +0000)]
Branch: b_new_cmd
add unlink log for mdd unlink

18 years agoreaddir fixes
nikita [Fri, 28 Jul 2006 17:29:16 +0000 (17:29 +0000)]
readdir fixes

18 years agofixed bugs:
huanghua [Fri, 28 Jul 2006 11:34:01 +0000 (11:34 +0000)]
fixed bugs:
(1) using uninitialized variable;
(2) wrong lock type;

18 years agoBranch: b_new_cmd
wangdi [Fri, 28 Jul 2006 08:40:55 +0000 (08:40 +0000)]
Branch: b_new_cmd
add tmp way to calculate lsm_object_id in mds

18 years ago- fixes with locking. Now mkdir causes client cache flush and thus client always...
yury [Fri, 28 Jul 2006 08:20:30 +0000 (08:20 +0000)]
- fixes with locking. Now mkdir causes client cache flush and thus client always see valid directory content.

18 years agonew hash-order readdir. Initial implementation
nikita [Thu, 27 Jul 2006 22:31:50 +0000 (22:31 +0000)]
new hash-order readdir. Initial implementation

18 years agoprevent noisy message from printing
huanghua [Thu, 27 Jul 2006 15:12:40 +0000 (15:12 +0000)]
prevent noisy message from printing

18 years agofixed some open related thing according to inspection results
huanghua [Thu, 27 Jul 2006 15:10:00 +0000 (15:10 +0000)]
fixed some open related thing according to inspection results

18 years ago(1)reworked last_link handling, using lustre_shrink_reply() to remove unused buffer;
huanghua [Thu, 27 Jul 2006 14:38:42 +0000 (14:38 +0000)]
(1)reworked last_link handling, using lustre_shrink_reply() to remove unused buffer;
(2) never trust the client provided la_mode except for create

18 years agorework on mdt_handle_last_unlink():
huanghua [Thu, 27 Jul 2006 09:58:50 +0000 (09:58 +0000)]
rework on mdt_handle_last_unlink():
(1) extend reply message if necessary;
(2) getattr & getxattr if necessary;

18 years agowe need start a transaction for every open request and return its transaction number...
huanghua [Thu, 27 Jul 2006 05:51:29 +0000 (05:51 +0000)]
we need start a transaction for every open request and return its transaction number back.

18 years ago(1) make MDT replayable to eliminate mdc_close() crash on client;
huanghua [Wed, 26 Jul 2006 15:08:27 +0000 (15:08 +0000)]
(1) make MDT replayable to eliminate mdc_close() crash on client;
(2) some some debugging code for ll_file_open()/ll_file_release();
(3) add some deugging code for transaction related functions.

18 years agoBranch: b_new_cmd
wangdi [Wed, 26 Jul 2006 07:15:09 +0000 (07:15 +0000)]
Branch: b_new_cmd
1)keep mdd obd fsfilt and make it support llog.
2)others fixes for llog and lov

18 years agorestore tempprary commentted out code in mdc_locks.c:mdc_intent_lock();
huanghua [Wed, 26 Jul 2006 07:01:51 +0000 (07:01 +0000)]
restore tempprary commentted out code in mdc_locks.c:mdc_intent_lock();
some small fixes in other area

18 years agoosd: implement (trivial) ->dt_body_operaions
nikita [Tue, 25 Jul 2006 20:42:43 +0000 (20:42 +0000)]
osd: implement (trivial) ->dt_body_operaions

18 years ago- many fixes in readdir proto.
yury [Tue, 25 Jul 2006 17:05:57 +0000 (17:05 +0000)]
- many fixes in readdir proto.

18 years agohandle ENODATA error
huanghua [Tue, 25 Jul 2006 16:14:47 +0000 (16:14 +0000)]
handle ENODATA error

18 years agofinally get rid of the defect which caused by a wrong comparism in ldlm_cli_enqueue():
huanghua [Tue, 25 Jul 2006 15:22:57 +0000 (15:22 +0000)]
finally get rid of the defect which caused by a wrong comparism in ldlm_cli_enqueue():
compare with res_id completely.

18 years agoxattr support in md/dt stack
nikita [Tue, 25 Jul 2006 13:09:32 +0000 (13:09 +0000)]
xattr support in md/dt stack

18 years agofixed some bug during testing:
huanghua [Tue, 25 Jul 2006 07:57:25 +0000 (07:57 +0000)]
fixed some bug during testing:
(1) add osd_mksym() and osd_mknod() empty functions to avoid OOPS;
(2) temporarily commentted out a sanity checking in lsm_lmm_verify_common();
(3) a small fix in mdt_reint_unlink().

18 years agoremove compile warning due to incompatible interface definition.
huanghua [Tue, 25 Jul 2006 03:29:50 +0000 (03:29 +0000)]
remove compile warning due to incompatible interface definition.

18 years agoremove compile warning due to imcompatible interface definition.
huanghua [Tue, 25 Jul 2006 03:26:58 +0000 (03:26 +0000)]
remove compile warning due to imcompatible interface definition.

18 years agobeautify the code.
huanghua [Tue, 25 Jul 2006 03:10:11 +0000 (03:10 +0000)]
beautify the code.

18 years agoadd ->{do,moo}_xattr_list() method to list existing extended attributes
nikita [Mon, 24 Jul 2006 19:25:57 +0000 (19:25 +0000)]
add ->{do,moo}_xattr_list() method to list existing extended attributes

18 years agoext2_check_page(): terminate error message with \n
nikita [Mon, 24 Jul 2006 19:24:28 +0000 (19:24 +0000)]
ext2_check_page(): terminate error message with \n

18 years agofixed a defect in mdt_reint_rename(): if srcdir == dstdir, we only should take a...
huanghua [Mon, 24 Jul 2006 09:40:09 +0000 (09:40 +0000)]
fixed a defect in mdt_reint_rename(): if srcdir == dstdir, we only should take a lock to avoid deadlock. Please notice, much more deadlock situations should be avoided in the future!

18 years agosimplify global lu_* initializations
nikita [Mon, 24 Jul 2006 06:14:59 +0000 (06:14 +0000)]
simplify global lu_* initializations

18 years agosome fixes in readpage:
huanghua [Mon, 24 Jul 2006 03:28:09 +0000 (03:28 +0000)]
some fixes in readpage:
(1) alloc lu_rdpd->rp_pages[][];
(2) remove some unused variables;

18 years agoBranch: b_new_cmd
wangdi [Sun, 23 Jul 2006 14:19:04 +0000 (14:19 +0000)]
Branch: b_new_cmd
replace !handle with IS_ERR(handle)

18 years ago- rdpg allocated in thread_info instead of stack.
yury [Sun, 23 Jul 2006 11:46:26 +0000 (11:46 +0000)]
- rdpg allocated in thread_info instead of stack.

18 years agoBranch: b_new_cmd
wangdi [Sun, 23 Jul 2006 10:45:22 +0000 (10:45 +0000)]
Branch: b_new_cmd
update lov and llog on mdd

18 years ago- fixes in readdir proto.
yury [Sun, 23 Jul 2006 10:31:18 +0000 (10:31 +0000)]
- fixes in readdir proto.

18 years ago- added basic readdir stuff;
yury [Sun, 23 Jul 2006 10:02:00 +0000 (10:02 +0000)]
- added basic readdir stuff;
- fixed bug in mdt_handle_common()

18 years agofix typo
nikita [Sat, 22 Jul 2006 11:07:00 +0000 (11:07 +0000)]
fix typo

18 years agoupdates to lu_object printing code:
nikita [Fri, 21 Jul 2006 19:25:56 +0000 (19:25 +0000)]
updates to lu_object printing code:

 - print objects into log (libcfs_debug_msg());

 - LU_OBJECT_DEBUG() macro.

18 years agoosd: add error handling in osd_object_ref_{add,del}()
nikita [Fri, 21 Jul 2006 19:24:42 +0000 (19:24 +0000)]
osd: add error handling in osd_object_ref_{add,del}()

18 years agofix forward declaration
nikita [Fri, 21 Jul 2006 19:24:03 +0000 (19:24 +0000)]
fix forward declaration

18 years agoll_fid_fini(): remove duplicate RETURN()
nikita [Fri, 21 Jul 2006 19:23:08 +0000 (19:23 +0000)]
ll_fid_fini(): remove duplicate RETURN()

18 years agoiam: small cleanups, to remove compiler warnings
nikita [Fri, 21 Jul 2006 19:21:59 +0000 (19:21 +0000)]
iam: small cleanups, to remove compiler warnings

18 years agodt_object_operations: local ->do_ref_{add,del}() cannot fail: this assumption simplif...
nikita [Fri, 21 Jul 2006 19:20:21 +0000 (19:20 +0000)]
dt_object_operations: local ->do_ref_{add,del}() cannot fail: this assumption simplifies error handling in higher layers considerably

18 years agofld_client_init(): conditionalize label only used by __KERNEL__ code
nikita [Fri, 21 Jul 2006 19:19:25 +0000 (19:19 +0000)]
fld_client_init(): conditionalize label only used by __KERNEL__ code

18 years ago- make liblustre build.
yury [Fri, 21 Jul 2006 12:40:15 +0000 (12:40 +0000)]
- make liblustre build.

18 years agoadded some debug code
huanghua [Fri, 21 Jul 2006 09:36:26 +0000 (09:36 +0000)]
added some debug code

18 years agomodified the mdt_object_unlock() interface:
huanghua [Fri, 21 Jul 2006 09:14:09 +0000 (09:14 +0000)]
modified the mdt_object_unlock() interface:
(1) add another parameter "int decref";
(1.1) if decref, call ldlm_lock_decref() to drop the lock;
(1.2) else call ptlrpc_save_lock() to save to lock into request.
(2) if some operation has transaction and success, we need to save the lock,
    otherwise, we just drop the lock.

18 years agocleanup & fix according to code inspection result from nikita
huanghua [Fri, 21 Jul 2006 07:54:29 +0000 (07:54 +0000)]
cleanup & fix according to code inspection result from nikita

18 years agoremove debug code; restore MAX_MD_SIZE to a smaller one
huanghua [Fri, 21 Jul 2006 06:13:09 +0000 (06:13 +0000)]
remove debug code; restore MAX_MD_SIZE to a smaller one

18 years agomodified open handling, return lov ea to client.
huanghua [Fri, 21 Jul 2006 05:35:02 +0000 (05:35 +0000)]
modified open handling, return lov ea to client.

18 years agomdd: ref_{add,del}(): simplifications, cleanups, and fixes
nikita [Thu, 20 Jul 2006 22:59:08 +0000 (22:59 +0000)]
mdd: ref_{add,del}(): simplifications, cleanups, and fixes

18 years agoosd: implement ->dt_conf_get()
nikita [Thu, 20 Jul 2006 22:58:30 +0000 (22:58 +0000)]
osd: implement ->dt_conf_get()

18 years agodt: add ->dt_conf_get() operation
nikita [Thu, 20 Jul 2006 22:58:11 +0000 (22:58 +0000)]
dt: add ->dt_conf_get() operation

18 years agomdt: simplify rc vs. ->rq_status error reporting: *everything* is reported through...
nikita [Thu, 20 Jul 2006 21:19:54 +0000 (21:19 +0000)]
mdt: simplify rc vs. ->rq_status error reporting: *everything* is reported through ->rq_status

18 years agomdd: 0. add and use mdd2lu_obj(); 1. implement mdd_dir_is_empty(), 2. __mdd_object_in...
nikita [Thu, 20 Jul 2006 20:38:47 +0000 (20:38 +0000)]
mdd: 0. add and use mdd2lu_obj(); 1. implement mdd_dir_is_empty(), 2. __mdd_object_initialize(): add dot and dotdot into newly created directory

18 years agomdt: some preliminary cleanup of readpage code
nikita [Thu, 20 Jul 2006 20:37:16 +0000 (20:37 +0000)]
mdt: some preliminary cleanup of readpage code

18 years agoosd: implement index iterations dt_index_operations
nikita [Thu, 20 Jul 2006 20:36:29 +0000 (20:36 +0000)]
osd: implement index iterations dt_index_operations

18 years agoexport iam_it_*() functions
nikita [Thu, 20 Jul 2006 20:35:41 +0000 (20:35 +0000)]
export iam_it_*() functions