Menu

#78 ZFS mountpoints detected as remote under FreeBSD

librfm
open
nobody
None
5
2016-08-12
2016-08-05
No

Under FreeBSD, librfm detects any ZFS mountpoint as remote except for the file system root. Since the default ZFS layout used by FreeBSD splits the directory tree into multiple dataset, this results in a many files that are reported as remote even though they are not.

The problem seem to be in get_mnt_type, in the file primary-entry.c. The test used to determine is_local first checks if the mount point is an absolute path and then checks whether it is an existing file. While this works fine for regular block devices, ZFS datasets have a mount point of the form [zpool_name]/[dataset_mountpoint_property]. So, something that looks like this: zroot/usr/home for the default mountpoint of /usr/home.

I have searched for ways to reliably detect ZFS mountpoints under FreeBSD, but there doesn't seem to be a simple programmatical way to do it. Checking whether zfs list <mountpoint_name> returns an error is the only way I could find to go about it.

I hope you manage to find a satisfactory fix for this issue. Please, let me know if you need any additional information. Thank you for the time you have spent building Rodent applications, they make for a really great set of tools.

Best regards,
Julien Picalausa

Discussion

  • Edscott Wilson Garcia

    Thank you for your comments and observations. Just a little more information required. What version of Rodent are you using? What GTK+ version are you compiling with? Current code will only be supported up to gtk+-3.18. A new version is now under construction where the minimum requirement will be gtk+-3.20.

    kind regards

    Edscott

     
  • Julien Picalausa

    Hi.

    I am running rodent version 5.3.16.3 compiled with gtk2-2.24.29

    Best regards,
    Julien Picalausa

     

Log in to post a comment.

MongoDB Logo MongoDB