Whamcloud - gitweb
fs/lustre-release.git
17 years agoAdd ASSERT for filename validity check.
fanyong [Fri, 24 Nov 2006 09:49:29 +0000 (09:49 +0000)]
Add ASSERT for filename validity check.

17 years agobranch: b_new_cmd
ericm [Fri, 24 Nov 2006 04:36:51 +0000 (04:36 +0000)]
branch: b_new_cmd
back port from b1_8_gss:
 - don't taint passed-in obj until we know everything is fine.
 - multi-process client gss daemon, to prevent one unresponsive server
   block other context negotiation. nfs-utils patch not updated though.
 - fix regression of exporting context of des3-hmac-sha1 on old kerberos.

17 years agoosd: disable back expensive fid_is_local() assertion.
nikita [Thu, 23 Nov 2006 18:45:22 +0000 (18:45 +0000)]
osd: disable back expensive fid_is_local() assertion.

17 years agolmv/iam: new "scalable" readdir.
nikita [Thu, 23 Nov 2006 18:44:45 +0000 (18:44 +0000)]
lmv/iam: new "scalable" readdir.

17 years agofid: factor common function out.
nikita [Thu, 23 Nov 2006 18:06:59 +0000 (18:06 +0000)]
fid: factor common function out.

17 years agoliblustre: add hash_long() from linux/hash.c.
nikita [Thu, 23 Nov 2006 18:05:40 +0000 (18:05 +0000)]
liblustre: add hash_long() from linux/hash.c.

17 years agoDo NOT count the terminating '\0' of filename for length.
fanyong [Thu, 23 Nov 2006 14:01:52 +0000 (14:01 +0000)]
Do NOT count the terminating '\0' of filename for length.

17 years agoremote operation should set MDS_CROSS_REF flag.
huanghua [Thu, 23 Nov 2006 10:09:12 +0000 (10:09 +0000)]
remote operation should set MDS_CROSS_REF flag.

17 years agoMore sanity check for filename length.
fanyong [Thu, 23 Nov 2006 06:39:59 +0000 (06:39 +0000)]
More sanity check for filename length.

17 years agofix a typo and clear out the fid.
huanghua [Thu, 23 Nov 2006 05:17:28 +0000 (05:17 +0000)]
fix a typo and clear out the fid.

17 years agomore precise debugging code.
huanghua [Thu, 23 Nov 2006 02:20:44 +0000 (02:20 +0000)]
more precise debugging code.

17 years agoBranch: b_new_cmd
wangdi [Wed, 22 Nov 2006 16:34:15 +0000 (16:34 +0000)]
Branch: b_new_cmd
miss kunmap for those reset offset page. found by umka

17 years agoMore sanity check for nlink of file.
fanyong [Wed, 22 Nov 2006 14:55:39 +0000 (14:55 +0000)]
More sanity check for nlink of file.

17 years agojbd-checkpoint-on-commit: fix locking.
nikita [Wed, 22 Nov 2006 14:43:48 +0000 (14:43 +0000)]
jbd-checkpoint-on-commit: fix locking.

17 years ago- fix recovery issue. dropping obd_recovering flag before notify() cause loosing
tappro [Wed, 22 Nov 2006 13:38:51 +0000 (13:38 +0000)]
- fix recovery issue. dropping obd_recovering flag before notify() cause loosing
  the objects on OST due to orphan destroying. The obd_recovering should be
  zeroed after notify()

17 years ago- make sure there is transno for close/done_write() to keep them in replay queue
tappro [Wed, 22 Nov 2006 13:36:06 +0000 (13:36 +0000)]
- make sure there is transno for close/done_write() to keep them in replay queue

17 years ago- count -EAGAIN during close() as valid answer
tappro [Wed, 22 Nov 2006 13:22:55 +0000 (13:22 +0000)]
- count -EAGAIN during close() as valid answer

17 years ago- fix objid update call. It should be done before transaction stop. Separate it
tappro [Wed, 22 Nov 2006 13:17:03 +0000 (13:17 +0000)]
- fix objid update call. It should be done before transaction stop. Separate it
  from freeing lov_create data.
