BTW, there is another boundary case for zfs_ioc_recv(). If the desired destination snapshot already exists then EEXIST is always return. On the one hand, this totally makes sense. On the other hand, if we are doing force-receiving and the conflicting local snapshot would be destroyed if it had a different name, then maybe we should just destroy it and reuse the name?
In other words, if the snapshot already exists then: - if !force -> EEXIST - if force and the snapshot is later than drba_snapobj, then destroy the snapshot and proceed to receive the stream - otherwise -> EEXIST -- Andriy Gapon _______________________________________________ developer mailing list [email protected] http://lists.open-zfs.org/mailman/listinfo/developer
