Received: by oss.sgi.com id ; Tue, 11 Jul 2000 23:38:06 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:14620 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Tue, 11 Jul 2000 23:37:38 -0700 Received: from larry.melbourne.sgi.com (larry.melbourne.sgi.com [134.14.52.130]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via SMTP id XAA17255 for ; Tue, 11 Jul 2000 23:30:16 -0700 (PDT) mail_from (dxm@clouds.melbourne.sgi.com) Received: from clouds.melbourne.sgi.com (clouds.melbourne.sgi.com [134.14.55.166]) by larry.melbourne.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id QAA27950; Wed, 12 Jul 2000 16:35:07 +1000 Received: from localhost (dxm@localhost) by clouds.melbourne.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via SMTP id QAA65636; Wed, 12 Jul 2000 16:35:04 +1000 (EST) Message-Id: <200007120635.QAA65636@clouds.melbourne.sgi.com> X-Mailer: exmh version 2.0.2 2/24/98 To: cattelan@thebarn.com cc: linux-xfs@oss.sgi.com Subject: Re: page_buf breakage... In-reply-to: Your message of "Wed, 12 Jul 2000 01:22:24 EST." <396C0EA0.4D3F0EB8@thebarn.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 12 Jul 2000 16:35:04 +1000 From: Daniel Moore Sender: owner-linux-xfs@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linux-xfs-outgoing Russell Cattelan writes: => Daniel Moore wrote: => > Is pb_count_desired meant to be supported or is it an IRIX hang => > over that needs to be removed? => => Hmm... well we need to write out the correct number of bytes. => Let me look at this and see if we should change xfs or pagebuf... XFS_BUF_SET_COUNT is the only writer of pb_count_desired in XFS. xlog_bwrite is the only user of XFS_BUF_SET_COUNT in XFS. xlog_bwrite is local to xfs_log_recover.c => Where in pagebuf is it ignoring the count field? I think all the time - there seems to be an assumption that pb_count_desired == pb->pb_buffer_length or perhaps that it's a rounded up version of pb_buffer_length (not sure). The log recovery code seems to be the only code that allocates a buffer of size X and then requests (through pb_count_desired) that only Y bytes get written (where Y