Linux Kernel
3.7.1
|
#include <linux/slab.h>
#include <linux/pagemap.h>
#include <linux/stringify.h>
#include <linux/kernel.h>
#include "ldm.h"
#include "check.h"
#include "msdos.h"
Go to the source code of this file.
Macros | |
#define | ldm_debug(...) do {} while (0) |
#define | ldm_crit(f, a...) _ldm_printk (KERN_CRIT, __func__, f, ##a) |
#define | ldm_error(f, a...) _ldm_printk (KERN_ERR, __func__, f, ##a) |
#define | ldm_info(f, a...) _ldm_printk (KERN_INFO, __func__, f, ##a) |
Functions | |
int | ldm_partition (struct parsed_partitions *state) |
#define ldm_debug | ( | ... | ) | do {} while (0) |
ldm - Support for Windows Logical Disk Manager (Dynamic Disks)
Copyright (C) 2001,2002 Richard Russon ldm@f Copyright (c) 2001-2012 Anton Altaparmakov Copyright (C) 2001,2002 Jakob Kemi latc ap.or gjakob .kem i@tel ia.c om
Documentation is available at http://www.linux-ntfs.org/doku.php?id=downloads
This program 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 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 source in the file COPYING); if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ldm_debug/info/error/crit - Output an error message : A printf format string containing the message ..: Variables to substitute into
ldm_debug() writes a DEBUG level message to the syslog but only if the driver was compiled with debug enabled. Otherwise, the call turns into a NOP.
int ldm_partition | ( | struct parsed_partitions * | state | ) |
ldm_partition - Find out whether a device is a dynamic disk and handle it : Partition check state including device holding the LDM Database
This determines whether the device is a dynamic disk and if so creates the partitions necessary in the gendisk structure pointed to by .
We create a dummy device 1, which contains the LDM database, and then create each partition described by the LDM database in sequence as devices 2+. For example, if the device is hda, we would have: hda1: LDM database, hda2, hda3, and so on: the actual data containing partitions.
Return: 1 Success, ->bdev is a dynamic disk and we handled it 0 Success, ->bdev is not a dynamic disk -1 An error occurred before enough information had been read Or ->bdev is a dynamic disk, but it may be corrupted