Whamcloud - gitweb
fs/lustre-release.git
9 years agoLU-403 Add support for RHEL5 kernel 2.6.18-238.12.1.el5
Oleg Drokin [Thu, 9 Jun 2011 22:59:27 +0000 (18:59 -0400)]
LU-403 Add support for RHEL5 kernel 2.6.18-238.12.1.el5

Change-Id: I0fcf8f9158659bbb8a9c53d7b0f22bcabc84ed66
Signed-off-by: Oleg Drokin <green@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/931
Tested-by: Hudson
Reviewed-by: Yang Sheng <ys@whamcloud.com>
9 years agoLU-397 Set 'lsr_flags' as 'LU_SEQ_RANGE_MDT' for old 2.0 client
nasf [Tue, 7 Jun 2011 03:41:24 +0000 (11:41 +0800)]
LU-397 Set 'lsr_flags' as 'LU_SEQ_RANGE_MDT' for old 2.0 client

Lustre 2.x introduces server identifier into lu_seq_range to distinguish
MDT and OST fids. But for old 2.0 client, it does not specify such
identifier/flags. So use 'OBD_CONNECT_SEQ_RANGE' to distinguish whether
it is old 2.0 client or not. For old 2.0 client, set the 'lsr_flags' as
'LU_SEQ_RANGE_MDT' by default.

Change-Id: I652caa637959268e1da499370a0efd356ff98bbe
Signed-off-by: nasf <yong.fan@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/902
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Hudson
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-395 Fix obd_zombie_barrier()
Mikhail Pershin [Mon, 6 Jun 2011 19:12:25 +0000 (23:12 +0400)]
LU-395 Fix obd_zombie_barrier()

The obd_zombie_barrier() is waiting for obd_zombie_export list is empty
and exit, but export may be not yet destroyed. This produces race between export
destroying and other cleanups like lut_fini()

The patch introduces zombies_in_destroy variable which is counter, and
obd_zombie_barrier is checking it.

Change-Id: I0fd4a1023efade1cb40d4c36e59169a25a525ed1
Signed-off-by: Mikhail Pershin <tappro@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/899
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-313 re-enable lfsck test to run by default
Andreas Dilger [Mon, 16 May 2011 06:21:43 +0000 (00:21 -0600)]
LU-313 re-enable lfsck test to run by default

Due to bug 13698, the lfsck part of the lfsck.sh test script was
disabled by default.   After the fixes in LU-113 were landed, lfsck
should work again.  Remove LFSCK_SKIP checks so lfsck.sh actually runs
lfsck instead of silently skipping it unless LFSCK_SKIP=no is set.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Idf7f0606c3937b0311db998032d58475076ab1a8
Reviewed-on: http://review.whamcloud.com/552
Tested-by: Hudson
Reviewed-by: Yu Jian <yujian@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Chris Gearing <chris@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-399 do not use mke2fs -E resize for large LUNs
Andreas Dilger [Wed, 8 Jun 2011 08:34:44 +0000 (02:34 -0600)]
LU-399 do not use mke2fs -E resize for large LUNs

The mo_device_size variable is in units of kB, so take this into
account correctly when computing the filesystem block count.
The "-E resize" option is being used to align metadata on 1MB IO
boundaries, but it does not work for devices larger than 2^32 blocks.

A better long-term solution is to fix mke2fs so that it does this
alignment itself based on the s_raid_stride value.

Change-Id: I2e4104b8ad490076bfaa6a49842124d79e3bf880
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/912
Tested-by: Hudson
Reviewed-by: Yu Jian <yujian@whamcloud.com>
Tested-by: Yu Jian <yujian@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-64 define LOV default layout as FID_SEQ value
Andreas Dilger [Mon, 16 May 2011 06:02:24 +0000 (00:02 -0600)]
LU-64 define LOV default layout as FID_SEQ value

For directories without any default striping information the MDS
sends a magic LOV_OBJECT_GROUP_DEFAULT value for the lmm_seq field.
Since this is really a magic FID_SEQ value, define it in the same
place as other FID_SEQ values as FID_SEQ_LOV_DEFAULT so that it is
visible.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I0ae9dc993d15aedb38ab79e40c67a687d956a6c4
Reviewed-on: http://review.whamcloud.com/910
Reviewed-by: Prakash Surya <surya1@llnl.gov>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-329 fix missing ost_lock_put() calls
Lai Siyao [Tue, 17 May 2011 05:39:49 +0000 (22:39 -0700)]
LU-329 fix missing ost_lock_put() calls

* The taken ost lock may be no put in some error cases.
* typo in ost_blocking_ost: oa --> oinfo.

Change-Id: I021494fcf901d2daeeb97f60e23562bcc88d990a
Signed-off-by: Lai Siyao <laisiyao@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/554
Tested-by: Hudson
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: wangdi <di.wang@whamcloud.com>
9 years agoLU-275 I/O errors when lustre uses multipath devices
Bobi Jam [Fri, 6 May 2011 05:07:25 +0000 (13:07 +0800)]
LU-275 I/O errors when lustre uses multipath devices

Change set_blockdev_tunables() routines to make it support multipath
device case.

Author: Gregoire Pichon <gregoire.pichon@bull.net>
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: If7a7d4a1788bb5c5139d5a5b229272dc2f294713
Reviewed-on: http://review.whamcloud.com/504
Tested-by: Hudson
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-342 add test for lfs to check missing OST
hongchao.zhang [Tue, 17 May 2011 07:48:17 +0000 (15:48 +0800)]
LU-342 add test for lfs to check missing OST

add test_90 in replay-single.sh to check whether "lfs find --obd"
and "lfs getstripe -r --obd" can deal with the case of some OST missed

Change-Id: I17ff9197051a035b726fd6e817adc145ea116292
Signed-off-by: Hongchao Zhang <hongchao.zhang@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/562
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Yu Jian <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-402 Update to rhel6.1 kernel 2.6.32-131.2.1.el6
Oleg Drokin [Wed, 8 Jun 2011 23:19:10 +0000 (19:19 -0400)]
LU-402 Update to rhel6.1 kernel 2.6.32-131.2.1.el6

Signed-off-by: Oleg Drokin <green@whamcloud.com>
Change-Id: I84a8536a46d1d7f28ac3eaef30ee8c3c7f0d0342
Reviewed-on: http://review.whamcloud.com/914
Tested-by: Hudson
9 years agoLU-163 Input valid 'mnt' parameter for 'dentry_open()'
nasf [Fri, 3 Jun 2011 16:55:27 +0000 (00:55 +0800)]
LU-163 Input valid 'mnt' parameter for 'dentry_open()'

It is required by new kernel (rhel6) for 'get_name()'
when re-export lustre through NFS.

Change-Id: I732ba2a91b6e1420e8e46910fddca67d04cedcde
Signed-off-by: nasf <yong.fan@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/892
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
9 years agoLU-307 Send parent FID from client to MDS on NFS open for striping info
nasf [Tue, 17 May 2011 11:32:09 +0000 (19:32 +0800)]
LU-307 Send parent FID from client to MDS on NFS open for striping info

Which is useful for delay created cases. and it is mainly for Lustre re-export
through NFS. If client does not give such hint, MDS will try to find parent by
the first fid in the link EA. Another fixes are about the protection of delay
creating OSTs objects concurrently.

Change-Id: I5dd72e0452303ca5ab7bff035ff85f83b5862d66
Signed-off-by: nasf <yong.fan@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/557
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Hudson
Reviewed-by: wangdi <di.wang@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-376 Positive LL_DIR_END_OFF to indicate the tail of dir hash/offset
nasf [Thu, 2 Jun 2011 06:44:32 +0000 (14:44 +0800)]
LU-376 Positive LL_DIR_END_OFF to indicate the tail of dir hash/offset

1) Keep 'MDS_DIR_END_OFF' unchanged (0xfffffffffffffffeULL) to simplify
   dir hash/offset related interoperability issues.
