您是否知道是否存在类似于 unionfs 的东西,它使用文件时间戳而不是设备优先级进行合并?
例如
有两个带有这些文件的“设备”:
/harddisk1/file1.txt (timestamped 11:30)
/harddisk1/file2.txt (timestamped 11:32)
/harddisk1/file3.txt (timestamped 11:33)
/harddisk2/file1.txt (timestamped 11:31)
/harddisk2/file2.txt (timestamped 11:30)
/harddisk2/file3.txt (timestamped 11:33)
它应该显示:
/union/file1.txt (timestamped 11:31) [from harddisk2]
/union/file2.txt (timestamped 11:32) [from harddisk1]
/union/file3.txt (timestamped 11:33) [from either harddisk1 or harddisk2]
答案1
也许 aufs 可以帮你做到这一点。它也是可堆叠的。