-
-
Notifications
You must be signed in to change notification settings - Fork 236
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
Conversation
f087927
to
94bd314
Compare
94bd314
to
24a89a5
Compare
There was a problem hiding this 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
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. |
There was a problem hiding this 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 👍
I do not have a linux box to test on right now. Someone please test.