Re: [PATCH 0/4] rbd: get rid of the snapshot list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/30/2013 08:12 PM, Alex Elder wrote:
> On that, the only thing inefficient is looking up the
> snapshot id given its name.  It is so inefficient it
> might be worth offering an op that does that for us,
> because as it is we have to do a sequential search
> to find out a snapshot's name.  (Maybe it's not that
> important to track the name for parent snapshots but
> users might be interested.)

Looking at this, I was confused as I wrote it...

For a v2 snapshot, we iterate across snapshot ids in
the context, and fetch the name for each.  Only
when we find the name that matches the one sought
do we know which id it's associated with.

Anyway, once we know the id it's a direct query
for all the other info.

					-Alex
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux