Re: how to list deleted objects in snapshot

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

 



hi,

it seems, it could be the SnapContext problem.

i've tried stat command. it works fine.

i will i post the bug report?

thanks
fous

2016-11-16 21:55 GMT+01:00 Gregory Farnum <gfarnum@xxxxxxxxxx>:
> On Wed, Nov 16, 2016 at 5:13 AM, Jan Krcmar <honza801@xxxxxxxxx> wrote:
>> hi,
>>
>> i've got found problem/feature in pool snapshots
>>
>> when i delete some object from pool which was previously snapshotted,
>> i cannot list the object name in the snapshot anymore.
>>
>> steps to reproduce
>>
>> # ceph -v
>> ceph version 10.2.3 (ecc23778eb545d8dd55e2e4735b53cc93f92e65b)
>> # rados -p test ls
>> stats
>> # rados -p test mksnap now
>> # rados -p test -s now ls
>> selected snap 3 'now'
>> stats
>> # rados -p test rm stats
>> # rados -p test -s now ls
>> selected snap 3 'now'
>> # rados -p test -s now stat stats
>> selected snap 3 'now'
>> test/stats mtime 2016-11-16 14:07:14.000000, size 329
>> # rados -p test stat stats
>>  error stat-ing test/stats: (2) No such file or directory
>>
>> is this rados feature or bug?
>
> The rados tool does not apply the pool snapshot "SnapContext" when
> doing listings. I *think* if it did, you would get the listing you
> desire, but I'm not certain and it might be much more complicated. (If
> it's just about using the correct SnapContext, it would be a pretty
> small patch!)
> It does apply the correct SnapContext on many other operations; you
> did you try specifying "-s now" when doing the stat command?
> -Greg
>
>>
>> thanks
>> jan
>> _______________________________________________
>> ceph-users mailing list
>> ceph-users@xxxxxxxxxxxxxx
>> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux