Whamcloud - gitweb
- fixes in split:
authoryury <yury>
Sat, 14 Oct 2006 18:09:17 +0000 (18:09 +0000)
committeryury <yury>
Sat, 14 Oct 2006 18:09:17 +0000 (18:09 +0000)
commit78310d6d1742cc9b8ef757a8fd4b1718e5f72193
treeb33ecbe6eef6b5107e651639c88ec1b46c19c1c3
parent7954f8f43328c07fc976d55db455cba56e0e4a74
- fixes in split:
  - split dir may happen no any MDS - fids of slaves and master should be saved in coherence with mdsnum. Do not save fid of slave on mds0 to mea[2] for instance. This is what LMV needs in some cases and this is what may allow to get rid of doing additional fld_lookups in LMV;

  - in cmm_create_slave_objects() pass to cmm_create_remote_obj() last arg as sizeof(*slave_lmv) instead of sizeof(slave_lmv), otherwise edatalen is not correct and mea on slaves get broken;

  - in many split functions, look like this: for (i = 1; i < cmm->cmm_tgt_count + 1; i++) is not correct even for formet solution, it makes it possible to overwrite/access data out of array memory;

  - in cmm_create_slave_objects() memory leak in case of error (OBD_FREE_PTR(lmv) should be added);
  - cleanups, comments.
lustre/cmm/cmm_internal.h
lustre/cmm/cmm_split.c