diff options
author | David Howells <dhowells@redhat.com> | 2023-10-27 12:45:56 +0300 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2024-01-01 19:36:58 +0300 |
commit | af9a5b4930dfafbf0274e9403cb64fcc698bb096 (patch) | |
tree | fde463a19716da115542ecb8e0ee40105af323b8 /fs/afs/rotate.c | |
parent | d2ce4a84c21f803cd65097d1112b60226b2a3467 (diff) | |
download | linux-af9a5b4930dfafbf0274e9403cb64fcc698bb096.tar.xz |
afs: Add some more info to /proc/net/afs/servers
In /proc/net/afs/servers, show the cell name and the last error for each
address in the server's list.
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
Diffstat (limited to 'fs/afs/rotate.c')
-rw-r--r-- | fs/afs/rotate.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/afs/rotate.c b/fs/afs/rotate.c index a6bda8f44c0f..5423ac80f4e0 100644 --- a/fs/afs/rotate.c +++ b/fs/afs/rotate.c @@ -133,6 +133,8 @@ bool afs_select_fileserver(struct afs_operation *op) if (op->nr_iterations == 0) goto start; + WRITE_ONCE(alist->addrs[op->addr_index].last_error, error); + /* Evaluate the result of the previous operation, if there was one. */ switch (op->call_error) { case 0: |