2) Introduce positive "LL_DIR_END_OFF" (0x7fffffffffffffffULL) on client
   to indicate the tail of dir hash/offset for up layer callers, like
   llseek(), readdir(), and so on.
3) Support new 2.x client to talk with old 2.0 server with 32bit hash.

Change-Id: I74c148482f91ed91dfffd608f98971566f1257ad
Signed-off-by: nasf <yong.fan@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/886
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Hudson
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoNew version 2.0.62 2.0.62.0 v2_0_62_0
Oleg Drokin [Tue, 7 Jun 2011 13:33:30 +0000 (09:33 -0400)]
New version 2.0.62

Change-Id: Ib5cd2b133bae72d8c2d8a52c35b3a734cae3ff69
Signed-off-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-64 Modify the behavior of ioctl on directories without EA set.
Prakash Surya [Wed, 27 Apr 2011 18:03:32 +0000 (11:03 -0700)]
LU-64 Modify the behavior of ioctl on directories without EA set.

This patch introduces the following functionality:

1. If an ioctl is performed to obtain the stripe attributes for a
   directory, then the following 3 possibilities can occur:
   a. If the directory in question DOES have it's EA set, then these
      EA values are returned to userspace.
   b. If the directory in question DOES NOT have it's EA set, AND it
      IS the root directory of the filesystem, then the filesystem's
      default EA values are returned to userspace.
   c. If the directory in question DOES NOT have it's EA set, AND it
      IS NOT the root directory of the filesystem, then no EA values
      are returned to userspace. Rather, an error is returned from
      the ioctl and errno is set to ENODATA.
2. lfs getstripe was updated to reflect this change in the ioctl
   interface.
   a. If lfs getstipe --raw is called on a directory other than the
      root directory of the filesystem, and this directory does not
      have any EA set, the filesystem's default values will not be
      printed. Rather, the raw values which mean "use the default"
      will be printed (e.g. stripe count: 0, stripe size: 0, stripe
      offset: -1).

Signed-off-by: Prakash Surya <surya1@llnl.gov>
Change-Id: Ieaaeaf54cce88f406008af4a926fac561900afc9
Reviewed-on: http://review.whamcloud.com/576
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-64 Make "lfs getstripe" directory output consistent.
Prakash Surya [Mon, 4 Apr 2011 20:45:34 +0000 (13:45 -0700)]
LU-64 Make "lfs getstripe" directory output consistent.

"lfs getstripe" should report the global default for any fields with
a value that means "use the default". This patch introduces the
following functionality:

1. If "lfs getstripe" is called on a directory and finds that striping
   EA is not set, the filesystem's defaults are looked up and printed.
2. If the striping EA is set, but the striping count and/or striping
   size has a value that means "use the default" (count = 0 and/or
   size = 0), the filesystem's default for that specific striping
   attribute is looked up and printed.
3. A new option to "lfs getstripe" is introduced; the "--raw" or
   "-R" option. If this option is specified, the previous two checks
   are skipped. In other words, if the striping EA is not set, 0, 0,
   -1, will be printed for the striping count, size, and offset
   respectively. Also, if the striping EA is set, the values will be
   printed without first converting them into their respective
   defaults.

This patch relies on the /proc filesystem to determine each
filesystem's default striping attributes, and a cache is maintained
which holds the default values for the last filesystem queried.

See Also:
Bugzilla #23802, https://bugzilla.lustre.org/show_bug.cgi?id=23802

Signed-off-by: Prakash Surya <surya1@llnl.gov>
Change-Id: I9bf033f91411d2a6a55c3d4becb971ba20bb3c4b
Reviewed-on: http://review.whamcloud.com/577
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-337 Fix alloc flags in alloc_qinfo()
Christopher J. Morrone [Fri, 20 May 2011 02:51:29 +0000 (19:51 -0700)]
LU-337 Fix alloc flags in alloc_qinfo()

CFS_ALLOC_STD allows a hang when the alloc_qinfo() results
in a cache_alloc_refill, and kicks off the ldlm shrinker.
The shrinker may hang in sync_page() on the same page on
which we already hold the lock.

Change-Id: I9d7ccfcd5258c537af4d4f1d0bf2a190f4fc89c7
Signed-off-by: Christopher J. Morrone <morrone2@llnl.gov>
Reviewed-on: http://review.whamcloud.com/880
Reviewed-by: Bobi Jam <bobijam@whamcloud.com>
Tested-by: Hudson
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-165: Support privileged ports in the o2iblnd driver.
Christopher J. Morrone [Fri, 11 Feb 2011 04:39:28 +0000 (20:39 -0800)]
LU-165: Support privileged ports in the o2iblnd driver.

It is highly recommended that you have a version of the
IB verbs driver that provides the rdma_set_reuseaddr() function.
Otherwise you may run out of privileged ports.

In this version of the patch, one may separately decide whether
privileged ports will be required for passively accepted connections
(require_privileged_port) and whether privileged ports will be used
for activitely initiated connections (use_privileged_port).

Original patch by Ira Weiny.

Change-Id: Id3600094b08784be6e82b224cf510460f69d4dd6
Signed-off-by: Christopher J. Morrone <morrone2@llnl.gov>
Reviewed-on: http://review.whamcloud.com/366
Tested-by: Hudson
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-245 too many default ACLs break directory access on new directories
Bobi Jam [Thu, 28 Apr 2011 07:17:49 +0000 (15:17 +0800)]
LU-245 too many default ACLs break directory access on new directories

The attached patch was a result of the discussion with Andreas Dilger
on lustre discuss starting here:
http://lists.lustre.org/pipermail/lustre-discuss/2010-May/013177.html

Change-Id: I0f66d3587d25f0c9c3862498326a2c26acc57b3e
Bugzilla: 22820
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/471
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Reviewed-by: Lai Siyao <laisiyao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-351 RHEL6 U1 support.
Alexey Lyashkov [Fri, 3 Jun 2011 16:34:50 +0000 (20:34 +0400)]
LU-351 RHEL6 U1 support.

that patch adds support for 2.6.32-131 kernel.

Change-Id: I5c0f72a4a84d120b1820a038be82dedf806e2da1
Signed-off-by: Alexey Lyashkov <alexey_lyashkov@xyratex.com>
Reviewed-on: http://review.whamcloud.com/584
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-264 Integrate upstream ext4 MMP chnages
Niu Yawei [Fri, 27 May 2011 14:27:20 +0000 (07:27 -0700)]
LU-264 Integrate upstream ext4 MMP chnages

Integrate the changes made to the MMP patch when it was submitted upstream
for the 2.6.40 kernel.  Mostly cosmetic changes were done (improved comments, etc),
along with moving the MMP functionality into a separate mmp.c file in order to
avoid increasing the size of super.c too much.

Signed-off-by: Niu Yawei <niu@whamcloud.com>
Change-Id: I6909f3e44b077d65d653994ed1ac3ee11fcacb7f
Reviewed-on: http://review.whamcloud.com/865
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-118: clear_inode: BUG_ON(inode->i_data.nrpages)
Jinshan Xiong [Fri, 3 Jun 2011 22:12:33 +0000 (15:12 -0700)]
LU-118: clear_inode: BUG_ON(inode->i_data.nrpages)

This is a workaround patch to fix the problem. This patch should be gone
after there is a fix appearing in mainstream kernel.

Change-Id: I5a78ecae626e5d82cd9eac5dc2c2b849d4afd368
Signed-off-by: Jinshan Xiong <jay@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/879
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-64 Alphabetized lfs's sub-commands' options
Prakash Surya [Wed, 27 Apr 2011 23:58:37 +0000 (16:58 -0700)]
LU-64 Alphabetized lfs's sub-commands' options

Arranged lfs's sub-commands' options in alphabetical order by the
short option letter (lower-case followed by upper case, if both are
present).

Signed-off-by: Prakash Surya <surya1@llnl.gov>
Change-Id: I5c3865d06de11674e7e3b8d764307e5402aeaaa1
Reviewed-on: http://review.whamcloud.com/500
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Hudson
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-288 adjust PATH order in test framework
Bobi Jam [Tue, 10 May 2011 07:07:05 +0000 (15:07 +0800)]
LU-288 adjust PATH order in test framework

