FAQ Database Discussion Community

Recursively copy /dev/null to file pattern

I am using a ZFS system that has reached its disk quota. As a result, the rm command no longer is available to me. However, I am able to copy /dev/null to particular files to effectively remove them. The issue is that the directory I am trying to clear out...

How to get a path from an inode on FreeBSD (ZFS and UFS)?

Windows (NtQueryObject), Linux (/proc/self/fd/x) and OS X (F_GETPATH) all have methods for retrieving the path of a currently open file descriptor. Supposedly so does FreeBSD via something like the following code: size_t len; int mib[4]={CTL_KERN, KERN_PROC, KERN_PROC_FILEDESC, getpid()}; BOOST_AFIO_ERRHOS(sysctl(mib, 4, NULL, &len, NULL, 0)); std::vector<char> buffer(len*2); BOOST_AFIO_ERRHOS(sysctl(mib, 4, buffer.data(), &len,...

Mounting GEOM_ELI Encrypted ZFS Pool as root

I have a 3 Disk RAIDz1 Pool, encrypted with AES128 in GEOM_ELI, that I have been using in FreeNAS since version 8. There have been many zpool upgrades, and over all I am very happy with ZFS. Lately however I have been growing frustrated with FreeNAS. Largely many bugs that...