On Wed, May 09, 2007 at 09:57:20PM +0100, Ricardo Correia wrote:
> On Wednesday 09 May 2007 04:57:53 Ricardo Correia wrote:
> > 2) In the end of zfs_zget(), if the requested object number is not found,
> > it allocates a new znode with that object number. This shouldn't happen in
> > any FUSE operation.
> 
> Apparently, I didn't (and I still don't) fully understand this part of the 
> code, but I still need it after all.
> 
> So I propose only a very simple change - an added boolean parameter that 
> allows zfs_zget() to return unlinked objects.
> 
> See the attached patch (and sorry for the mismatched paths WRT the 
> OpenSolaris 
> tree).

Simple test that does open(O_CREAT)/fstat()/unlink()/fstat() seems to
work fine on both FreeBSD and Solaris. Maybe your problem is somewhere
else?

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
URL: 
<http://mail.opensolaris.org/pipermail/zfs-code/attachments/20070510/18f4dde0/attachment.bin>

Reply via email to