* Test scripts use lustre build tree binaries other than installed ones.
* Bind mount mount.lustre in the lustre build tree other than copying to /sbin/

Change-Id: I32468fa608b32a7ef097db531cdd45b68088af50
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/525
Tested-by: Hudson
Reviewed-by: Lai Siyao <laisiyao@whamcloud.com>
Reviewed-by: Prakash Surya <surya1@llnl.gov>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
9 years agoLU-336 Tighten matching criteria in module_loaded
Prakash Surya [Thu, 21 Apr 2011 18:10:20 +0000 (11:10 -0700)]
LU-336 Tighten matching criteria in module_loaded

The function module_loaded can easily produce false positives because
of it's lenient way of grep'ing the output of lsmod. Tightening up the
criteria upon which it uses to determine if a module is loaded, reduces
the risk of returning these false positives.

Signed-off-by: Prakash Surya <surya1@llnl.gov>
Change-Id: Id8a20bf568be275eeb3ef466cb3fd051f8389b44
Reviewed-on: http://review.whamcloud.com/558
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Yu Jian <yujian@whamcloud.com>
Reviewed-by: Brian J. Murrell <brian@whamcloud.com>
9 years agoLU-328 unlock fo_llog_list_lock before allocating memory
hongchao.zhang [Sun, 8 May 2011 06:34:45 +0000 (14:34 +0800)]
LU-328 unlock fo_llog_list_lock before allocating memory

in filter_find_create_olg in filter.c, the spinlock filter->fo_llog_list_lock
is held during allocating a new obd_llog_group, which cause system hang

Change-Id: I1b95387fbaf6f9a7080073b8ee7918e46263f1f0
Signed-off-by: Hongchao Zhang <hongchao.zhang@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/556
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
9 years agoLU-8 dynamically grow/shrink socklnd connd threads
Liang Zhen [Fri, 1 Apr 2011 07:16:33 +0000 (15:16 +0800)]
LU-8 dynamically grow/shrink socklnd connd threads

if multiple nodes are down, all socklnd connds could be blocked for a
long while, we can workaround this by increase default nconnds but it
always requires to have unnecessary number of threads.This patch can
support dynamically grow/shrink connd threads pool, it
can create new thread if there's pending active connecting, it will
kill some threads if there are too many idle connds.

Change-Id: Icbb52e8029d7c4c85d87be69e0a5b440832b01ba
Signed-off-by: Liang Zhen <liang@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/390
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Lai Siyao <laisiyao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-246 Add a barrier for recovery completion for conf-sanity
Bobi Jam [Fri, 29 Apr 2011 03:48:41 +0000 (11:48 +0800)]
LU-246 Add a barrier for recovery completion for conf-sanity

* Make sure client connection finished before each conf-sanity test
* Put test_58 ahead of test_59
* Properly finalize some tests with 'writeconf'

Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: Ie2592954b54c3d5fbb275b38ad61c6986032fc5b
Bugzilla: 18779
Reviewed-on: http://review.whamcloud.com/476
Tested-by: Hudson
Reviewed-by: Yu Jian <yujian@whamcloud.com>
Reviewed-by: Niu Yawei <niu@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-57 Allow OSTs to be created with no primary node
Bobi Jam [Thu, 31 Mar 2011 06:55:10 +0000 (14:55 +0800)]
LU-57 Allow OSTs to be created with no primary node

Add a --servicenode parameter for mkfs.lustre to treat all service
nodes equally.

Bugzilla: 19064
Change-Id: I15fc50ec7b808fac03dab92b8c0702a0d054b559
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/378
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Mikhail Pershin <tappro@whamcloud.com>
Tested-by: Liang Zhen <liang@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoRevert "LU-147 avoid 8k obd device amount limit"
Oleg Drokin [Fri, 3 Jun 2011 20:57:13 +0000 (16:57 -0400)]
Revert "LU-147 avoid 8k obd device amount limit"

Uncovered multiple races on cleanup leading to use after free

This reverts commit 7d818af6449c9005b2dd7cb213d38d6ad61bf178.

Change-Id: If5c72f365f849ac888fe90ea732908fa447347d6
Signed-off-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-216 Protect extent tree during fsfilt_ldiskfs_ext_walk_space()
Bobi Jam [Thu, 19 May 2011 10:34:24 +0000 (18:34 +0800)]
LU-216 Protect extent tree during fsfilt_ldiskfs_ext_walk_space()

Need guarantee the validity of the extent path passed in
ldiskfs_ext_new_extent_cb().

Change-Id: I2f583ce7cc663e600504a457d0c6fc3461afbad4
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/491
Tested-by: Hudson
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-272 LBUG in replay-single test_74
Lai Siyao [Thu, 5 May 2011 10:30:08 +0000 (03:30 -0700)]
LU-272 LBUG in replay-single test_74

Upon filter proc entry creation failure, return error instead
of continue silently.

Signed-off-by: Lai Siyao <laisiyao@whamcloud.com>
Change-Id: I0c5376b2dd8a88d5f950dd2165b3ab28c54e309b
Reviewed-on: http://review.whamcloud.com/497
Tested-by: Hudson
Reviewed-by: Bobi Jam <bobijam@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-244 Cray portals compile fixes for Lustre 2.X
James Simmons [Wed, 27 Apr 2011 12:32:19 +0000 (08:32 -0400)]
LU-244 Cray portals compile fixes for Lustre 2.X

While moving the lustre client on cray sea star systems I ran it the
compile issues with the portals klnd driver. The reason being is the
lag of the driver to the api changes in the lnet layer. This patch
brings the lnet portals driver up to date.

Change-Id: I9e81cc11e25be7c5c548fdfd3cc7e596107fc0ef
Signed-off-by:James Simmons <uja.ornl@gmail.com>
Reviewed-on: http://review.whamcloud.com/469
Reviewed-by: Liang Zhen <liang@whamcloud.com>
Reviewed-by: Cory Spitz <spitzcor@cray.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: Hudson
9 years agoLU-356 adding verbose option in test-framework
hongchao.zhang [Wed, 11 May 2011 06:54:48 +0000 (14:54 +0800)]
LU-356 adding verbose option in test-framework

in test-framework.sh, using the VERBOSE value if it's set by user,
in do_node and do_nodes, fixing the problem of only printing part of
the command during using "lctl mark" to print debug info.

Change-Id: If6444b322849d5f11a8c1f678de0eb7b80398480
Signed-off-by: Hongchao Zhang <hongchao.zhang@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/862
Reviewed-by: Yu Jian <yujian@whamcloud.com>
Tested-by: Hudson
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-326 make sure df send statfs request
hongchao.zhang [Sat, 30 Apr 2011 02:13:45 +0000 (10:13 +0800)]
LU-326 make sure df send statfs request

in test_18c of recovery_small.sh, it uses df to send a statfs request
to OST to detect the disconnection stat, but it will fail to send
the request if there is a cache of statfs in client node.
the patch adds a "sleep 1" to make sure the cache of statfs expires
before df sends statfs request.

Change-Id: Ia1f56b8160e77827d5249656488734d7defd6c81
Signed-off-by: Hongchao Zhang <hongchao.zhang@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/551
Tested-by: Hudson
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
9 years agoLU-349 set LC_ALL explicitly in obdfilter-survey
hongchao.zhang [Sun, 8 May 2011 06:43:51 +0000 (14:43 +0800)]
LU-349 set LC_ALL explicitly in obdfilter-survey

in lustre-iokit/obdfilter-survey/obdfilter-survery, different locales will
cause the "awk" to fail, setting LC_ALL=POSIX explicitly to avoid the issue.

