On Thu, Sep 28, 2006 at 05:36:16PM +0200, Robert Milkowski wrote:
> Hello Chris,
> 
> Thursday, September 28, 2006, 4:55:13 PM, you wrote:
> 
> CG> I keep thinking that it would be useful to be able to define a
> CG> zfs file system where all calls to mkdir resulted not just in a
> CG> directory but in a file system.  Clearly such a property would not
> CG> be inherited but in a number of situations here it would be a really 
> useful feature.
> 
> CG> I can see there would be issues with access these new file
> CG> systems over NFS as NFS is currently not to good when new file
> CG> systems are created, but has any one considered this?
> CG>  
> 
> 
> dtrace -w -n syscall::mkdir:entry'{system("zfs create %s\n", 
> copyinstr(arg0+1));}'
> 
> Should do the job :)
> 
> 
> ps. just kidding - but it will work to some extent :)

You'd have to stop() the victim and prun it after the mkdir.  And you'd
have to use predicates to do this only for the mkdirs of interest.  And
you'd have to be willing to deal with drops (where the mkdir just
doesn't happen).

Nico
-- 
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to