aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorplougher <plougher>2008-10-11 10:32:05 +0000
committerMohamad Ayyash <mkayyash@google.com>2015-02-23 12:34:05 -0800
commita60610a9e9d656f73c09ed3679ec8f3c0ef3a31f (patch)
treeb6e396499b0a2ce3fdc9f39686ffcabaf51fa0fc /kernel
parent4ceab5157ba306b0fe767d646dd13ab7848b07d0 (diff)
downloadsquashfs-tools-a60610a9e9d656f73c09ed3679ec8f3c0ef3a31f.tar.gz
Add comments.
Diffstat (limited to 'kernel')
-rw-r--r--kernel/fs/squashfs/id.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/kernel/fs/squashfs/id.c b/kernel/fs/squashfs/id.c
index 252cc52..9107c14 100644
--- a/kernel/fs/squashfs/id.c
+++ b/kernel/fs/squashfs/id.c
@@ -21,6 +21,16 @@
* id.c
*/
+/*
+ * This file implements code to handle uids and gids.
+ *
+ * For space efficiency regular files store uid and gid indexes, which are
+ * converted to 32-bit uids/gids using an id look up table. This table is
+ * stored compressed into metadata blocks. A second index table is used to
+ * locate these. This index table for speed of access (and because it is
+ * small) is read at mount time and cached in memory.
+ */
+
#include <linux/fs.h>
#include <linux/vfs.h>
#include <linux/slab.h>