summaryrefslogtreecommitdiffstats
path: root/lib/libstand/stand.h
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2014-07-31 23:25:13 +0000
committermarcel <marcel@FreeBSD.org>2014-07-31 23:25:13 +0000
commite8c9682c95273549ee3b01c5e94150c8080dfd51 (patch)
tree1806583fbf781550fd7addb8a9784459620835f1 /lib/libstand/stand.h
parent37b25c29bfd52a1cdd190bd39514786ebc8da152 (diff)
downloadFreeBSD-src-e8c9682c95273549ee3b01c5e94150c8080dfd51.zip
FreeBSD-src-e8c9682c95273549ee3b01c5e94150c8080dfd51.tar.gz
Add pkgfs, a file system implementation for reading files out of a
compressed tarball, aka package. The file system assumes that the files are layed-out in the same order as needed to allow for the package to be streamed. As such, it does not read an entire package into memory first. Some properties of the file system: o Files that start with '+' are silently skipped. These are found in FreeBSD package files. o Files smaller than or equal to 4KB will be cached in memory and as such allow for some flexibility in accessing files out of order. o Files with the .tgz suffix are assumed to be (sub-)packages and signal the end for a directory scan. Obtained from: Juniper Networks, Inc.
Diffstat (limited to 'lib/libstand/stand.h')
-rw-r--r--lib/libstand/stand.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libstand/stand.h b/lib/libstand/stand.h
index 6c7e12d..bcd146a 100644
--- a/lib/libstand/stand.h
+++ b/lib/libstand/stand.h
@@ -124,6 +124,7 @@ extern struct fs_ops bzipfs_fsops;
extern struct fs_ops dosfs_fsops;
extern struct fs_ops ext2fs_fsops;
extern struct fs_ops splitfs_fsops;
+extern struct fs_ops pkgfs_fsops;
/* where values for lseek(2) */
#define SEEK_SET 0 /* set file offset to offset */
OpenPOWER on IntegriCloud