Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Mounting in dir namespace doesn't work for same path #1080

Closed
krit0n opened this issue Nov 11, 2016 · 7 comments
Closed

Mounting in dir namespace doesn't work for same path #1080

krit0n opened this issue Nov 11, 2016 · 7 comments

Comments

@krit0n
Copy link
Contributor

krit0n commented Nov 11, 2016

Describe what you wanted to do

I tried to mount a configuration into the dir namespace that was already mounted in another directory under the same path.

Describe what you expected

I expected this to succeed.

Describe what actually happened

    $ mkdir x && cd $_
    $ sudo kdb mount x.ini dir/myconfig ini
    $ cd .. && mkdir y && cd $_
    $ sudo kdb mount y.ini dir/myconfig ini
    The command mount terminated unsuccessfully with the info:
    Mountpoint dir/myconfig is one of the already used names: dir/myconfig 

System Information

  • Elektra Version: 0.8.18
@krit0n
Copy link
Contributor Author

krit0n commented Nov 11, 2016

When you use Elektra for development, you have multiple projects in multiple directories. I think in this scenario its a common usecase, that you mount configuration in the same path.
Maybe it is possible to add an option to kdb mount to use another name instead of the mountpoint?

@Namoshek
Copy link
Contributor

As far as I know, if you mount something like kdb mount git.dump dir/git dump, it will be used for every directory. You can easily check by mounting something like that, setting a key in two directories and looking for the file in the .dir directory (in both folders).

@markus2330
Copy link
Contributor

Yes, mounting is a static information, whereas resolving is happening dynamically.

@krit0n
Copy link
Contributor Author

krit0n commented Nov 11, 2016

Ok, I understand... so I cannot use different configuration file paths in different directories if I want to mount it to the same mountpoint.

@markus2330 markus2330 mentioned this issue Nov 12, 2016
5 tasks
@markus2330
Copy link
Contributor

I think your expectations are valid, there should be a way for user and dir specific mountpoints.

In #1074 we discuss to support what you suggested here (not only for dir, but also for user). I linked this issue from there.

@stale
Copy link

stale bot commented May 6, 2020

I mark this issue stale as it did not have any activity for one year. I'll close it in two weeks if no further activity occurs. If you want it to be alive again, ping the issue by writing a message here or create a new issue with the remainder of this issue.
Thank you for your contributions 💖

@stale stale bot added the stale label May 6, 2020
@stale
Copy link

stale bot commented May 20, 2020

I closed this issue now because it has been inactive for more than one year. If I closed it by mistake, please do not hesitate to reopen it or create a new issue with the remainder of this issue.
Thank you for your contributions 💖

@stale stale bot closed this as completed May 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants