]> git.apps.os.sepia.ceph.com Git - fscrypt.git/commit
filesystem: creating the directories and files
authorJoe Richey joerichey@google.com <joerichey@google.com>
Wed, 24 May 2017 01:45:58 +0000 (18:45 -0700)
committerJoe Richey joerichey@google.com <joerichey@google.com>
Wed, 31 May 2017 19:40:13 +0000 (12:40 -0700)
commitf4f4f606718497a2f660cdb737b812e035f55311
treeb07b963d9b623467986842fa54db9d84470275d5
parentbc66b8a56ee7ae4f703cf30502aff8b7d68953d0
filesystem: creating the directories and files

This commit adds in the filesystem subpackage. The goal of this package
is to provide and interface for adding to and removing from the metadata
storage for a given filesystem. This is primarily done in filesystem.go.
To facilitate this functionality, mountpoint.go exposes an interface for
querying the system about the current mounted filesystems and their
information. Note that this operation is done with a lazy loading
mechanism.

To refer to other filesystems, we use link files that can be parsed by
libblkid. The README is also updated to account for this new dependancy.

This package uses the FSError type under the hood so that error messages
will include the filesystem name, but callers can still check for
specific error instances.

Change-Id: I74fe4e84b8e3a5b73f1337c35307ffe0bf7cdea9
filesystem/filesystem.go [new file with mode: 0644]
filesystem/filesystem_test.go [new file with mode: 0644]
filesystem/mountpoint.go [new file with mode: 0644]
filesystem/mountpoint_test.go [new file with mode: 0644]
filesystem/path.go [new file with mode: 0644]