From owner-freebsd-current@FreeBSD.ORG Sun Jul 31 16:08:59 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A00F16A41F for ; Sun, 31 Jul 2005 16:08:59 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from rosebud.otenet.gr (rosebud.otenet.gr [195.170.0.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E4F143D45 for ; Sun, 31 Jul 2005 16:08:57 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-a128.otenet.gr [212.205.215.128]) by rosebud.otenet.gr (8.13.4/8.13.4/Debian-1) with ESMTP id j6VG8twG008097; Sun, 31 Jul 2005 19:08:55 +0300 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.4/8.13.4) with ESMTP id j6VG8s2N050225; Sun, 31 Jul 2005 19:08:54 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.13.4/8.13.4/Submit) id j6VG8r3M050221; Sun, 31 Jul 2005 19:08:53 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Sun, 31 Jul 2005 19:08:53 +0300 From: Giorgos Keramidas To: Joseph Koshy Message-ID: <20050731160853.GC49839@gothmog.gr> References: <20050731141801.GA49300@gothmog.gr> <84dead7205073108564f71f1ab@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <84dead7205073108564f71f1ab@mail.gmail.com> X-Mailman-Approved-At: Mon, 01 Aug 2005 12:01:06 +0000 Cc: freebsd-current@freebsd.org Subject: Re: mmap bug? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Jul 2005 16:08:59 -0000 On 2005-07-31 21:26, Joseph Koshy wrote: > > The following program can be used to mmap() a region > > Do you still see the 'extra' data if you unmount and remount > the filesystem with the test file? That's something I didn't test. No, the 'extra' data disappears. I tried this by creating a new md-based filesystem. After the file system is unmounted, mounted again and the test program run to write through mmap() past the end of the file, there are zeroes in that area (before I write my own data, that is). The size of the file remains the same between mount/unmount requests.