Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manually specifying namespaces no longer works #45

Open
scottyeager opened this issue Aug 21, 2024 · 1 comment · May be fixed by #46
Open

Manually specifying namespaces no longer works #45

scottyeager opened this issue Aug 21, 2024 · 1 comment · May be fixed by #46

Comments

@scottyeager
Copy link

I noticed that in v0.1.11, trying to set namespaces individually and manually no longer works:

# /usr/local/bin/zdbfs \
  -o mh=2a02:1802:5e:0:c11:7dff:fe8e:83bb \
  -o mp=9900 \
  -o mn=18-622157-meta0 \
  -o ms=password \
  -o dh=2a02:1802:5e:0:c11:7dff:fe8e:83bb \
  -o dp=9900 \
  -o dn=18-622159-data0 \
  -o ds=password \
  -o th=2a02:1802:5e:0:c11:7dff:fe8e:83bb \
  -o tp=9900 \
  -o tn=18-622158-temp0 \
  -o ts=password \
  /mnt
[+] initializing zdbfs v0.1.11
[+] blocks cache size: 4096 KB
[+] virtual filesystem size: 10.0 GB
[-] zdb: select: zdbfs-meta: Namespace not found

It works as expected in v0.1.10, so I guess this has to do with the supported added for specifying the host, port, and socket universally.

@scottyeager
Copy link
Author

I see the issue now. To facilitate the global options, the code that sets defaults was moved to after the call to the parsing function. While this is needed for options that have a global, and will be handled properly, for the other options it means the default is always used.

This was referenced Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant