2003-08-09 16:32:26 +00:00
|
|
|
/*
|
|
|
|
* ReactOS kernel
|
|
|
|
* Copyright (C) 2003 ReactOS Team
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
2009-10-27 10:34:16 +00:00
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2003-08-09 16:32:26 +00:00
|
|
|
*/
|
2006-11-10 21:00:24 +00:00
|
|
|
/* COPYRIGHT: See COPYING in the top level directory
|
2003-08-09 16:32:26 +00:00
|
|
|
* PROJECT: ReactOS text-mode setup
|
2015-09-13 16:40:36 +00:00
|
|
|
* FILE: base/setup/usetup/fslist.h
|
2003-08-09 16:32:26 +00:00
|
|
|
* PURPOSE: Filesystem list functions
|
|
|
|
* PROGRAMMER: Eric Kohl
|
|
|
|
* Casper S. Hornstrup (chorns@users.sourceforge.net)
|
|
|
|
*/
|
|
|
|
|
2010-02-26 11:43:19 +00:00
|
|
|
#pragma once
|
2003-08-09 16:32:26 +00:00
|
|
|
|
2006-11-10 21:00:24 +00:00
|
|
|
#include <fmifs/fmifs.h>
|
|
|
|
|
2006-09-07 22:42:28 +00:00
|
|
|
typedef struct _FILE_SYSTEM_ITEM
|
2003-08-09 16:32:26 +00:00
|
|
|
{
|
2014-05-12 14:17:37 +00:00
|
|
|
LIST_ENTRY ListEntry;
|
2015-06-12 21:51:57 +00:00
|
|
|
LPCWSTR FileSystemName; /* Not owned by the item */
|
2014-05-12 14:17:37 +00:00
|
|
|
FORMATEX FormatFunc;
|
|
|
|
CHKDSKEX ChkdskFunc;
|
|
|
|
BOOLEAN QuickFormat;
|
2006-09-07 22:42:28 +00:00
|
|
|
} FILE_SYSTEM_ITEM, *PFILE_SYSTEM_ITEM;
|
2003-08-09 16:32:26 +00:00
|
|
|
|
|
|
|
typedef struct _FILE_SYSTEM_LIST
|
|
|
|
{
|
2014-05-12 14:17:37 +00:00
|
|
|
SHORT Left;
|
|
|
|
SHORT Top;
|
|
|
|
PFILE_SYSTEM_ITEM Selected;
|
|
|
|
LIST_ENTRY ListHead; /* List of FILE_SYSTEM_ITEM */
|
2003-08-09 16:32:26 +00:00
|
|
|
} FILE_SYSTEM_LIST, *PFILE_SYSTEM_LIST;
|
|
|
|
|
2006-11-10 21:00:24 +00:00
|
|
|
VOID
|
|
|
|
FS_AddProvider(
|
2014-05-12 14:17:37 +00:00
|
|
|
IN OUT PFILE_SYSTEM_LIST List,
|
2015-06-12 21:51:57 +00:00
|
|
|
IN LPCWSTR FileSystemName,
|
2014-05-12 14:17:37 +00:00
|
|
|
IN FORMATEX FormatFunc,
|
|
|
|
IN CHKDSKEX ChkdskFunc);
|
2003-08-09 16:32:26 +00:00
|
|
|
|
2016-02-28 16:01:54 +00:00
|
|
|
PFILE_SYSTEM_ITEM
|
|
|
|
GetFileSystemByName(
|
|
|
|
IN PFILE_SYSTEM_LIST List,
|
|
|
|
IN LPWSTR FileSystemName);
|
|
|
|
|
[USETUP]
- bootsup.c/.h, usetup.c: Save the old MBR sector in the system partition (this makes easier to restore the old one).
- fslist.c/.h, usetup.h: Fix header inclusion order.
- partlist.c/.h, usetup.c: On BIOS-PC architectures, the system partition can be formatted in any FS as long as it is the active partition (on the contrary, on architectures where such system partition is required, it is formatted in FAT). We currently do not have write support for all FSes out there (apart for FAT until now), so do a "clever" "trick" to work around this problem: on initialized disks, find the active partition and check its FS. If we support write access to this FS then we're OK, otherwise we change the (active) system partition for the one on which we are going to install ReactOS (which is, by construction, formatted with a FS on which we support write access).
The MBR (resp. the VBR) of the disk (resp. of the system partition) are always saved into files, making easy for people to boot on them (using FreeLdr) or restoring them.
CORE-10898
svn path=/trunk/; revision=70837
2016-03-01 15:00:56 +00:00
|
|
|
struct _PARTENTRY; // Defined in partlist.h
|
2016-02-28 16:01:54 +00:00
|
|
|
PFILE_SYSTEM_ITEM
|
|
|
|
GetFileSystem(
|
|
|
|
IN PFILE_SYSTEM_LIST FileSystemList,
|
[USETUP]
- bootsup.c/.h, usetup.c: Save the old MBR sector in the system partition (this makes easier to restore the old one).
- fslist.c/.h, usetup.h: Fix header inclusion order.
- partlist.c/.h, usetup.c: On BIOS-PC architectures, the system partition can be formatted in any FS as long as it is the active partition (on the contrary, on architectures where such system partition is required, it is formatted in FAT). We currently do not have write support for all FSes out there (apart for FAT until now), so do a "clever" "trick" to work around this problem: on initialized disks, find the active partition and check its FS. If we support write access to this FS then we're OK, otherwise we change the (active) system partition for the one on which we are going to install ReactOS (which is, by construction, formatted with a FS on which we support write access).
The MBR (resp. the VBR) of the disk (resp. of the system partition) are always saved into files, making easy for people to boot on them (using FreeLdr) or restoring them.
CORE-10898
svn path=/trunk/; revision=70837
2016-03-01 15:00:56 +00:00
|
|
|
IN struct _PARTENTRY* PartEntry);
|
2016-02-28 16:01:54 +00:00
|
|
|
|
2003-08-09 16:32:26 +00:00
|
|
|
PFILE_SYSTEM_LIST
|
2006-09-07 20:15:45 +00:00
|
|
|
CreateFileSystemList(
|
2014-05-12 14:17:37 +00:00
|
|
|
IN SHORT Left,
|
|
|
|
IN SHORT Top,
|
|
|
|
IN BOOLEAN ForceFormat,
|
2015-01-04 13:53:45 +00:00
|
|
|
IN LPCWSTR ForceFileSystem);
|
2003-08-09 16:32:26 +00:00
|
|
|
|
|
|
|
VOID
|
2006-09-07 20:15:45 +00:00
|
|
|
DestroyFileSystemList(
|
|
|
|
IN PFILE_SYSTEM_LIST List);
|
2003-08-09 16:32:26 +00:00
|
|
|
|
|
|
|
VOID
|
2006-09-07 20:15:45 +00:00
|
|
|
DrawFileSystemList(
|
|
|
|
IN PFILE_SYSTEM_LIST List);
|
2003-08-09 16:32:26 +00:00
|
|
|
|
|
|
|
VOID
|
2006-09-07 20:15:45 +00:00
|
|
|
ScrollDownFileSystemList(
|
|
|
|
IN PFILE_SYSTEM_LIST List);
|
2003-08-09 16:32:26 +00:00
|
|
|
|
|
|
|
VOID
|
2006-09-07 20:15:45 +00:00
|
|
|
ScrollUpFileSystemList(
|
|
|
|
IN PFILE_SYSTEM_LIST List);
|
2003-08-09 16:32:26 +00:00
|
|
|
|
|
|
|
/* EOF */
|