Change-Id: I9a84f9c93a9911f3a84c33429ba5cc9981913995
Signed-off-by: Hongchao Zhang <hongchao.zhang@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/594
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Yu Jian <yujian@whamcloud.com>
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-248 increase LOV reseed to mitigate OST allocation inconsitence
hongchao.zhang [Tue, 26 Apr 2011 23:56:42 +0000 (07:56 +0800)]
LU-248 increase LOV reseed to mitigate OST allocation inconsitence

in lov_qos.c, increase the LOV_CREATE_RESEED_MULT and
LOV_CREATE_RESEED_MIN to increase the LOV reseed window
to mitigate the inconsistence issue of OST allocation

Change-Id: I7e44b9cf23e4ade1fb99a4f5f3537f3c26dece94
Signed-off-by: Hongchao Zhang <hongchao.zhang@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/549
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
9 years agoLU-365 cleanup old irrelevant files
Andreas Dilger [Fri, 27 May 2011 07:04:36 +0000 (01:04 -0600)]
LU-365 cleanup old irrelevant files

Remove some scripts related to CVS and old TSP inspection process.
Remove some ancient files related to UOSS on Solaris.

Change-Id: I4d462b7679cac1e4b0b14c0629623969bd745b99
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/860
Tested-by: Hudson
Reviewed-by: Brian J. Murrell <brian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-163 MDS returns 32/64-bit dir name hash according to client type
nasf [Wed, 25 May 2011 12:31:02 +0000 (20:31 +0800)]
LU-163 MDS returns 32/64-bit dir name hash according to client type

1) liblustre client, 1.8.5 or older client do not support 64-bit dir name hash.
2) register Lustre version 'get_name()' for NFS processing.
3) 'll_dir_seek()' processes name hash-based dir seek operation.
4) re-define "DIR_END_OFF" as "0x7fffffffffffffffULL" to always return positive
   dir name hash for successful seek.
5) small cleanup for 'll_dops_init()' to drop unnecessary statahead process.

Signed-off-by: nasf <yong.fan@whamcloud.com>
Change-Id: I0e3177c98c6e8814c39551ab54edfa3f861cbc8c
Reviewed-on: http://review.whamcloud.com/432
Tested-by: Hudson
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-305 Temporarily block 'non-fatal' signals
Niu Yawei [Mon, 23 May 2011 12:54:25 +0000 (05:54 -0700)]
LU-305 Temporarily block 'non-fatal' signals

In cl_lock_state_wait(), to avoid being interrupted by 'non-fatal'
signals (such as SIGCHLD), we'd block them temporarily.

Signed-off-by: Niu Yawei <niu@whamcloud.com>
Change-Id: I176530131a5983c19d64d311b100d1b81845164f
Reviewed-on: http://review.whamcloud.com/591
Reviewed-by: Jinshan Xiong <jay@whamcloud.com>
Tested-by: Hudson
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-309 Fix sanity test_27z to work if lustre is mounted from loop device
Bobi Jam [Thu, 12 May 2011 02:06:25 +0000 (10:06 +0800)]
LU-309 Fix sanity test_27z to work if lustre is mounted from loop device

Unmount by block device does not work for loop devices, unmount by
mountpoint instead

Change-Id: I604cfafa3a38a98e04daed979781f2d6c052b760
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/536
Tested-by: Hudson
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-339 use new aops for kernel >= RHEL5.4
Lai Siyao [Tue, 24 May 2011 02:19:53 +0000 (19:19 -0700)]
LU-339 use new aops for kernel >= RHEL5.4

Kernel in RHEL5 >= 5.4 supports both old and new aops interface,
and a flag MS_HAS_NEW_AOPS is used to mark whether a filesystem
supports new aops.
Lustre has implemented the new aops, but not enabled. And with
new aops a single thread I/O can gain 5% perf increase.

Signed-off-by: Lai Siyao <laisiyao@whamcloud.com>
Change-Id: I23bbfcd105c1ffd7f6c942342f9c1fb29a1cffe4
Reviewed-on: http://review.whamcloud.com/592
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
9 years agoLU-363 don't cache BUILD for reuse
Brian J. Murrell [Wed, 11 May 2011 13:19:56 +0000 (09:19 -0400)]
LU-363 don't cache BUILD for reuse

Since future builds don't actually need the %_topdir/BUILD subdir,
and it's huge, don't bother caching it.

Increment the toplevel BUILD_GEN to force a rebuild of all of the
kernels.

Signed-off-by: Brian J. Murrell <brian@whamcloud.com>
Change-Id: Ibd3e10c4052ca8012c8fd507be99a3b24e68d71e
Reviewed-on: http://review.whamcloud.com/533
Reviewed-by: Chris Gearing <chris@whamcloud.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Tested-by: Hudson
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoTT-59 remove . and - from the node name
sarah [Fri, 20 May 2011 04:52:39 +0000 (21:52 -0700)]
TT-59 remove . and - from the node name

Replace . and - with _ in the node name, so it can be identified
as a variable in bash.

Change-Id: I0ae9c8225f9181a5b374fdb3c6316e47f2569ef1
Signed-off-by: sarah <sarah@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/376
Reviewed-by: Lai Siyao <laisiyao@whamcloud.com>
Reviewed-by: Chris Gearing <chris@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
9 years agoLU-160 Reduce OST size requirement for test 155
Prakash Surya [Wed, 11 May 2011 15:57:19 +0000 (08:57 -0700)]
LU-160 Reduce OST size requirement for test 155

The OST size requirements for sanity test 155 is reduced by running with
only a single-striped file on a particular OST, and only checking the
RAM on that OST's OSS node. Because it is no longer trying to create a
file larger than multiple OSS nodes' RAM while only striped over a
single OST, these tests should run at times when they previously would
not have.

Signed-off-by: Prakash Surya <surya1@llnl.gov>
Change-Id: I4c1829240f4cd44366ad0de24ef6caa444f98801
Reviewed-on: http://review.whamcloud.com/534
Tested-by: Hudson
Reviewed-by: Yu Jian <yujian@whamcloud.com>
Reviewed-by: Chris Gearing <chris@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-274 Update LVB from disk when glimpse callback return error
Niu Yawei [Fri, 20 May 2011 10:12:50 +0000 (03:12 -0700)]
LU-274 Update LVB from disk when glimpse callback return error

There are various cases that glimpse callback return errors,
we should update the LVB from disk whenever the glimpse ast failed.

Signed-off-by: Niu Yawei <niu@whamcloud.com>
Change-Id: I120ebcb6254cee5b797c09545d29cc7dcc12a5d2
Reviewed-on: http://review.whamcloud.com/583
Tested-by: Hudson
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
9 years agoLU-285 Minor fix for sanity test_180a
Niu Yawei [Tue, 10 May 2011 02:43:54 +0000 (19:43 -0700)]
LU-285 Minor fix for sanity test_180a

Call 'lctl add_uuid' to make sure we can find the loopback nid

Signed-off-by: Niu Yawei <niu@whamcloud.com>
Change-Id: Ib94e0478a9ec4ed93ae6dde59bbac89ce5466543
Reviewed-on: http://review.whamcloud.com/521
Tested-by: Hudson
Reviewed-by: Prakash Surya <surya1@llnl.gov>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Lai Siyao <laisiyao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoNew version 2.0.61 2.0.61.0 v2_0_61_0
Oleg Drokin [Tue, 24 May 2011 15:25:22 +0000 (11:25 -0400)]
New version 2.0.61

Signed-off-by: Oleg Drokin <green@whamcloud.com>
Change-Id: Ibe7200e9eb3629ca5d3008c4d973b44ec4709c36

9 years agoLU-231 sanity test_170: FAIL: expected 248 bad lines, but got 249
Lai Siyao [Thu, 12 May 2011 06:25:05 +0000 (23:25 -0700)]
LU-231 sanity test_170: FAIL: expected 248 bad lines, but got 249

Port b1_8 fix to master:
Short malformed line may not be counted into bad lines.

