https://bugs.kde.org/show_bug.cgi?id=452924
--- Comment #38 from [email protected] --- (In reply to Kenneth So from comment #37) > > Matt's patch no longer works due to this MR: > https://invent.kde.org/frameworks/kcoreaddons/-/merge_requests/548 > > The MR changed kio to use util-linux's libmount instead of statfs when > available, therefore, patching statfs no longer works with recent update. > > However, in the MR, mnt_table_parse_mtab(table, nullptr) is called. When we > have a look at the util-linux's source, we can see that the > mnt_table_parse_mtab actually parses /proc/self/mountinfo. Therefore, we can > "override" the file system types by having a script that continuously > monitors /proc/self/mountinfo and outputs the modification to another file, > say /tmp/mountinfo, and uses LD_PRELOAD to force that libmount function to > use /tmp/mountinfo instead of /proc/self/mountinfo. > > Here's the gist: > https://gist.github.com/kennethso168/eed0be7824cb1438b946cc4f7679068d > > Disclosure: I'm not a kernel nor C dev, so the code in the above gist is > AI-assisted. Thanks for creating this. Wondering if anyone here has tried it? Any issues or concerns? I don't understand how it works so I'm not sure how risky it is to use considering it was partially made with AI. -- You are receiving this mail because: You are watching all bug changes.
