go-ceph icon indicating copy to clipboard operation
go-ceph copied to clipboard

Export cephfs/directory's list() and names() functions

Open isi-lincoln opened this issue 5 years ago • 4 comments

I've opened a PR which exports list() and names() from cephfs/directory.

https://github.com/ceph/go-ceph/pull/326

I think that they functions would be of much more use to the community as exported functions. They dont modify any private fields, and they arent used internally anywhere other than in the tests.

Thoughts/Comments?

Thank you.

isi-lincoln avatar Jul 09 '20 21:07 isi-lincoln

We'll certainly consider it. The conversation can take place in the PR.

(meta-comment) This project doesn't require you to have an issue for PRs so feel free in the future to just file the PR. There's nothing wrong with filing an issue first for a topic but if you end up filing both at (or around) the same time you should not feel obligated to do so.

phlogistonjohn avatar Jul 10 '20 14:07 phlogistonjohn

@isi-lincoln any update on this stuff? No rush, just curious. Thanks!

phlogistonjohn avatar Oct 19 '20 14:10 phlogistonjohn

I have fallen off the cliff on this. I apologize. If someone else is able to take this over that would be greatly appreciated.

isi-lincoln avatar Oct 30 '20 22:10 isi-lincoln

No worries, and thank you for the update. I think we can leave the issue open but if you don't think you'll progress on the PR you may want to close it. There's nothing stopping us from reopening it in the future or you filing a new PR.

I just checked and it appears that the Go language proposal for a fs abstraction package has been accepted and is merged in the Go source tree. I don't pay close attention to the Go development process but I suspect this means that it will be released in Go 1.16. In light of this, I suggest we wait on this issue until Go 1.16 is out and then we can update or extend our code once we can read the final documentation and write tests against the official interface types.

phlogistonjohn avatar Oct 31 '20 14:10 phlogistonjohn