[OpenIndiana-discuss] Finding the "last" snapshot for a zfs volume
Discussion list for OpenIndiana
openindiana-discuss at openindiana.org
Wed May 14 13:29:15 UTC 2014
On Wed, 14 May 2014, Discussion list for OpenIndiana wrote:
>> From: Discussion list for OpenIndiana [mailto:openindiana-
>> discuss at openindiana.org]
>>
>> It seems that someone should bring up this issue on the zfs list. All
>> of the proposed solutions have involved 'tail -1'. This is a
>> non-scalable solution which does not work efficiently for any number
>> of snapshots.
>
> What's wrong with it?
If there are a million snapshots, a million lines of output need to be
piped through 'tail -1' until that last line is found. This is very
wasteful and non-scalable. It just gets slower and slower the more
snapshots there are.
Bob
--
Bob Friesenhahn
bfriesen at simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
More information about the openindiana-discuss
mailing list