Page MenuHomeFreeBSD

Add mountpoint(1)
Needs ReviewPublic

Authored by sobomax on Tue, Sep 22, 3:33 PM.
Tags
None
Referenced Files
F173179320: D59906.diff
Thu, Sep 24, 3:31 AM
Unknown Object (File)
Wed, Sep 23, 2:31 AM
Unknown Object (File)
Wed, Sep 23, 1:54 AM
Unknown Object (File)
Wed, Sep 23, 1:47 AM
Unknown Object (File)
Wed, Sep 23, 1:36 AM
Unknown Object (File)
Wed, Sep 23, 12:39 AM
Unknown Object (File)
Tue, Sep 22, 10:07 PM
Subscribers

Details

Reviewers
None
Group Reviewers
Contributor Reviews (src)
Summary

Add mountpoint(1) a simple utility to figure out if the directory pointed to by the argument is a mount point.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

This cannot work for deep enough hierarchies. Also I am not sure that it works after chroot or jailing, or rather it should not.

I propose the following D59910. It should allow you to get the info directly from source, with single stat(2).

usr.bin/mountpoint/mountpoint.c
46

nullfs supports file and socket mounts over files

In D59906#1374853, @kib wrote:

This cannot work for deep enough hierarchies. Also I am not sure that it works after chroot or jailing, or rather it should not.

I propose the following D59910. It should allow you to get the info directly from source, with single stat(2).

And then might be mountpoint(1) should become a hardlink to stat(1).