Signed-off-by: Lai Siyao <laisiyao@whamcloud.com>
Change-Id: Iebf8b48b775a9cb393caa854e51aaf9981e08d0f
Reviewed-on: http://review.whamcloud.com/537
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-228 kernel update [RHEL5 U6 2.6.18-238.9.1.el5]
yangsheng [Sun, 8 May 2011 14:43:59 +0000 (22:43 +0800)]
LU-228 kernel update [RHEL5 U6 2.6.18-238.9.1.el5]

Change-Id: I7f9dc92f97f675a6dac1ff222c055bf13ca3b2a0
Signed-off-by: Yang Sheng <ys@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/514
Tested-by: Hudson
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-249 Allow the user to set the upper limit to the thread count on the MDS
James Simmons [Fri, 29 Apr 2011 15:17:05 +0000 (11:17 -0400)]
LU-249 Allow the user to set the upper limit to the thread count on the MDS

Currently the largest number of the threads that can exist on the MDS is 512.
For very large system is those threads can easily be exhausted and end up back
logging the system. This patch allows the user to define the upper limit of
how many threads are created on the MDS. If not selected the default behavior
of 512 is keep.

Change-Id: I1952bbb5a446dd5debf5f787489e1c456da7945a
Signed-off-by: James Simmons <uja.ornl@gmail.com>
Reviewed-on: http://review.whamcloud.com/477
Tested-by: Hudson
Reviewed-by: Lai Siyao <laisiyao@whamcloud.com>
Reviewed-by: Mikhail Pershin <tappro@whamcloud.com>
Reviewed-by: Brian J. Murrell <brian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-323 Not append index at the end of mdd_obd name
Wang Di [Sat, 14 May 2011 06:05:14 +0000 (23:05 -0700)]
LU-323 Not append index at the end of mdd_obd name

Remove the index from mdd_obd_xxx, since the dev_name already
includes that.

Change-Id: I20c61d45477ac0843aed3f0e9de23b0badf723ae
Signed-off-by: Wang Di <di.wang@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/548
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Tested-by: Hudson
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
9 years agoLU-314 don't print warning when setting debug mask to 0
Johann Lombardi [Thu, 12 May 2011 22:43:04 +0000 (15:43 -0700)]
LU-314 don't print warning when setting debug mask to 0

Change-Id: Ib54bc2fd42603065aa200475ff30e69bafa91e9d
Signed-off-by: Johann Lombardi <johann@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/544
Tested-by: Hudson
Reviewed-by: Niu Yawei <niu@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-15 shrink the cache to alleviate OST memory pressure
Wang Di [Tue, 10 May 2011 03:00:38 +0000 (20:00 -0700)]
LU-15 shrink the cache to alleviate OST memory pressure

Shrink file_max_cache_size to alleviate the memory pressure of OST.

Change-Id: I34c920cce65cd91f4793383b6563d7a296ec5307
Signed-off-by: wangdi <di.wang@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/523
Tested-by: Hudson
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-224 Move fail_loc handling from lustre to libcfs
James Simmons [Wed, 18 May 2011 17:54:44 +0000 (13:54 -0400)]
LU-224 Move fail_loc handling from lustre to libcfs

This patch goal is to move the fail_loc handling from lustre to libcfs. The
reason being is that currently you can only do fault testing in the lustre
core code. By moving this code to libcfs all sub systems will be able to
inject
faults into the system for testing purposes. This is in particular needed to
support the cray gemini klnd driver since one can inject faults for testing
failure conditions.

Change-Id: I438c30d0c7fe6987ad3fcfa5442366d4307a4d9f
Signed-off-by: James Simmons <uja.ornl@gmail.com>
Reviewed-on: http://review.whamcloud.com/450
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Liang Zhen <liang@whamcloud.com>
9 years agoLU-316 Fix changelog deadlock when changelog client is killed
Oleg Drokin [Tue, 17 May 2011 05:19:41 +0000 (01:19 -0400)]
LU-316 Fix changelog deadlock when changelog client is killed

Make sure that all unused filedescriptors are closed to ensure that
when the reader is dead, ther are no holders of the read fd and
we do get EPIPE to our writes.

Signed-off-by: Oleg Drokin <green@whamcloud.com>
Change-Id: Id0a53361862124e6b4febdbb3f8cacce34799e68
Reviewed-on: http://review.whamcloud.com/555
Tested-by: Hudson
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Mikhail Pershin <tappro@whamcloud.com>
9 years agoLU-273 Remove export-show_task patch
Bobi Jam [Wed, 4 May 2011 11:35:30 +0000 (19:35 +0800)]
LU-273 Remove export-show_task patch

It is not used, dump_trace() is enough for the purpose.

Change-Id: Ic67ce634a8985835b00373024c88608fe0ef114f
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/493
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: Hudson
9 years agoLU-213 using direct io for quota test to avoid cache problem
hongchao.zhang [Sun, 3 Apr 2011 07:28:09 +0000 (15:28 +0800)]
LU-213 using direct io for quota test to avoid cache problem

in test_14a of sanity-qutota.sh, the data written was cached in client side,
which causes the test failed, using "mulitop ${TESTFILE} oO_DIRECT" (direct IO)
instead of "dd" to avoid such issue.

Change-Id: I0802c2ea200483c148e4e7f61e2c6d4b34500f01
Signed-off-by: Hongchao Zhang <hongchao.zhang@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/435
Tested-by: Hudson
Reviewed-by: Yu Jian <yujian@whamcloud.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
9 years agoLU-278 only use the v* tag and limit the match
Brian J. Murrell [Mon, 9 May 2011 19:11:12 +0000 (15:11 -0400)]
LU-278 only use the v* tag and limit the match

In order to allow people to create tags such as 2.0.59-1foobar,
only try to match on the v* type tags, and even then, tighten up
the match pattern (as best we can using globs) to try to limit the
number of false positives.

Signed-off-by: Brian J. Murrell <brian@whamcloud.com>
Change-Id: I2d6e422fc0c17df7eb4169efea8e3557e80b941d
Reviewed-on: http://review.whamcloud.com/517
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Reviewed-by: Michael MacDonald <mjmac@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-298 Improve check for dpkg system.
Christopher J. Morrone [Tue, 10 May 2011 00:49:45 +0000 (17:49 -0700)]
LU-298 Improve check for dpkg system.

Use lsb_release id (Ubuntu, Debian, RedHatEnterpriseServer, etc.)
to determine if the system uses dpkg, instead of just checking for
the existence of the dpkg binary.  For example, some people do
install dpkg on their RHEL systems for various reasons.

Change-Id: I74db5277cb2db00927b74b652e7945bd95bca093
Signed-off-by: Christopher J. Morrone <morrone2@llnl.gov>
Reviewed-on: http://review.whamcloud.com/519
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Brian J. Murrell <brian@whamcloud.com>
Reviewed-by: Chris Gearing <chris@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-303 fix ofed download for bugfix releases
Brian J. Murrell [Tue, 3 May 2011 19:57:21 +0000 (15:57 -0400)]
LU-303 fix ofed download for bugfix releases

On the OFED download server both w.x.y and w.x.y.z releases are
stored in the w.x.y dir, so handle that properly for the w.x.y.z case.

Signed-off-by: Brian J. Murrell <brian@whamcloud.com>
Change-Id: Ic0ba6861ce000a9cc47c63219e357d2f6636b951
Reviewed-on: http://review.whamcloud.com/527
Tested-by: Hudson
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Michael MacDonald <mjmac@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-301 bump kernel version for sles11
Brian J. Murrell [Tue, 3 May 2011 19:57:21 +0000 (15:57 -0400)]
LU-301 bump kernel version for sles11

We need to provide the same "self service" love in lbuild for sles11
(client only) building.

May as well bump the supported kernel to the latest while I'm at it.

Signed-off-by: Brian J. Murrell <brian@whamcloud.com>
Change-Id: I84617f429b0cef23a24fe161158580917ffe3041
Reviewed-on: http://review.whamcloud.com/482
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Michael MacDonald <mjmac@whamcloud.com>
Reviewed-by: Chris Gearing <chris@whamcloud.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-160 Split small/big file parts of test_155_load
Prakash Surya [Tue, 10 May 2011 16:58:44 +0000 (09:58 -0700)]
LU-160 Split small/big file parts of test_155_load

