.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /** |
---|
2 | 3 | * ldm - Part of the Linux-NTFS project. |
---|
3 | 4 | * |
---|
.. | .. |
---|
6 | 7 | * Copyright (C) 2001,2002 Jakob Kemi <jakob.kemi@telia.com> |
---|
7 | 8 | * |
---|
8 | 9 | * Documentation is available at http://www.linux-ntfs.org/doku.php?id=downloads |
---|
9 | | - * |
---|
10 | | - * This program is free software; you can redistribute it and/or modify it |
---|
11 | | - * under the terms of the GNU General Public License as published by the Free |
---|
12 | | - * Software Foundation; either version 2 of the License, or (at your option) |
---|
13 | | - * any later version. |
---|
14 | | - * |
---|
15 | | - * This program is distributed in the hope that it will be useful, |
---|
16 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
17 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
18 | | - * GNU General Public License for more details. |
---|
19 | | - * |
---|
20 | | - * You should have received a copy of the GNU General Public License |
---|
21 | | - * along with this program (in the main directory of the Linux-NTFS source |
---|
22 | | - * in the file COPYING); if not, write to the Free Software Foundation, |
---|
23 | | - * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
---|
24 | 10 | */ |
---|
25 | 11 | |
---|
26 | 12 | #ifndef _FS_PT_LDM_H_ |
---|
.. | .. |
---|
98 | 84 | #define TOC_BITMAP1 "config" /* Names of the two defined */ |
---|
99 | 85 | #define TOC_BITMAP2 "log" /* bitmaps in the TOCBLOCK. */ |
---|
100 | 86 | |
---|
101 | | -/* Borrowed from msdos.c */ |
---|
102 | | -#define SYS_IND(p) (get_unaligned(&(p)->sys_ind)) |
---|
103 | | - |
---|
104 | 87 | struct frag { /* VBLK Fragment handling */ |
---|
105 | 88 | struct list_head list; |
---|
106 | 89 | u32 group; |
---|
107 | 90 | u8 num; /* Total number of records */ |
---|
108 | 91 | u8 rec; /* This is record number n */ |
---|
109 | 92 | u8 map; /* Which portions are in use */ |
---|
110 | | - u8 data[0]; |
---|
| 93 | + u8 data[]; |
---|
111 | 94 | }; |
---|
112 | 95 | |
---|
113 | 96 | /* In memory LDM database structures. */ |
---|
.. | .. |
---|
206 | 189 | struct list_head v_comp; |
---|
207 | 190 | struct list_head v_part; |
---|
208 | 191 | }; |
---|
209 | | - |
---|
210 | | -int ldm_partition(struct parsed_partitions *state); |
---|
211 | 192 | |
---|
212 | 193 | #endif /* _FS_PT_LDM_H_ */ |
---|
213 | 194 | |
---|