Message ID | D1E4D02760513D4B90DC3B40FF32AF355EE263D6@H3CMLB14-EX.srv.huawei-3com.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <ocfs2-devel-bounces@oss.oracle.com> X-Original-To: patchwork-ocfs2-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7DC54C0553 for <patchwork-ocfs2-devel@patchwork.kernel.org>; Tue, 5 Apr 2016 08:38:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8106B202BE for <patchwork-ocfs2-devel@patchwork.kernel.org>; Tue, 5 Apr 2016 08:38:27 +0000 (UTC) Received: from aserp1040.oracle.com (aserp1040.oracle.com [141.146.126.69]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CA5D620320 for <patchwork-ocfs2-devel@patchwork.kernel.org>; Tue, 5 Apr 2016 08:38:25 +0000 (UTC) Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u358bhIE025132 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 5 Apr 2016 08:37:43 GMT Received: from oss.oracle.com (oss-old-reserved.oracle.com [137.254.22.2]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id u358bfEO023046 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 5 Apr 2016 08:37:41 GMT Received: from localhost ([127.0.0.1] helo=lb-oss.oracle.com) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from <ocfs2-devel-bounces@oss.oracle.com>) id 1anMUX-0000wz-QT; Tue, 05 Apr 2016 01:37:41 -0700 Received: from aserv0022.oracle.com ([141.146.126.234]) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from <shi.changkuo@h3c.com>) id 1anMU8-0000vH-3J; Tue, 05 Apr 2016 01:37:16 -0700 Received: from userp1030.oracle.com (userp1030.oracle.com [156.151.31.80]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id u358bFl9021569 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 5 Apr 2016 08:37:15 GMT Received: from userp2040.oracle.com (userp2040.oracle.com [156.151.31.90]) by userp1030.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u358bELR020082 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 5 Apr 2016 08:37:15 GMT Received: from pps.filterd (userp2040.oracle.com [127.0.0.1]) by userp2040.oracle.com (8.15.0.59/8.15.0.59) with SMTP id u358YjfQ014782; Tue, 5 Apr 2016 08:37:14 GMT Received: from h3cmg01-ex.h3c.com (smtp.h3c.com [221.12.31.13] (may be forged)) by userp2040.oracle.com with ESMTP id 222xjjx43u-1; Tue, 05 Apr 2016 08:37:13 +0000 Received: from BJHUB02-EX.srv.huawei-3com.com (unknown [10.63.20.170]) by h3cmg01-ex.h3c.com with smtp id 24c8_1261_19286248_466c_4257_8916_cceb24839070; Tue, 05 Apr 2016 16:36:41 +0800 Received: from H3CMLB14-EX.srv.huawei-3com.com ([fe80::f804:6772:bd71:f07f]) by BJHUB02-EX.srv.huawei-3com.com ([::1]) with mapi id 14.03.0248.002; Tue, 5 Apr 2016 16:36:33 +0800 From: Shichangkuo <shi.changkuo@h3c.com> To: Srinivas Eeda <srinivas.eeda@oracle.com> Thread-Topic: [Ocfs2-tools] [Ocfs2-tools-devel] [PATCH 1/1] o2hb doesn't not exit when fsck uncleanly device Thread-Index: AdGPEw3v4froX3u5REKUtjD13YkUxg== Date: Tue, 5 Apr 2016 08:36:32 +0000 Message-ID: <D1E4D02760513D4B90DC3B40FF32AF355EE263D6@H3CMLB14-EX.srv.huawei-3com.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.153.28.143] MIME-Version: 1.0 X-Proofpoint-SPF-Result: None X-ServerName: [221.12.31.13] X-Proofpoint-Virus-Version: vendor=nai engine=5800 definitions=8125 signatures=670707 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1601100000 definitions=main-1604050129 Cc: "ocfs2-tools-devel@oss.oracle.com" <ocfs2-tools-devel@oss.oracle.com>, "ocfs2-devel@oss.oracle.com" <ocfs2-devel@oss.oracle.com> Subject: [Ocfs2-devel] [Ocfs2-tools] [Ocfs2-tools-devel] [PATCH 1/1] o2hb doesn't not exit when fsck uncleanly device X-BeenThere: ocfs2-devel@oss.oracle.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: <ocfs2-devel.oss.oracle.com> List-Unsubscribe: <https://oss.oracle.com/mailman/listinfo/ocfs2-devel>, <mailto:ocfs2-devel-request@oss.oracle.com?subject=unsubscribe> List-Archive: <http://oss.oracle.com/pipermail/ocfs2-devel> List-Post: <mailto:ocfs2-devel@oss.oracle.com> List-Help: <mailto:ocfs2-devel-request@oss.oracle.com?subject=help> List-Subscribe: <https://oss.oracle.com/mailman/listinfo/ocfs2-devel>, <mailto:ocfs2-devel-request@oss.oracle.com?subject=subscribe> Content-Type: multipart/mixed; boundary="===============3606916848876862735==" Sender: ocfs2-devel-bounces@oss.oracle.com Errors-To: ocfs2-devel-bounces@oss.oracle.com X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff -up a/ocfs2-tools/libocfs2/openfs.c b/ocfs2-tools/libocfs2/openfs.c --- a/ocfs2-tools/libocfs2/openfs.c +++ b/ocfs2-tools/libocfs2/openfs.c @@ -464,6 +464,8 @@ ptr += 2; } + if (*ret_fs && (*ret_fs)->fs_dlm_ctxt) + fs->fs_dlm_ctxt = (*ret_fs)->fs_dlm_ctxt; *ret_fs = fs; return 0; BTW: why should we open the device twice in this scene?