Separate the small file parts and the big file parts of test_155_load
into different tests. This has the benefit of always running the small
file portions of test 155, even if the big file tests are skipped.

Signed-off-by: Prakash Surya <surya1@llnl.gov>
Change-Id: Ic895fb8590f1d15fbd1889b64b0a6143ff1c6289
Reviewed-on: http://review.whamcloud.com/528
Tested-by: Hudson
Reviewed-by: Yu Jian <yujian@whamcloud.com>
Reviewed-by: Chris Gearing <chris@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-300: Oops in cl_page_put of page fault path
Jinshan Xiong [Wed, 11 May 2011 02:20:12 +0000 (19:20 -0700)]
LU-300: Oops in cl_page_put of page fault path

This problem is due to the unintialization of cl_io, so that an invalid page
address will be accessed in vvp_io_fault_fini().

Change-Id: Ic85a5d22e175cc74ada0e51831142d9f37798c08
Signed-off-by: Jinshan Xiong <jay@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/530
Tested-by: Hudson
Reviewed-by: wangdi <di.wang@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-255: enable ext4 features by default
Andreas Dilger [Fri, 29 Apr 2011 21:59:52 +0000 (15:59 -0600)]
LU-255: enable ext4 features by default

Enable the flex_bg, huge_file, and dir_nlink features from ext4 by
default for ext4-based ldiskfs filesystems.  The flex_bg feature
can significantly reduce e2fsck time as well as time-to-first-write
on newly mounted OSTs.

Reduce the number of inodes created on larger OST filesystems, since
there are far too many inodes created by default, which wastes space
and slows down e2fsck.

Increase the number of inodes on MDT filesystems, subject to
constraints from the default number of stripes being stored for
each inode, which may increase the inode size being used.  Remove
changes to the statfs() results on the MDT to limit inode count to
the returned block count since increased MDT inodes will always
exceed free blocks, and it was confusing.

Skip zeroing the journal at format time.  It will be overwritten
at first use, and avoids writing 400MB of zeroes to the filesystem
needlessly.  We can't skip zering the inode table by default, but
newer mke2fs will check if the kernel handles this itself, and
request it internally.

Cleanups to remove support for 2.4 kernels and reiserfs filesystem.

Change-Id: I519bffaad5e97ee68c189efb00e07ebc0b1600f5
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/480
Reviewed-by: Yu Jian <yujian@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
9 years agoLU-276 increase file count to mitigate affect of random condition
hongchao.zhang [Sat, 30 Apr 2011 01:27:20 +0000 (09:27 +0800)]
LU-276 increase file count to mitigate affect of random condition

in test_18 of ost_pools, increase the count of created file to
mitigate the affect of various random condition which could
lead to false result

Change-Id: Ieca04b37ccc66698cd2159fa1a83f2f9fe07dc41
Signed-off-by: HongChao Zhang <hongchao.zhang@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/550
Tested-by: Hudson
Reviewed-by: Mikhail Pershin <tappro@whamcloud.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
9 years agoLU-299 Initialize struct shrinker variable in test
Christopher J. Morrone [Tue, 10 May 2011 02:34:51 +0000 (19:34 -0700)]
LU-299 Initialize struct shrinker variable in test

If the "tmp" struct in the test is uninitialized, the test
will fail for that reason, rather its intended functions.

Change-Id: I4b1e97e511c748155f742909d9424f228fc24545
Signed-off-by: Christopher J. Morrone <morrone2@llnl.gov>
Reviewed-on: http://review.whamcloud.com/522
Tested-by: Hudson
Reviewed-by: Bobi Jam <bobijam@whamcloud.com>
Tested-by: Bobi Jam <bobijam@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-279 Test failure on test suite sanity, subtest test_17k
Bobi Jam [Tue, 10 May 2011 03:14:15 +0000 (11:14 +0800)]
LU-279 Test failure on test suite sanity, subtest test_17k

rsync 3.0.x cares about exact xattr value size when passing 0 size
for determining the buffer size to hold the xattr value.

Change-Id: I05f8c062e64e22dd6982dc752d5869b457c7a2ef
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/524
Tested-by: Hudson
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Reviewed-by: Prakash Surya <surya1@llnl.gov>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-260 Add open-unlinked dir regression test case.
Bobi Jam [Tue, 3 May 2011 07:50:15 +0000 (15:50 +0800)]
LU-260 Add open-unlinked dir regression test case.

Change-Id: Ic9efd3d89377bc34470cb3b7ab88f62b2a03b058
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/485
Tested-by: Hudson
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-128 Avoid assertion on wire data in last_rcvd update
Mikhail Pershin [Fri, 22 Apr 2011 18:24:25 +0000 (22:24 +0400)]
LU-128 Avoid assertion on wire data in last_rcvd update

- checks that lower transno can't overwrite the bigger one in last_rcvd
  slot.
- evict client if bad transno was sent in replay, this is done by simulating
  VBR failure
- keep assertion for server-generated transno, this is logical error
- fix issue with resent-replay open which can cause unexpected
  transaction while closing the old mfd.

Change-Id: Ib523c25408b4d821f52d95c40a4fbd7d79d6cbe6
Signed-off-by: Mikhail Pershin <tappro@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/452
Tested-by: Hudson
Reviewed-by: Niu Yawei <niu@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-160 check the minimum available size of OST in test_155_load()
Yu Jian [Mon, 28 Mar 2011 09:52:27 +0000 (17:52 +0800)]
LU-160 check the minimum available size of OST in test_155_load()

Fix test_155_load() in sanity.sh to check whether the minimum available
size of OST is bigger than the large file size. If not, then sanity test
155{a,b,c,d} would be skipped.

Signed-off-by: Yu Jian <yujian@whamcloud.com>
Change-Id: I0a587337ad188a96f2ada51726604029c666df07
Reviewed-on: http://review.whamcloud.com/368
Tested-by: Hudson
Reviewed-by: Prakash Surya <surya1@llnl.gov>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-271 Skip permission check for NFS open after create
nasf [Wed, 4 May 2011 13:43:11 +0000 (21:43 +0800)]
LU-271 Skip permission check for NFS open after create

For open_create operation, NFS client will trigger separate open RPC after create RPC.
We only need to check create permission for such case.

Change-Id: I7f0e2edb1b14f1044790180345f2c8328d92d4e8
Signed-off-by: nasf <yong.fan@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/494
Tested-by: Hudson
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Lai Siyao <laisiyao@whamcloud.com>
9 years agoNew version 2.0.60 2.0.60.0 v2_0_60_0
Oleg Drokin [Wed, 11 May 2011 03:06:44 +0000 (23:06 -0400)]
New version 2.0.60

Signed-off-by: Oleg Drokin <green@whamcloud.com>
Change-Id: Id062aed81b8956d42a8c5487f53bb44e505b491e

9 years agoLU-225 --with-ldiskfs-inkernel checks wrong file
Ned A. Bass [Wed, 20 Apr 2011 21:56:09 +0000 (14:56 -0700)]
LU-225 --with-ldiskfs-inkernel checks wrong file

Commit fd0bd149e66cbc06a17c372e159f9bfba024cc97 changed the file checked
when the --with-ldiskfs-inkernel configure option is used from
$LINUX/fs/ldiskfs/inode.c to $LINUX/include/linux/ldiskfs_fs.h.

It looks like the person fixing a similar case statement assumed the
same fix applied to the inkernel case.  However, this is wrong because
the purpose of --with-ldiskfs-inkernel is to allow us to build lustre
without having full kernel sources available, so inode.c won't exist.

Signed-off-by: Ned Bass <bass6@llnl.gov>
Change-Id: I6dc1db41fdee0016eab7d151c519e3359d78b44b
Reviewed-on: http://review.whamcloud.com/446
Reviewed-by: Brian J. Murrell <brian@whamcloud.com>
Tested-by: Hudson
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-235 fix sanity test 36g to work with remote OSS
Yu Jian [Tue, 3 May 2011 12:55:30 +0000 (20:55 +0800)]
LU-235 fix sanity test 36g to work with remote OSS

