Linux Kernel
3.7.1
|
#include <linux/fs.h>
#include <linux/buffer_head.h>
#include <linux/blkdev.h>
#include <linux/vmalloc.h>
#include <linux/slab.h>
#include "attrib.h"
#include "inode.h"
#include "debug.h"
#include "ntfs.h"
Go to the source code of this file.
Enumerations | |
enum | ntfs_compression_constants { NTFS_SYMBOL_TOKEN = 0, NTFS_PHRASE_TOKEN = 1, NTFS_TOKEN_MASK = 1, NTFS_SB_SIZE_MASK = 0x0fff, NTFS_SB_SIZE = 0x1000, NTFS_SB_IS_COMPRESSED = 0x8000, NTFS_MAX_CB_SIZE = 64 * 1024 } |
Functions | |
int | allocate_compression_buffers (void) |
void | free_compression_buffers (void) |
int | ntfs_read_compressed_block (struct page *page) |
compress.c - NTFS kernel compressed attributes handling. Part of the Linux-NTFS project.
Copyright (c) 2001-2004 Anton Altaparmakov Copyright (c) 2002 Richard Russon
This program/include file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program/include file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program (in the main directory of the Linux-NTFS distribution in the file COPYING); if not, write to the Free Software Foundation,Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ntfs_compression_constants - enum of constants used in the compression code
NTFS_SYMBOL_TOKEN | |
NTFS_PHRASE_TOKEN | |
NTFS_TOKEN_MASK | |
NTFS_SB_SIZE_MASK | |
NTFS_SB_SIZE | |
NTFS_SB_IS_COMPRESSED | |
NTFS_MAX_CB_SIZE |
Definition at line 38 of file compress.c.
allocate_compression_buffers - allocate the decompression buffers
Caller has to hold the ntfs_lock mutex.
Return 0 on success or -ENOMEM if the allocations failed.
Definition at line 75 of file compress.c.
free_compression_buffers - free the decompression buffers
Caller has to hold the ntfs_lock mutex.
Definition at line 90 of file compress.c.
Definition at line 482 of file compress.c.