From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15]) by oss.sgi.com (Postfix) with ESMTP id 5DAC67F50 for ; Thu, 6 Jun 2013 19:26:24 -0500 (CDT) Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by relay3.corp.sgi.com (Postfix) with ESMTP id EDF97AC007 for ; Thu, 6 Jun 2013 17:26:20 -0700 (PDT) Received: from ipmail07.adl2.internode.on.net (ipmail07.adl2.internode.on.net [150.101.137.131]) by cuda.sgi.com with ESMTP id ywnFx42LT0NnFGMj for ; Thu, 06 Jun 2013 17:26:16 -0700 (PDT) Received: from disappointment ([192.168.1.1]) by dastard with esmtp (Exim 4.76) (envelope-from ) id 1UkkVR-0003to-Om for xfs@oss.sgi.com; Fri, 07 Jun 2013 10:26:13 +1000 Received: from dave by disappointment with local (Exim 4.80) (envelope-from ) id 1UkkVR-0001JS-L1 for xfs@oss.sgi.com; Fri, 07 Jun 2013 10:26:13 +1000 From: Dave Chinner Subject: [PATCH 01/48] mkfs: fix realtime device initialisation Date: Fri, 7 Jun 2013 10:25:24 +1000 Message-Id: <1370564771-4929-2-git-send-email-david@fromorbit.com> In-Reply-To: <1370564771-4929-1-git-send-email-david@fromorbit.com> References: <1370564771-4929-1-git-send-email-david@fromorbit.com> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: xfs@oss.sgi.com From: Dave Chinner The method that libxfs uses for logging inodes is not followed by rtinit(). It fails to join the realtime bitmap inode to the final extent free transactions, and so mkfs.xfs dies when trying to log changes to the bitmap inode. Fix it. Signed-off-by: Dave Chinner --- mkfs/proto.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mkfs/proto.c b/mkfs/proto.c index 56eed31..f201096 100644 --- a/mkfs/proto.c +++ b/mkfs/proto.c @@ -733,6 +733,8 @@ rtinit( tp = libxfs_trans_alloc(mp, 0); if ((i = libxfs_trans_reserve(tp, 0, 0, 0, 0, 0))) res_failed(i); + libxfs_trans_ijoin(tp, rbmip, 0); + libxfs_trans_ihold(tp, rbmip); xfs_bmap_init(&flist, &first); ebno = XFS_RTMIN(mp->m_sb.sb_rextents, bno + NBBY * mp->m_sb.sb_blocksize); -- 1.7.10.4 _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs