Skip to content

Instantly share code, notes, and snippets.

View mbarczak's full-sized avatar

Maciej Barczak mbarczak

View GitHub Profile
@mbarczak
mbarczak / zfs_introspect_file.md
Created February 11, 2017 23:55 — forked from CMCDragonkai/zfs_introspect_file.md
ZFS: Introspect a File (Acquiring Creation Time... etc)

Introspecting a file on ZFS

Derived from: http://www.c0t0d0s0.org/archives/7485-Find-out-in-depth-information-about-a-file-in-ZFS.html

Sometimes you need to acquire in-depth information about a file that isn't exposed by other commands like stat.

ZFS allows you to do this with zdb. However there's a confusing problem. If you're just trying to access a file on your root pool that doesn't have any nested datasets, you need use rpool/ instead of just rpool (assuming "rpool" is the name of your root pool).

Here's 3 examples of acquiring information on /filepath.

@mbarczak
mbarczak / 0_reuse_code.js
Last active August 29, 2015 14:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console