Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

btrfs: setting a label is only supported on a mount point

Đang mở
#966 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
8/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
c
Lĩnh vực
backend

Hướng nghiên cứu

The payload names no source files, tests or entry points, so there is no obvious place to start. The reporter says the mountpoint-only behaviour is not a real problem and that changing the API would break libblockdev, so the first step is a maintainer decision on whether device-based btrfs labelling is wanted at all. Done would mean that decision is recorded on the issue, with or without a follow-up change.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

I noticed that setting a label is only supported via a mountpoint for btrfs, while in theory a label can be set on a device.

btrfs filesystem label [<device>|<mountpoint>] [<newlabel>]

Most other set_label functions seem to use the device. Which in Cockpit leads a somewhat inconsistent experience when the filesystem is not mounted. (In theory we can work around it by first mounting it temporary, set label and umount).

Changing the API over to a mountpoint would break libblockdev's API so I guess that is a not an option and this isn't a real "breaking" or high priority issue for us. (Read: no issue at all)

Ngôn ngữ chính
C
Star
137
Fork
64
Merge trung bình
1 ngày 5 giờ
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của storaged-project/libblockdev

Tất cả issue của storaged-project/libblockdev

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.