Skip to contentSkip to conversation

btrfs send/receive do not keep inode ctimes

DISCUSSION Karl Kiniger 2 participants 3 messages Oct 25, 2013 – Nov 4, 2013 Btrfs file system

lore
Share & tools
lore
#0 lore raw

Hello insiders

is there low level support to change inode ctimes somehow? (on ext[234] it can be done using debugfs)

It would be nice to make received snapshots as similar as possible to their send source. (I am not talking about uuids and such, just ls -lc output)

creative ideas are welcome,

Karl

#1 lore raw

Hi Karl,

Quoted 2 lines · Karl Kiniger

is there low level support to change inode ctimes somehow? (on ext[234] it can be done using debugfs)

No.

Quoted 3 lines

It would be nice to make received snapshots as similar as possible to their send source. (I am not talking about uuids and such, just ls -lc output)

This is not planned. Currently, we do not even preserve the inode number. Can you give a short explanation of your use case, why do you need to keep the ctime?

Thanks,
-Jan

#2 lore raw

Hi Jan + list

Quoted 7 lines · Jan Schmidt

Hi Karl,

Quoted 2 lines · Karl Kiniger

is there low level support to change inode ctimes somehow? (on ext[234] it can be done using debugfs)

No.

Yes :-), offline only of course

Quoted 10 lines
Quoted 4 lines

It would be nice to make received snapshots as similar as possible to their send source. (I am not talking about uuids and such, just ls -lc output)

This is not planned. Currently, we do not even preserve the inode number. Can you give a short explanation of your use case, why do you need to keep the ctime?

Thanks,
-Jan

I just wanted to clone a btrfs with many snapshots and at the same time be able to mount both original and clone on the same computer. (I did not even try because I dont know what kind of pain the duplicate
uuids will cause)

Is there a known way to re-UUID such a cloned btrfs?

I don't really "need" the ctime, its just convenient for looking whats new in some folder - wget adjusts the mtime and unix/linux lacks the "file creation time" time stamp.

Greetings,
Karl