Bind-mounted directories appear twice (Linux)

*** Please report new bugs here! ***

Moderators: XnTriq, helmut, xnview, Dreamer

Post Reply
User avatar
schultzter
Posts: 27
Joined: Tue Aug 26, 2014 4:38 pm
Location: Montreal, Qc
Contact:

Bind-mounted directories appear twice (Linux)

Post by schultzter »

I'm running XnViewMP 0.72 on Linux.

My photos are stored in /srv/galleries, but /srv is actually bind-mounted from /var/srv. So in the Folders view on the left side I see galleries twice. I assume XnViewMP is picking up the two different paths to the same location some how and displaying them both. Is there a way to tell XnViewMP which is the "proper" one to use?

Image

How does XnView decide what to show at the top level of the Folders view? It seems like a very hap-hazard list of directories and short-cuts.
Version 0.72 x64 (Dec 19 2014) on Arch Linux

Headed for the second star to the right and straight on 'til morning...
User avatar
xnview
Author of XnView
Posts: 43598
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Bind-mounted directories appear twice (Linux)

Post by xnview »

You have Desktop + Home, and after all mounted devices. How do you mount it?
Pierre.
User avatar
schultzter
Posts: 27
Joined: Tue Aug 26, 2014 4:38 pm
Location: Montreal, Qc
Contact:

Re: Bind-mounted directories appear twice (Linux)

Post by schultzter »

xnview wrote:You have Desktop + Home, and after all mounted devices. How do you mount it?
Here's an excerpt from my /etc/fstab:

Code: Select all

/dev/sda5           	/         	ext4      	rw,relatime,data=ordered	0 1
/dev/sda6           	/var         	ext4      	rw,relatime,data=ordered	0 2
/dev/sda7		none		swap		defaults 			0 0

/dev/sdb1		/var/srv/galleries	ext3	rw,relatime,data=ordered	0 3

# make these appear where expected even though we physically store the in /var
/var/home		/home		none		bind				0 0
/var/srv		/srv		none		bind				0 0
So you can see my photos on are on another disk (sdb1) which is mounted to /var/srv/galleries. And then /var/srv is bound to /srv so it appears where it is expect but so that I can actually store the contents of /srv on the same partition as /var.
Version 0.72 x64 (Dec 19 2014) on Arch Linux

Headed for the second star to the right and straight on 'til morning...
User avatar
xnview
Author of XnView
Posts: 43598
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Bind-mounted directories appear twice (Linux)

Post by xnview »

i've tried to do the same on my fstab, but can't reproduce. 'gallery' doesn't appears twice, strange
Pierre.
Post Reply