Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Problem with VCS_info in nested nfs mounts
- X-seq: zsh-workers 52213
- From: "Alexander Duscheleit" <alexander.duscheleit@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Problem with VCS_info in nested nfs mounts
- Date: Sun, 08 Oct 2023 15:59:44 +0000
- Arc-authentication-results: i=1; mail.sweevo.net; auth=pass smtp.mailfrom=alexander.duscheleit@xxxxxxxxxx
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=sweevo.net; s=mail; t=1696780784; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fypYC3fk6PY7OAXk6sKiGL15HZUYZjrsT9HwHnmspUc=; b=imwc75Sen+7ozhGtMQqYeeBnpWt6UgYJnRWXWPlXQ/NiM/lPeGkVWwUmwI5OeQAV29TMql 5br6RbUrvuQWcQAY/ihu2bMEbPnhVKhNZPGarzCdzCXr1rY7BjDCUxpC5WPxu479+Vt6jE Fz2VOdVNkHleiQAalqCgGRurC+bHwkw=
- Arc-seal: i=1; s=mail; d=sweevo.net; t=1696780784; a=rsa-sha256; cv=none; b=NnBkRDWSjrV92a+p+kS8PDgqmi5ArtBCNfa8sDG2+opojBJnH3SI+99afsFlCnFcLkej2L ZkRSAsU+HRQM63wMwafnhjCCNDJepupOctp+TFbe7Wk8cFCtrAzOQ4JONZpc2o3PnXd0A6 O2V3cpLP2oeZaRvxpKS59wcz3QXMV1M=
- Archived-at: <https://zsh.org/workers/52213>
- List-id: <zsh-workers.zsh.org>
- Tls-required: No
Hi all,
I first posted this problem at https://github.com/grml/grml-etc-core/issues/141 but got no reply.
Upon further investigation, the gmrl vcs prompt relies heavily on the VCS_info module, so the culprit may lie there.
When I cd into a deeply nested NFS mount the current path is somehow broken via the VCS module.
[root@client] ~ # showmount -e server
Export list for server:
/mnt/storage/share/Pictures 192.168.0.99
/mnt/storage/share/Programs 192.168.0.99
/mnt/storage/share/Downloads 192.168.0.99
/mnt/storage/share/Books 192.168.0.99
/mnt/storage/share/Clips 192.168.0.99
/mnt/storage/share/Music 192.168.0.99
/mnt/storage 192.168.0.99
(The nested exports are because those are BTRFS subvolumes which require manually setting fsids)
[root@client] ~ # cd /mnt/server/share/Music/X-Mas
[root@client] /mnt/server/share/Music/X-Mas # /bin/ls
bin boot checkout dev esp etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var
[root@client] /mnt/server/share/Music/X-Mas # /bin/ls $PWD
'Die Stars Der Hitparade Feiern Weihnachten (2009)' 'RTL Weihnachten 2008' 'The Ultimate Christmas Music Collection'
'Various Artists' 'Frank Schöbel' 'Roland Kaiser'
'Top Christmas Songs of All Time' 'von Wilfried'
You can clearly see the difference between `ls` and `ls $PWD`, which should not exist.
Removing the VCS module from `:prompt:grml:left:setup` fixes this.
I'm not that familiar with zsh configuration, so if someone could supply a minimal .zshrc employing plain VCS_info I would be prepared to test that.
Thanks,
Alex
P.S.: I'm not subscribed to the list, so please CC all inquiries.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author