Signed-off-by: Yu Jian <yujian@whamcloud.com>
Change-Id: Iccf7f109c69ac7dd34f9f5b7ee2d5ce4cb892053
Reviewed-on: http://review.whamcloud.com/488
Tested-by: Hudson
Reviewed-by: Chris Gearing <chris@whamcloud.com>
Reviewed-by: Brian J. Murrell <brian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-188 Reduce startup messages.
yangsheng [Fri, 6 May 2011 03:54:09 +0000 (11:54 +0800)]
LU-188 Reduce startup messages.

commit f257c3021c7470445673bc930c4884c5df9b9429
Date:   Mon Jan 24 15:17:35 2011 +0100

b=17275 make lustre client less verbose at startup time for Cray

i=johann

Signed-off-by: YangSheng <ys@whamcloud.com>
Change-Id: I78a5196f56ff147075676d2fdcdc6d9978437d72
Reviewed-on: http://review.whamcloud.com/406
Tested-by: Hudson
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-284 strip .$arch off of kern vers for requires
Brian J. Murrell [Thu, 5 May 2011 19:26:56 +0000 (15:26 -0400)]
LU-284 strip .$arch off of kern vers for requires

RHEL6 appends .arch to the end of the version in the utsrelease.h file.
The kernel RPM however provides that value with the .arch stripped off,
so do the same stripping in the lustre-modules RPM for it's Requires:.

Signed-off-by: Brian J. Murrell <brian@whamcloud.com>
Change-Id: Ib6ff32c006f184edceb5d667b649bb106d503faf
Reviewed-on: http://review.whamcloud.com/502
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
9 years agoLU-240 test_171() races with background multiop
Bobi Jam [Tue, 26 Apr 2011 08:45:48 +0000 (16:45 +0800)]
LU-240 test_171() races with background multiop

Change-Id: Ic05c8d79e82cfc632942b13ec3b46ee26da49555
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/466
Reviewed-by: Li Wei <liwei@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-178 prevent replays after recovery on server
Mikhail Pershin [Thu, 21 Apr 2011 19:17:43 +0000 (23:17 +0400)]
LU-178 prevent replays after recovery on server

- Drop requests with wrong flags during normal processing.
- remove race in target_handle_connect which can cause replays over
  new export
- test case for wrong replays handling

Change-Id: Icbfc0ae549ab63a510e0d62fcac1ed661b324fb9
Signed-off-by: Mikhail Pershin <tappro@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/391
Tested-by: Hudson
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Niu Yawei <niu@whamcloud.com>
9 years agoLU-239 Lustre Header (include/lprocfs_status.h) is not ISO C99 complaint
Lai Siyao [Wed, 27 Apr 2011 01:23:08 +0000 (18:23 -0700)]
LU-239 Lustre Header (include/lprocfs_status.h) is not ISO C99 complaint

Signed-off-by: Lai Siyao <laisiyao@whamcloud.com>
Change-Id: I40ce6ac0ecaaf19c01cd25603971ff1fb8ed10df
Reviewed-on: http://review.whamcloud.com/465
Tested-by: Hudson
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-234 OOM killer causes node hang.
yangsheng [Wed, 27 Apr 2011 16:03:04 +0000 (00:03 +0800)]
LU-234 OOM killer causes node hang.

b=18213 Handle the signal to avoid process hang.

Change-Id: Ic730d98fb812bc9dbb5249847a6115a84d67758b
Signed-off-by: Yang Sheng <ys@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/470
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Tested-by: Hudson
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-259 Wrong option in ext4-force_over_16tb-rhel6.patch
Bobi Jam [Tue, 3 May 2011 03:18:55 +0000 (11:18 +0800)]
LU-259 Wrong option in ext4-force_over_16tb-rhel6.patch

Change-Id: I0b35fc06b3674fd3f8b3334a2af8e8e5b346f910
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/484
Tested-by: Hudson
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
9 years agoLU-283 Clean up trailing whitespace in sanity.sh
Prakash Surya [Thu, 5 May 2011 18:01:56 +0000 (11:01 -0700)]
LU-283 Clean up trailing whitespace in sanity.sh

The sanity.sh script has some trailing whitespace issues scattered about
the file. This patch is an attempt to clean these up.

Signed-off-by: Prakash Surya <surya1@llnl.gov>
Change-Id: Ie59fe322ec23ba9e2ce3006dc7d3e9d5ee3e24b5
Reviewed-on: http://review.whamcloud.com/501
Tested-by: Hudson
Reviewed-by: Chris Gearing <chris@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-243 async lov_sync() operation
Lai Siyao [Thu, 5 May 2011 02:59:34 +0000 (19:59 -0700)]
LU-243 async lov_sync() operation

Port bz 17239 to 2.1: use RPC set for obd_sync().

Signed-off-by: Lai Siyao <laisiyao@whamcloud.com>
Change-Id: Ie139dd6a4c141f3309814655627112eed6e71b40
Reviewed-on: http://review.whamcloud.com/496
Tested-by: Hudson
Reviewed-by: Niu Yawei <niu@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-77 cl_page.c::cl_page_own0() assertion in echoclient
Jinshan Xiong [Tue, 26 Apr 2011 05:31:52 +0000 (22:31 -0700)]
LU-77 cl_page.c::cl_page_own0() assertion in echoclient

There is no lock for echo_page, it is easy to hit this issue
when obdfilter_survey is doing IO in parallel.

Change-Id: I4bacb5a72afd7bad68bdabf5a64d711e34b5ea3c
Signed-off-by: Jinshan Xiong <jay@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/462
Tested-by: Hudson
Reviewed-by: Lai Siyao <laisiyao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-198 Exit with error if NFSCLIENT is set, but no nfs export found
yangsheng [Tue, 19 Apr 2011 10:02:52 +0000 (18:02 +0800)]
LU-198 Exit with error if NFSCLIENT is set, but no nfs export found

commit 2e7eb3a092fcc19a4550a677609f65f1fdd1e0d5
Date:   Thu Jan 27 14:58:48 2011 +0100

b=24410 exit with error if NFSCLIENT is set, but no nfs export found

a=Elena Gryaznova

Signed-off-by: YangSheng <ys@whamcloud.com>
Change-Id: I8d25737fa1ebd19729230bd38b423aa028527f3a
Reviewed-on: http://review.whamcloud.com/409
Reviewed-by: Brian J. Murrell <brian@whamcloud.com>
Tested-by: Hudson
Reviewed-by: Yu Jian <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-197 Remove files after fsx in sanity-benchmark.sh to drop locks.
yangsheng [Thu, 7 Apr 2011 13:41:29 +0000 (21:41 +0800)]
LU-197 Remove files after fsx in sanity-benchmark.sh to drop locks.

commit 9f1f7c4040440b8bab6130d30e9ecd1e8b803657
Date:   Mon Jan 31 14:32:08 2011 +0100

b=23729 cancel_lru_locks not working cause some locks are still in cache from mmap files

Fix sanity-benchmark.sh to remove files after fsx otherwise client keeps locks acquired for mmap files in cache.

a=Johann Lombardi

Signed-off-by: YangSheng <ys@whamcloud.com>
Change-Id: Ib9683b5e8fce550259a1c3bfd617aa04c2f3abdc
Reviewed-on: http://review.whamcloud.com/408
Tested-by: Hudson
Reviewed-by: Yu Jian <yujian@whamcloud.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-257 s/%krequires/%kversion/g
Brian J. Murrell [Tue, 3 May 2011 20:15:18 +0000 (16:15 -0400)]
LU-257 s/%krequires/%kversion/g

%krequires is not in the lustre.spec.in anymore after it was
removed due to being redundant (and unused) after bug 22281 was
landed.

