Whamcloud - gitweb
- fixes and cleanups in error messages and in code.
authoryury <yury>
Fri, 19 Nov 2004 14:36:00 +0000 (14:36 +0000)
committeryury <yury>
Fri, 19 Nov 2004 14:36:00 +0000 (14:36 +0000)
commit81754566a6fa01c77ea809050b574100bcd58dfc
treedaa993753659fcf31e120e86cbd3210cb92acd8b
parent489fb564905e773b1e7ba0e3f0825333731a6873
- fixes and cleanups in error messages and in code.

- changed mds_alloc_inode_sid() to allocate lustre_id in memory if there is
no passed one. This makes mds stuff do not use lustre_id allocated on stack
if there is only need to allocate inode sid without using it later. This
makes stack consumption smaller by 40 bytes in each such a case.

- in mds_setup() whrn comparing strings passed from userspace use strncmp()
- root lustre_id should be set up also in cases when there is no profile.
- making do not use lustre_id allocated on stack in places where it is possible.

- moving mds_finish_transno() calling to place where dput() for dchild is
already called to make sure, that unlink op got to current transaction.

- lots of changes in lconf. MDSDEV stuff is changed substantionaly. Removing
bugs prone code, replacing it by new one about setting up MDS, LMV, etc.
Added more verbose messages about MDS, LMV configuration. Removed redundant
stuff about forming mount options. It now is moved to function and be used from
few places.

- fixes in CMOBD and COBD objects about using LMV.

- fixed double client_ref adding to LMV, what led to double client config
writing on MDS setup.
14 files changed:
lustre/liblustre/namei.c
lustre/lmv/lmv_obd.c
lustre/lvfs/fsfilt_ext3.c
lustre/mdc/mdc_locks.c
lustre/mds/handler.c
lustre/mds/mds_fs.c
lustre/mds/mds_lmv.c
lustre/mds/mds_reint.c
lustre/obdclass/genops.c
lustre/obdclass/obd_config.c
lustre/smfs/inode.c
lustre/tests/replay-dual.sh
lustre/utils/lconf
lustre/utils/lmc