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

bcachefs set-fs-option: invalid option -- '-' #351

Open
khumarahn opened this issue Nov 16, 2024 · 1 comment
Open

bcachefs set-fs-option: invalid option -- '-' #351

khumarahn opened this issue Nov 16, 2024 · 1 comment

Comments

@khumarahn
Copy link

# bcachefs version
1.12.0

(this is suspicious because I have bcachefs 1.13.0 installed from bcachefs-tools-1.13.0.tar.zst)

# bcachefs set-fs-option -h
bcachefs set-fs-option 
Usage: bcachefs set-fs-option [OPTION].. device

Options:

      --errors=(continue|fix_safe|panic|ro)
                              Action to take on filesystem error
      --metadata_replicas=#   Number of metadata replicas
      --data_replicas=#       Number of data replicas
      --metadata_replicas_required=#
      ...
      --nocow_enabled         Enable nocow mode: enables runtime locking in
                              data move path needed if nocow will ever be in use
      ...
# bcachefs set-fs-option --nocow-enabled /dev/sda1 
bcachefs: invalid option -- '-'
bcachefs: invalid option -- 'n'
bcachefs: invalid option -- 'o'
bcachefs: invalid option -- 'c'
bcachefs: invalid option -- 'o'
bcachefs: invalid option -- 'w'
bcachefs: invalid option -- '-'
bcachefs: invalid option -- 'e'
bcachefs: invalid option -- 'n'
bcachefs: invalid option -- 'a'
bcachefs: invalid option -- 'b'
bcachefs: invalid option -- 'l'
bcachefs: invalid option -- 'e'
bcachefs: invalid option -- 'd'
@khumarahn
Copy link
Author

khumarahn commented Nov 16, 2024

Also, the manpage disagrees with bcachefs -h. For example, man has the bcachefs setattr command but

# bcachefs setattr -h
Unknown command setattr

UPD: Ah, I found this discussed and fixed #350

@khumarahn khumarahn changed the title bcachefs: invalid option -- '-' bcachefs set-fs-option: invalid option -- '-' Nov 16, 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

No branches or pull requests

1 participant