listxattr separate for yfs and openafs

Gaja Sophie Peters gaja.peters at math.uni-hamburg.de
Mon Mar 8 20:19:28 GMT 2021


Am 08.03.21 um 12:53 schrieb David Howells:

> Unfortunately, this won't work.  The problem is if you have a read-only volume
> that is distributed across a collection of YFS and non-YFS servers,

Hmm, whyever would one want to do that... *laugh*
But I see your point, it's possible to do, so it will happen. The
question is, how the YFS-Server acts, when querying YFS-xattrs on an
(replicated) OpenAFS-volume, will it give an error, or simply an empty
string, which might be ok? But even then, it wouldn't be consistent and
give different results, depending which server-type was asked.

> I think the way to do this is to loop through the vnode->volume->servers in
> afs_listxattr() and see if any of them have don't have AFS_SERVER_FL_IS_YFS
> set.
> 
> Would you like to have a go at that, or shall I do it?

I'm afraid that's quite a bit beyond me, sorry... For my own usage, my
version works, but I'll keep in mind, if we ever should have a mixture
of yfs and afs servers, that it might break. ;)

Greetings,
Gaja

-- 
+----------
| IT-Gruppe, Systemadministration
| Universität Hamburg, Fachbereich Mathematik
| Bundesstr. 55 (Geomatikum)
| Raum 212; Tel. 42838-5175
+----------



More information about the linux-afs mailing list