Heya! btrfs' btrfs_inode_item structure contains a field for the birth time of a file, .otime. This field could be quite useful, and I'd like to make use of it. I can query it with the BTRFS_IOC_TREE_SEARCH ioctl from userspace, alas it appears that the entry is never actually initialized to anything other than 0? Is this on purpose, or simply an oversight? It should be easy to initialize it to the mtime when the inode is first created... I am aware of the discussions about introducing the birth time as something queriable with a future xstat() call. Even if that high-level API doesn't exist yet, and even if it might be messy to use BTRFS_IOC_TREE_SEARCH to query the otime currently, I think it would be good to properly initialize the field, so that pre-existing file systems would report useful data when xstat() is added one day... (Of course, even without xstat(), I think it would be good to have an unprivileged ioctl to query the otime in btrfs... the TREE_SEARCH ioctl after all requires privileges...) Lennart -- Lennart Poettering, Red Hat -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
