Ling, Xiaofeng
2004-Mar-16 03:45 UTC
[Ocfs2-devel] [Bug] mmap fail for ocfs2-1.9.9 in 2.4.20
do the follow steps, on ext2, it is ok. but on ocfs2, it fails, Test Steps: 1. Create a file, while it is open call unlink(). 2. mmap the file to memory, then call close(). If mmap() add extra reference to the file, the file descriptor will not be removed. 3. Try to open the file, open should success; 3. munmap the mapped memory; 4. Try open the file again, should get ENOENT; The result is in step 4, the file is still existing. ------------------- Intel China Software Lab. iNet: 8-752-1806 021-52574545-1243(O) xfling@users.sourceforge.net Opinions are my own and don't represent those of my employer
On Tue, Mar 16, 2004 at 05:45:07PM +0800, Ling, Xiaofeng wrote:> do the follow steps, on ext2, it is ok. but on ocfs2, it fails, > > Test Steps: > 1. Create a file, while it is open call unlink().What sort of return code do you get from unlink? We don't support delete while a file is still open, so it's not surpise that the file is still there after all this -- we can't delete it! --Mark -- Mark Fasheh Software Developer, Oracle Corp mark.fasheh@oracle.com
Ling, Xiaofeng
2004-Mar-17 04:05 UTC
[Ocfs2-devel] [Bug] mmap fail for ocfs2-1.9.9 in 2.4.20
The test is from Open Posix Test Suite. http://openposix.sf.net attach is the failed case. mount /tmp with ocfs2 and run the case will fail.> -----Original Message----- > From: Mark Fasheh [mailto:mark.fasheh@oracle.com] > Sent: 2004Äê3ÔÂ17ÈÕ 9:03 > To: Ling, Xiaofeng > Cc: ocfs2-devel@oss.oracle.com > Subject: Re: [Ocfs2-devel] [Bug] mmap fail for ocfs2-1.9.9 in 2.4.20 > > > On Tue, Mar 16, 2004 at 05:45:07PM +0800, Ling, Xiaofeng wrote: > > do the follow steps, on ext2, it is ok. but on ocfs2, it fails, > > > > Test Steps: > > 1. Create a file, while it is open call unlink(). > What sort of return code do you get from unlink? We don't > support delete while a file is still open, so it's not > surpise that the file is still there after all this -- we > can't delete it! > --Mark > > -- > Mark Fasheh > Software Developer, Oracle Corp > mark.fasheh@oracle.com >-------------- next part -------------- A non-text attachment was scrubbed... Name: 12-1.c Type: application/octet-stream Size: 3204 bytes Desc: 12-1.c Url : http://oss.oracle.com/pipermail/ocfs2-devel/attachments/20040317/bfc5cefb/12-1.obj