- encapsulate checking no_lov_create flag inside mdd_lov_create

17 years agoadd debug code to catch b11241
huanghua [Wed, 22 Nov 2006 13:06:18 +0000 (13:06 +0000)]
add debug code to catch b11241

17 years agolet export Lustre over NFS work.
huanghua [Wed, 22 Nov 2006 07:37:30 +0000 (07:37 +0000)]
let export Lustre over NFS work.
basic test works now. More tests needed.

17 years agofix oops while accessing NULL pointer
huanghua [Wed, 22 Nov 2006 07:36:34 +0000 (07:36 +0000)]
fix oops while accessing NULL pointer

17 years ago(1) Drop unnecessary permission check for name_{insert,remove}.
fanyong [Wed, 22 Nov 2006 03:31:53 +0000 (03:31 +0000)]
(1) Drop unnecessary permission check for name_{insert,remove}.
(2) Do local permission check for name_{insert,remove} before remote ops.
(3) Add some comment.

17 years agoAdd symlink target length check.
fanyong [Wed, 22 Nov 2006 02:23:20 +0000 (02:23 +0000)]
Add symlink target length check.

17 years agoiam: revert changes to IAM_LOOKUP_LAST that might caused spurious -ENOENT.
nikita [Tue, 21 Nov 2006 21:12:00 +0000 (21:12 +0000)]
iam: revert changes to IAM_LOOKUP_LAST that might caused spurious -ENOENT.

17 years agolu: ultimately hash function that works(tm)... famous last words.
nikita [Tue, 21 Nov 2006 17:15:20 +0000 (17:15 +0000)]
lu: ultimately hash function that works(tm)... famous last words.

17 years agoadd per-thread debugging flags. Use then to control CDEBUG().
nikita [Tue, 21 Nov 2006 14:24:40 +0000 (14:24 +0000)]
add per-thread debugging flags. Use then to control CDEBUG().

17 years agolu/mdt: more site stats.
nikita [Tue, 21 Nov 2006 14:22:45 +0000 (14:22 +0000)]
lu/mdt: more site stats.

17 years agoThe sixth field in the csv entry is "fsname", so just move fsname option to its position.
yujian [Tue, 21 Nov 2006 08:45:49 +0000 (08:45 +0000)]
The sixth field in the csv entry is "fsname", so just move fsname option to its position.

17 years ago(1) For remote create, only continue when lookup return ENOENT
fanyong [Tue, 21 Nov 2006 07:40:33 +0000 (07:40 +0000)]
(1) For remote create, only continue when lookup return ENOENT
(2) For mdd_lookup, do NOT return ENOENT when parent is dead obj.
    ENOENT means child does not exist.

17 years agoMiss to set spec->u.sp_ea.fid for remote object_create with DEFAULT_ACL before.
fanyong [Tue, 21 Nov 2006 06:04:40 +0000 (06:04 +0000)]
Miss to set spec->u.sp_ea.fid for remote object_create with DEFAULT_ACL before.

17 years ago(1) do not return any entry to client for a dead directory;
huanghua [Tue, 21 Nov 2006 02:36:42 +0000 (02:36 +0000)]
(1) do not return any entry to client for a dead directory;
(2) add nlink overflow checking for mkdir. more checking will be added soon.

17 years agoChange the key for objects to their name.
brian [Tue, 21 Nov 2006 02:16:01 +0000 (02:16 +0000)]
Change the key for objects to their name.
Support "--lmv <lmvname>" for CMD.  Using --lmv is how LMVs were built with
lmc in 1.4 and since we are trying to source lmc, we should simply use the
same syntax.
find_obj()->find_objs() now returns all objects that match.
So callers need to expect lists and deal with them.  In a lot of cases a
caller can *know* that the list returned will be only one item if the lmc
file is contructed correctly.
Support specification of multiple MDTs on the same MDS using different
devices.
For this, the mountpoint of the MDT needs to use the fsname to make it
unique.
The MDTs and OSTs also need to be created with fsnames.
Use the --node <name> from the lmc mtpt object as the fsname.

