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

fix(fs): Major and minor device on MacOS #399

Merged
merged 3 commits into from
Sep 23, 2023

Conversation

cfxegbert
Copy link
Contributor

I do not have a linux box to test on right now. Someone please test.

Copy link
Member

@cafkafk cafkafk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not have a linux box to test on right now. Someone please test.

Output of cargo run --release -- -l /dev/ > changes.txt; exa -l /dev/ > old.txt; diff changes.txt old.txt;

8c8
< lrwxrwxrwx     141T root 14 Sep 06:58 core -> /proc/kcore
---
> lrwxrwxrwx       11 root 14 Sep 06:58 core -> /proc/kcore
16c16
< lrwxrwxrwx        - root 14 Sep 06:58 fd -> /proc/self/fd
---
> lrwxrwxrwx       13 root 14 Sep 06:58 fd -> /proc/self/fd
37c37
< lrwxrwxrwx        0 root 14 Sep 06:58 log -> /run/systemd/journal/dev-log
---
> lrwxrwxrwx       28 root 14 Sep 06:58 log -> /run/systemd/journal/dev-log
66,67c66,67
< lrwxrwxrwx      8,1 root 14 Sep 06:58 root -> sda1
< lrwxrwxrwx    253,0 root 14 Sep 06:58 rtc -> rtc0
---
> lrwxrwxrwx        4 root 14 Sep 06:58 root -> sda1
> lrwxrwxrwx        4 root 14 Sep 06:58 rtc -> rtc0
90,92c90,92
< lrwxrwxrwx    136,4 root 14 Sep 06:58 stderr -> /proc/self/fd/2
< lrwxrwxrwx    136,4 root 14 Sep 06:58 stdin -> /proc/self/fd/0
< lrwxrwxrwx        0 root 14 Sep 06:58 stdout -> /proc/self/fd/1
---
> lrwxrwxrwx       15 root 14 Sep 06:58 stderr -> /proc/self/fd/2
> lrwxrwxrwx       15 root 14 Sep 06:58 stdin -> /proc/self/fd/0
> lrwxrwxrwx       15 root 14 Sep 06:58 stdout -> /proc/self/fd/1

Also glad you're looking into this, had to give up because I didn't have a Mac #13

@cfxegbert
Copy link
Contributor Author

cfxegbert commented Sep 20, 2023

< lrwxrwxrwx      8,1 root 14 Sep 06:58 root -> sda1
---
> lrwxrwxrwx        4 root 14 Sep 06:58 root -> sda1
...
< lrwxrwxrwx    136,4 root 14 Sep 06:58 stderr -> /proc/self/fd/2
< lrwxrwxrwx    136,4 root 14 Sep 06:58 stdin -> /proc/self/fd/0
< lrwxrwxrwx        0 root 14 Sep 06:58 stdout -> /proc/self/fd/1
---
> lrwxrwxrwx       15 root 14 Sep 06:58 stderr -> /proc/self/fd/2
> lrwxrwxrwx       15 root 14 Sep 06:58 stdin -> /proc/self/fd/0
> lrwxrwxrwx       15 root 14 Sep 06:58 stdout -> /proc/self/fd/1

Why is the old one returning the major/minor of the followed linked and the new one returning the link? I think the old one is wrong.

Copy link
Member

@cafkafk cafkafk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the old one returning the major/minor of the followed linked and the new one returning the link? I think the old one is wrong.

Yea, I have to agree. LGTM 👍

@cafkafk cafkafk merged commit 7dce810 into eza-community:main Sep 23, 2023
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

3 participants