Re: [PATCH] xfs: update ctime and mtime on clone destinatation inodes

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

 



On Thu, Feb 2, 2017 at 7:47 PM, Christoph Hellwig <hch@xxxxxx> wrote:
> On Thu, Feb 02, 2017 at 09:45:47AM -0800, Darrick J. Wong wrote:
>> On Thu, Feb 02, 2017 at 05:24:56PM +0100, Christoph Hellwig wrote:
>> > We're changing both metadata and data, so we need to update the
>> > timestamps.   This follows existing btrfs behavior.
>>
>> /me wonders, should the mtime change if we're deduping?  We're
>> definitely changing metadata, but we shouldn't be making any
>> user-visible changes to the file data.
>
> Good point - we're hitting this from the dedup path as well.
> I think we should not be updating mtime for dedupe.

Since CAP_ADMIN is allowed to dedup to an O_RDONLY dest
updating mtime would be even creepier.
--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux