Per,

Per Baatrup schrieb:
Roland,

Clearly an extension of "cp" would be very nice when managing large files.
Today we are relying heavily on snapshots for this, but this requires disipline 
on storing files in separate zfs'es avioding to snapshot too many files that 
changes frequently.

The reason I was speaking about "cat" in stead of "cp" is that in addition to copying a 
single file I would like also to concatenate several files into a single file. Can this be accomplished with 
your "(z)cp"?

No - "zcp" is a simpler case than what you proposed, and thats why
I pointed it out as a discussion case.  ( And it is clearly NOT
the same as 'ln'. )

Btw. I would be surprised to hear that this can be implemented
with current APIs;  you would need a call like (my fantasy here)
"write_existing_block()" where the data argument is not a pointer
to a buffer in memory but instead a reference to an already existing
data block in the pool. Based on such a call ( and a corresponding one
for read that returns those references in the pool ) IMHO an implementation
of the commands would be straight forward ( the actual work would be
in the implementation of those calls ).

This can certainly been done - I just doubt it already exists.

  -- Roland


--

**********************************************************
Roland Rambau                 Platform Technology Team
Principal Field Technologist  Global Systems Engineering
Phone: +49-89-46008-2520      Mobile:+49-172-84 58 129
Fax:   +49-89-46008-2222      mailto:roland.ram...@sun.com
**********************************************************
    Sitz der Gesellschaft: Sun Microsystems GmbH,
    Sonnenallee 1, D-85551 Kirchheim-Heimstetten
    Amtsgericht München: HRB 161028;  Geschäftsführer:
    Thomas Schröder, Wolfgang Engels, Wolf Frenkel
    Vorsitzender des Aufsichtsrates:   Martin Häring
******* UNIX ********* /bin/sh ******** FORTRAN **********
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to