Re: Set object mtime

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

 



On Mon, 25 Mar 2013, Damien Churchill wrote:
> On 25 March 2013 19:18, Wido den Hollander <wido@xxxxxxxx> wrote:
> > On 03/25/2013 12:27 PM, Damien Churchill wrote:
> >>
> >> Does anyone know if it's possible to set an objects mtime at all in RADOS?
> >>
> >
> > You mean with a specific operation while not modifying the content of the
> > object?
> >
> > I checked the rados API, but I couldn't find any method which allows you to
> > do so.
> 
> Neither could I. I guess the question should be changed to:
> 
> How difficult would it be to allow the modification time to be set
> (including setting it to a time in the past) without changing the
> object?

The CREATE operation just creates the object if it doesn't exist.  You can 
use that op and set the mtime to whatever you want.  You probably need to 
use the C++ bindings with the ObjectWriteOperation method; I don't think 
there is a standalone call for it (tho one is easily added).

sage
--
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