Signed-off-by: Brian J. Murrell <brian@whamcloud.com>
Change-Id: If27667f66e4b4d44845fb70d375699fead7da7e0
Reviewed-on: http://review.whamcloud.com/489
Reviewed-by: Richard Henwood <rhenwood@whamcloud.com>
Tested-by: Richard Henwood <rhenwood@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Hudson
9 years agoLU-185 LBUG: (cl_page.c:1362:cl_page_completion()) ...
Jinshan Xiong [Wed, 6 Apr 2011 00:24:53 +0000 (17:24 -0700)]
LU-185 LBUG: (cl_page.c:1362:cl_page_completion()) ...

!(pg->cp_flags & CPF_READ_COMPLETED) ASSERTION(0) failed

The root cause of this issue is that the application is doing regular and
direct IO on the same time. This will cause a ra page is issued for read
again.

Change-Id: I11bb46d334db52fa3faf3922b70ac831391a8217
Signed-off-by: Jinshan Xiong <jay@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/404
Tested-by: Hudson
Reviewed-by: wangdi <di.wang@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-130 disable page migration
Johann Lombardi [Thu, 7 Apr 2011 18:55:29 +0000 (11:55 -0700)]
LU-130 disable page migration

Disable page migration until we implement a proper ->migratepage handler.

Change-Id: Ia98397db2ed6f6149b2708805320a5e929734308
Signed-off-by: Johann Lombardi <johann@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/399
Tested-by: Hudson
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Lai Siyao <laisiyao@whamcloud.com>
9 years agoLU-104 Properly address ownership of posix and flock locks
Oleg Drokin [Sat, 23 Apr 2011 03:15:37 +0000 (23:15 -0400)]
LU-104 Properly address ownership of posix and flock locks

This patch fixes the long standing problem where we only relied
on pid to determine lock ownership.

This patch uses kernel-passed fl_owner field for posix lock and
fl_file for flock ownership like it should. This is a wire
protocol change of sorts, but I have compat code in place. Also
introduced a clear separation for on the wire and in-memory
policy representations and ways to convert between them.

This makes nfs4 locking work, also fixes original problem with
flock locking of the same fd from different processes. Makes
our own tests/flock_test.c to pass now which it never did before.

connectathon on nfs4 also passes locally for me now.

Added a flock test that is actually being run now.

Signed-off-by: Oleg Drokin <green@whamcloud.com>
Change-Id: Ifb4f4a0246f34143497225f2b8974f5fd93817a1
Reviewed-on: http://review.whamcloud.com/459
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Tested-by: Hudson
9 years agoLU-202 fix the test_23 of sanity-quota.sh
Niu Yawei [Tue, 19 Apr 2011 04:12:09 +0000 (21:12 -0700)]
LU-202 fix the test_23 of sanity-quota.sh

test_23() uses a constant value(120000 = ~120M) to check if the
system has enough space to finish the test, so in the large OSTCOUNT
testing environment, the test will fail for short of disk space.

Changes of this patch are:
- Use a reasonable value to check free space instead of magic 120000;
- Specify the stripe index of test file for test_9 and test_23;

Issue:
Signed-off-by: Niu Yawei <niu@whamcloud.com>
Change-Id: If7cd01b7ce9dc025a0f1b8b70fa9214d70182a86
Reviewed-on: http://review.whamcloud.com/434
Tested-by: Hudson
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-73 RHEL6 support.
Alexey Lyashkov [Sun, 3 Apr 2011 19:04:07 +0000 (23:04 +0400)]
LU-73 RHEL6 support.

Change-Id: If694f1e25cb19438bcc30cfa8fc42c01156c9f8a
Signed-off-by: Alexey Lyashkov <alexey_lyashkov@xyratex.com>
Signed-off-by: Vitaly Fertman <vitaly_fertman@xyratex.com>
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/394
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Tested-by: Hudson
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-122 Revert the patch on bug 21122 and come up with a new fix
Jinshan Xiong [Fri, 1 Apr 2011 04:24:43 +0000 (21:24 -0700)]
LU-122 Revert the patch on bug 21122 and come up with a new fix

The patch on bug 21122 will cause deadlock. The root cause of
the issue is that a page was truncated even with cl_lock held.

Signed-off-by: Jinshan Xiong <jay@whamcloud.com>
Change-Id: If04a5632e64a019803465533d3ec7dba49e42168
Reviewed-on: http://review.whamcloud.com/316
Tested-by: Hudson
Reviewed-by: wangdi <di.wang@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-175 don't allocate kernbuf on the stack
Brian J. Murrell [Tue, 5 Apr 2011 05:16:51 +0000 (01:16 -0400)]
LU-175 don't allocate kernbuf on the stack

On i686, allocating a kernbuf of 1K on the stack causes a compiler
error:
lustre/mdt/mdt_lproc.c:255: error: the frame size of 1040 bytes is
                                   larger than 1024 bytes

Signed-off-by: Brian J. Murrell <brian@whamcloud.com>
Change-Id: I91e4fc39fa6bdc6b6d7937263520b1dfce8c4746
Reviewed-on: http://review.whamcloud.com/401
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: Hudson
Reviewed-by: Lai Siyao <laisiyao@whamcloud.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
9 years agoLU-216 Add WALK_SPACE_HAS_DATA_SEM check.
Bobi Jam [Sat, 16 Apr 2011 04:09:52 +0000 (12:09 +0800)]
LU-216 Add WALK_SPACE_HAS_DATA_SEM check.

Change-Id: I4597ac7c22dec66859ba7f592beab968b1a04760
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/429
Tested-by: Hudson
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-172 Fix sanity check_seq_oid() for test_27z.
Bobi Jam [Fri, 1 Apr 2011 04:15:17 +0000 (12:15 +0800)]
LU-172 Fix sanity check_seq_oid() for test_27z.

Change-Id: I7f839cf684d44289bcf73423602d9c128eed6cf8
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/389
Tested-by: Hudson
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Reviewed-by: Lai Siyao <laisiyao@whamcloud.com>
9 years agoLU-129 Skip quotacheck on administratively disabled OSTs
Niu Yawei [Fri, 1 Apr 2011 02:14:33 +0000 (19:14 -0700)]
LU-129 Skip quotacheck on administratively disabled OSTs

- skip quotacheck on administratively disabled OSTs.
- introduce OBD_NOTIFY_DEACTIVATE & OBD_NOTIFY_ACTIVATE event, thus lov is now aware of
  administratively enable/disable import event, and is able to udpate the 'ltd_activate'
  accordingly.

Issue: LU-129
Signed-off-by: Niu Yawei <niu@whamcloud.com>
Change-Id: I6af7dc09226d610bb1d481609a0a0ae09a05410e
Reviewed-on: http://review.whamcloud.com/387
Tested-by: Hudson
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-203 pass client mount options to zconf_mount_clients() correctly
Yu Jian [Mon, 18 Apr 2011 08:38:39 +0000 (16:38 +0800)]
LU-203 pass client mount options to zconf_mount_clients() correctly

Quote the third argument and pass it to zconf_mount_clients().

Signed-off-by: Yu Jian <yujian@whamcloud.com>
Change-Id: Ia29f2440894a9ec7a38615295ab1cd595d50c66f
Reviewed-on: http://review.whamcloud.com/430
Tested-by: Hudson
Reviewed-by: Chris Gearing <chris@whamcloud.com>
Reviewed-by: Brian J. Murrell <brian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
9 years agoLU-147 avoid 8k obd device amount limit
Alexey Lyashkov [Fri, 18 Mar 2011 20:13:45 +0000 (23:13 +0300)]
LU-147 avoid 8k obd device amount limit

increase number obd devices per host and
improve a lookup speed in device list via hashes.

Change-Id: I0357d0da42ce6fdd6e0846bb5d389df45f4db046
Signed-off-by: Alexey Lyashkov <Alexey_Lyashkov@xyratex.com>
Signed-off-by: Vitaly Fertman <vitaly_fertman@xyratex.com>
Reviewed-on: http://review.whamcloud.com/347
Tested-by: Hudson
Reviewed-by: Oleg Drokin <green@whamcloud.com>