From 2654a7fad6f434d2ca7cf656b13555af35de538b Mon Sep 17 00:00:00 2001 From: "Brian K. White" <54458165+bkw777@users.noreply.github.com> Date: Fri, 31 Jan 2025 13:35:53 -0500 Subject: [PATCH] Update xattr.md --- ref/xattr.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/ref/xattr.md b/ref/xattr.md index 6f326fd..ee1d8b6 100644 --- a/ref/xattr.md +++ b/ref/xattr.md @@ -88,7 +88,7 @@ As with a real drive, both the filename and attr must match in order to access a filename "foo" with attr "a" and filename "foo" with attr "b" -are two different files. +are two different files, basically the same as if one were named "fooa" and one were named "foob" For instance to load or delete one of these files that has a non-default attr, you have to specify both the filename and the attr : `PDD(opr:6.2,F)> rm T3.DO d` @@ -97,6 +97,21 @@ This is working on Linux, Macos, & FreeBSD. For any platform that isn't supported, or on any filesystem that doesn't have extended attributes, or any new local files that weren't created by a tpdd client, it will just transparently work the old way. Attr will be 'F' or whatever the "-a" commandline flag or the ATTR environment variable says. +## notes + +To see xattrs on files: +`getfattr -d -- NAME.BA` +`getfattr -d -- *` + +cp, tar, rsync, etc don't preserve xattrs with files by default. + +They all have options for it, so you can preserve the xattrs in copies, it's just not the default behavior. + +Even text editors may need extra config so they don't unlink & create a new file on each save. + +In reality, you will never notice or care because everything that you ever want to use with a TPDD emulator, they all happen to always hard-code attr=F at all times, and that is the same thing dl2 will do any time a file has no xattr. +This is the same as all tpdd emulators which have all been hard-coding 'F' all along anyway since the beginning in 1984. + ## misc references Wrapper to provide a single interface to the different platforms xattr interfaces. Interesting but not used because it's c++ not plain c.