Kai Krakow posted on Fri, 24 Jan 2014 21:27:19 +0100 as excerpted: > KC <conrad.francois.ar...@googlemail.com> schrieb: > >> I followed your advice on NOCOW for virtualbox images and torrents >> [...] >> >> As you can see, i used the recursive flag. However, I do not know >> whether this will automatically apply to files that will be created in >> the future in subfolders that do not yet exist. >> >> Also, how can I confirm whether a file/folder has a NOCOW attribute set >> on it? > > The C attribute is also inherited by newly created directories. But keep > in mind that, at the time applied, it only has effects on existing files > if they are empty (read: never written to yet). Newly created files will > inherit the attribute from its directory and then behave as expected. > > You can use lsattr to confirm the C attribute was set. But again keep in > mind: it does not reflect the file is actually nocow because of the > above caveat.
Excellent reply (including what I snipped). I don't actually work with VMs or other huge internal-write files much here, and don't otherwise work with extended attributes much, so would have had to lookup lsattr, and wasn't actually sure on the nested subdirs inheritance point myself tho I thought it /should/ work that way. And your chattr/rsync routine ensures all data will be newly copied in AFTER the chattr on the dir, thus nicely addressing the very critical point about NEW DATA ONLY coverage I was most worried about communicating correctly. =:^) Which is why I so enjoy mailing lists and newsgroups. Time and again I've seen one person's answer simply not getting the whole job done no matter how mightily they struggle to do so, but because it's a public list/group, someone else steps in with a followup that addresses the gaps left by the first answer. It nicely takes the pressure off any one person to have the "perfect" reply "every" time, as well as benefiting untold numbers of lurkers who now understand something they didn't know before, but may have never thought to ask themselves. =:^) -- Duncan - List replies preferred. No HTML msgs. "Every nonfree program has a lord, a master -- and if you use the program, he is your master." Richard Stallman -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html