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

bd_lvm_vgdata_free conflicts with the "free" attribute of BDLVMVGdata in Python

Đang mở
#1,067 0 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ó
4/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
18/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
c, python
Lĩnh vực
api

Hướng nghiên cứu

The clash is between the bd_lvm_vgdata_free C function, which Python exposes as the .free() method, and the free member of the BDLVMVGdata struct, which becomes the free attribute of BlockDev.LVMVGdata. Start by checking how the introspected Python bindings name these two symbols and whether the C API or the struct field should change. The issue defers the fix to libblockdev 4.0, and no maintainer decision is recorded, so a newcomer should first ask for the intended naming before editing anything.

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

Mô tả

In Python bindings the bd_lvm_vgdata_free function gets translated to .free() method of the BlockDev.LVMVGdata object which also has the free (as in free space) attribute so the free function is not available. Not sure if we can do something about this without changing the free member of BDLVMVGdata so this is probably something to be fixed in libblockdev 4.0 :-)

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.