17 years agobranch: b_new_cmd
ericm [Tue, 21 Nov 2006 01:01:31 +0000 (01:01 +0000)]
branch: b_new_cmd
more fix to gss module loading: waiting init channel be opened in gss
module itself.

17 years ago__find_get_block_slow-scale.patch: attempt to reduce contention on bd_mapping->privat...
nikita [Mon, 20 Nov 2006 23:17:56 +0000 (23:17 +0000)]
__find_get_block_slow-scale.patch: attempt to reduce contention on bd_mapping->private_lock.

17 years agoiam: 1. more correctness checks, 2. fixes to readdir locking.
nikita [Mon, 20 Nov 2006 23:16:22 +0000 (23:16 +0000)]
iam: 1. more correctness checks, 2. fixes to readdir locking.

17 years agobranch: b_new_cmd
ericm [Mon, 20 Nov 2006 23:07:18 +0000 (23:07 +0000)]
branch: b_new_cmd
gss daemon debugging message.

17 years ago- in cmm_split_check() passed to OBD_FREE correct size (though this is not bug, as...
yury [Mon, 20 Nov 2006 15:00:15 +0000 (15:00 +0000)]
- in cmm_split_check() passed to OBD_FREE correct size (though this is not bug, as size does not matter in linux memory manager);

- cleanups in mdd_lov.c

17 years agolu: now that we have larger hash table, switch to the simpler hash.
nikita [Mon, 20 Nov 2006 14:35:12 +0000 (14:35 +0000)]
lu: now that we have larger hash table, switch to the simpler hash.

17 years agoiam: remove wrong assertion introduced by previous commit.
nikita [Mon, 20 Nov 2006 13:44:52 +0000 (13:44 +0000)]
iam: remove wrong assertion introduced by previous commit.

17 years agoiam: 0. do not unlock leaf while advancing index part. 1. avoid binary search when...
nikita [Mon, 20 Nov 2006 13:40:11 +0000 (13:40 +0000)]
iam: 0. do not unlock leaf while advancing index part. 1. avoid binary search when possible.

17 years agolu/mdt: more stat stats.
nikita [Mon, 20 Nov 2006 13:38:01 +0000 (13:38 +0000)]
lu/mdt: more stat stats.

17 years ago- simplify and optimize lmv_placement_policy(). By now it does not do additional...
yury [Mon, 20 Nov 2006 13:05:20 +0000 (13:05 +0000)]
- simplify and optimize lmv_placement_policy(). By now it does not do additional raw_name2idx()

17 years agoBranch: b_new_cmd
wangdi [Mon, 20 Nov 2006 10:43:48 +0000 (10:43 +0000)]
Branch: b_new_cmd
add debug_info in ll_file_read for test36

17 years agolu: use vmalloc() to allocate hash table.
nikita [Mon, 20 Nov 2006 06:26:13 +0000 (06:26 +0000)]
lu: use vmalloc() to allocate hash table.

17 years agolog_do_checkpoint(): fix return value.
nikita [Mon, 20 Nov 2006 06:25:38 +0000 (06:25 +0000)]
log_do_checkpoint(): fix return value.

17 years ago(1) use hash value 0xfffffffeUL to mark end of a directory instead of -1;
huanghua [Mon, 20 Nov 2006 02:57:14 +0000 (02:57 +0000)]
(1) use hash value 0xfffffffeUL to mark end of a directory instead of -1;
(2) add a TODO to handle readdir from removed dir. mdd_object is set to be dead when its nlink drops to zero.

17 years agoiam fixes:
nikita [Mon, 20 Nov 2006 01:02:10 +0000 (01:02 +0000)]
iam fixes:

 - defect: iam: split_index_node(): adjust ->curidx of split frame (45).

 - defect: iam: ipd was shared in iam-uapi (240).

 - defect: iam: dx_check_full_path(): renew ->at (60).

17 years agojbd-checkpoint-on-commit: dix possible deadlock.
nikita [Sun, 19 Nov 2006 14:50:21 +0000 (14:50 +0000)]
jbd-checkpoint-on-commit: dix possible deadlock.

17 years ago add 'exist' info in lu_object_header_print()
tappro [Sun, 19 Nov 2006 13:46:14 +0000 (13:46 +0000)]
 add 'exist' info in lu_object_header_print()

17 years agodebug for failed object
tappro [Sun, 19 Nov 2006 13:38:08 +0000 (13:38 +0000)]
debug for failed object

17 years agouse nr_free_buffer_pages() to calculate hash table size. It has to be exported.
nikita [Sun, 19 Nov 2006 12:39:55 +0000 (12:39 +0000)]
use nr_free_buffer_pages() to calculate hash table size. It has to be exported.

17 years ago- led_lock is correct here
tappro [Sun, 19 Nov 2006 11:36:30 +0000 (11:36 +0000)]
- led_lock is correct here

17 years ago- wrong lock was used to protect namespace operation
tappro [Sun, 19 Nov 2006 08:46:15 +0000 (08:46 +0000)]
- wrong lock was used to protect namespace operation

17 years agofix possible deadlock in jbd-checkpoint-on-commit.
nikita [Sun, 19 Nov 2006 00:55:23 +0000 (00:55 +0000)]
fix possible deadlock in jbd-checkpoint-on-commit.

17 years agoiam: remove unreliable correctness check.
nikita [Sun, 19 Nov 2006 00:54:40 +0000 (00:54 +0000)]
iam: remove unreliable correctness check.

17 years agomdt/lu: add lu_site statistics at /proc/fs/lustre/mdt/*/site_stats
nikita [Sat, 18 Nov 2006 18:52:00 +0000 (18:52 +0000)]
mdt/lu: add lu_site statistics at /proc/fs/lustre/mdt/*/site_stats

17 years ago- more debug
tappro [Sat, 18 Nov 2006 10:06:31 +0000 (10:06 +0000)]
- more debug

17 years ago- raw_lookup() is not intent operation, no need to handle disposion
tappro [Sat, 18 Nov 2006 08:11:17 +0000 (08:11 +0000)]
- raw_lookup() is not intent operation, no need to handle disposion
- add debug

17 years agoBranch: b_new_cmd
wangdi [Sat, 18 Nov 2006 03:55:43 +0000 (03:55 +0000)]
Branch: b_new_cmd
add this assert for debuging b11123

17 years agobranch: b_new_cmd
ericm [Sat, 18 Nov 2006 03:29:06 +0000 (03:29 +0000)]
branch: b_new_cmd
in case of gss module newly loaded, gss service upcall might be issued
before channel be opened by gss daemon, nfsv4 cache will directly drop
the upcall. workaround it by sleep after module loaded; and in gss daemon
try to keep channel always open.

17 years ago- in lmv_placement_policy() add missed lmv_object_put()
yury [Fri, 17 Nov 2006 17:28:42 +0000 (17:28 +0000)]
- in lmv_placement_policy() add missed lmv_object_put()

17 years agoobd: use ({ ... }) instead of do { ... } while (0) in OBD macros.
nikita [Fri, 17 Nov 2006 15:57:35 +0000 (15:57 +0000)]
obd: use ({ ... }) instead of do { ... } while (0) in OBD macros.

17 years agolu: make site hash table dynamically adjustable.
nikita [Fri, 17 Nov 2006 15:56:53 +0000 (15:56 +0000)]
lu: make site hash table dynamically adjustable.

17 years ago- fixed one more race in LMV which made it posssible to exist cross-ref files.
yury [Fri, 17 Nov 2006 15:08:49 +0000 (15:08 +0000)]
- fixed one more race in LMV which made it posssible to exist cross-ref files.

17 years agoBranch b_new_cmd
vitaly [Fri, 17 Nov 2006 13:08:42 +0000 (13:08 +0000)]
Branch b_new_cmd
b=11224

let dentry to be already hashed at the time of ll_create_it

17 years agoFix about remote acl operation:
fanyong [Fri, 17 Nov 2006 09:24:34 +0000 (09:24 +0000)]
Fix about remote acl operation:
(1) push_ctxt can not switch user space context (uid / gid),
    do not use it any more.
(2) ship user info (uid / gid) as argv[] to user space by upcall,
    switch user by setuid / setgid in user space.
(3) do not cache for remote acl upcall,
    do not use fid as key for remote acl upcall,
    it maybe cause wrong result when concurrent remote acl operations.
(4) remove unused code.

17 years agoFor change file time operation (utime),
fanyong [Fri, 17 Nov 2006 03:14:29 +0000 (03:14 +0000)]
For change file time operation (utime),
file owner and CAP_FOWNER privilege are preferential.

17 years agoBranch b_new_cmd
vitaly [Thu, 16 Nov 2006 10:54:39 +0000 (10:54 +0000)]
Branch b_new_cmd
b=11103

Do not let dentry to be unhashed after create,
some callers, e.g. do_coredump, expect it to be hashed.

17 years agoDo UCRED_OLD authentication when gss disabled.
fanyong [Thu, 16 Nov 2006 10:22:06 +0000 (10:22 +0000)]
Do UCRED_OLD authentication when gss disabled.

17 years ago(1) Remove fs privilege (CAP_FS_MASK) for non-root user, it can result in
fanyong [Thu, 16 Nov 2006 07:41:42 +0000 (07:41 +0000)]
(1) Remove fs privilege (CAP_FS_MASK) for non-root user, it can result in
    invalid authorization.
(2) Do UCRED_OLD authentication for inter-mdt ops and for the case that
    client and mdt on the same node. (gss can not distinguish the two cases)
(3) Fix Bug of authority promote for inter-mdt ops.

17 years agobranch: b_new_cmd
ericm [Thu, 16 Nov 2006 07:34:58 +0000 (07:34 +0000)]
branch: b_new_cmd
fix gss daemons build, introduced by last commit.

17 years agoDrop unnecessary warning message in the scripts, and make it more compatible.
fanyong [Thu, 16 Nov 2006 06:41:44 +0000 (06:41 +0000)]
Drop unnecessary warning message in the scripts, and make it more compatible.

17 years agobranch: b_new_cmd
ericm [Thu, 16 Nov 2006 04:33:12 +0000 (04:33 +0000)]
branch: b_new_cmd
port from b1_8_gss: gss daemons sync to nfs-utils-1.0.10-CITI-3

17 years agofile context_lucid.c was added on branch b_new_cmd on 2006-11-16 04:33:12 +0000
ericm [Thu, 16 Nov 2006 04:03:09 +0000 (04:03 +0000)]
file context_lucid.c was added on branch b_new_cmd on 2006-11-16 04:33:12 +0000

17 years agochange debug subsystem according to nathan's cleanup
huanghua [Thu, 16 Nov 2006 03:28:25 +0000 (03:28 +0000)]
change debug subsystem according to nathan's cleanup

17 years agoiam: add more debugging based on dynlock_is_locked().
nikita [Wed, 15 Nov 2006 22:06:10 +0000 (22:06 +0000)]
iam: add more debugging based on dynlock_is_locked().

17 years agodynlocks: add dynlock_is_locked() function.
nikita [Wed, 15 Nov 2006 22:05:15 +0000 (22:05 +0000)]
dynlocks: add dynlock_is_locked() function.

17 years agomdd: put md_ucred() back.
nikita [Wed, 15 Nov 2006 22:04:38 +0000 (22:04 +0000)]
mdd: put md_ucred() back.

17 years ago- small cleanups.
yury [Wed, 15 Nov 2006 18:54:50 +0000 (18:54 +0000)]
- small cleanups.

17 years agoiam: 0. fix assertion in split_index_node(). 1. remove ext3_journal_get_write_access...
nikita [Wed, 15 Nov 2006 17:26:02 +0000 (17:26 +0000)]
iam: 0. fix assertion in split_index_node(). 1. remove ext3_journal_get_write_access() from ext3_append().

17 years agomkfs_lustre: let us try smaller inodes.
nikita [Wed, 15 Nov 2006 17:24:38 +0000 (17:24 +0000)]
mkfs_lustre: let us try smaller inodes.

17 years ago- fixes in lov to make it a bit more parallel creates friendly.
yury [Wed, 15 Nov 2006 14:14:51 +0000 (14:14 +0000)]
- fixes in lov to make it a bit more parallel creates friendly.

17 years agolu_object: return back old hash: hash_long() proved to be a disadvantage.
nikita [Wed, 15 Nov 2006 13:27:28 +0000 (13:27 +0000)]
lu_object: return back old hash: hash_long() proved to be a disadvantage.

17 years agoiam: disable dx_bug11027_check().
nikita [Wed, 15 Nov 2006 13:26:03 +0000 (13:26 +0000)]
iam: disable dx_bug11027_check().

17 years ago- modules order fixed
yury [Wed, 15 Nov 2006 11:49:11 +0000 (11:49 +0000)]
- modules order fixed

17 years agoBranch:b_new_cmd
wangdi [Wed, 15 Nov 2006 11:16:00 +0000 (11:16 +0000)]
Branch:b_new_cmd
obd_recoverying should be set to 0 before obd_notify in mdd_recovery_complete.
otherwise llog may not be initialized correctly in recovery.
b:11217

17 years ago(1) mdd_name_insert(), the return value is lost;
huanghua [Wed, 15 Nov 2006 10:28:34 +0000 (10:28 +0000)]
(1) mdd_name_insert(), the return value is lost;
(2) The cmr_create() should check the child existence at very first.

17 years agoiam: fix pdirops locking during leaf split.
nikita [Wed, 15 Nov 2006 00:13:19 +0000 (00:13 +0000)]
iam: fix pdirops locking during leaf split.

17 years ago- added more stats to mdt operations;
yury [Tue, 14 Nov 2006 17:39:19 +0000 (17:39 +0000)]
- added more stats to mdt operations;
- fixes in modules load order.

17 years agoTest the value of the failo{ver,ut} flags before deciding to add a format
brian [Tue, 14 Nov 2006 16:28:23 +0000 (16:28 +0000)]
Test the value of the failo{ver,ut} flags before deciding to add a format
param.

17 years ago- fixed race in lmv about fid allocation. It allocated fid on one target and sent...
yury [Tue, 14 Nov 2006 16:21:20 +0000 (16:21 +0000)]
- fixed race in lmv about fid allocation. It allocated fid on one target and sent create operation to anorher mds if dir got split in the middle;
- added proc stats to mdt.

17 years agoadd more debugging for unlink -ENOENT bug on buffalo.
nikita [Tue, 14 Nov 2006 13:13:55 +0000 (13:13 +0000)]
add more debugging for unlink -ENOENT bug on buffalo.

17 years agobranch: b_new_cmd
ericm [Tue, 14 Nov 2006 04:13:08 +0000 (04:13 +0000)]
branch: b_new_cmd
b=11215
fix wrong assertion.

17 years agojbd: add jbd-checkpoint-on-commit.patch.
nikita [Mon, 13 Nov 2006 22:37:37 +0000 (22:37 +0000)]
jbd: add jbd-checkpoint-on-commit.patch.

17 years agoosd: debugging dump index leaf node when osd_inode_remove() fails to find a record...
nikita [Mon, 13 Nov 2006 17:34:14 +0000 (17:34 +0000)]
osd: debugging dump index leaf node when osd_inode_remove() fails to find a record in oi.

17 years agoiam: debugging code for oi -ENOENT error.
nikita [Mon, 13 Nov 2006 17:33:32 +0000 (17:33 +0000)]
iam: debugging code for oi -ENOENT error.

17 years agolu_object: use hash_long() to hash fids.
nikita [Mon, 13 Nov 2006 14:14:29 +0000 (14:14 +0000)]
lu_object: use hash_long() to hash fids.

17 years agoosd: put back fid_is_local() assertion.
nikita [Mon, 13 Nov 2006 12:17:39 +0000 (12:17 +0000)]
osd: put back fid_is_local() assertion.

17 years agomdd_unlink(): fix format.
nikita [Mon, 13 Nov 2006 12:17:17 +0000 (12:17 +0000)]
mdd_unlink(): fix format.

17 years agoBranch b_new_cmd
vitaly [Mon, 13 Nov 2006 10:48:26 +0000 (10:48 +0000)]
Branch b_new_cmd
b=22564

eliminate the access to freed by ll_done_writing @och in ll_close_inode_openhandle.