rolinh / dfc

Report file system space usage information with style
BSD 3-Clause "New" or "Revised" License
106 stars 10 forks source link

consider nfs4 a remote filesystem #7

Closed klaernie closed 8 years ago

rolinh commented 8 years ago

Hi,

Thanks for your contribution!

klaernie commented 8 years ago

no big deal - was trying to figure out a possible solution for #8 but noticed this while at it. Comparing this to systemd/systemd#3140 I have to agree with @poettering : there has to be a better way than hardcoding this and maintaining it everything a new FS pops up.

rolinh commented 8 years ago

Yeah, I wish Linux had something like the BSDs which makes it for a much simpler and reliable implementation:

int
is_remote(const struct fsmntinfo *fs)
{
        if (fs->flags & MNT_LOCAL)
                return 0;

        return 1;
}