mirror of
https://github.com/eclipse-threadx/filex.git
synced 2026-09-14 20:55:36 +08:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
454d0fed31 |
@@ -207,7 +207,7 @@ ULONG last_FAT_sector;
|
|||||||
|
|
||||||
/* At this point, the head_cluster points to the cluster chain that is to be removed. */
|
/* At this point, the head_cluster points to the cluster chain that is to be removed. */
|
||||||
|
|
||||||
/* Tail cluster points to the back of the original FAT chain where the new chain is attached to.
|
/* Tail cluster points to the back of the origianal FAT chain where the new chain is attached to.
|
||||||
The remove process terminates once this cluster is encountered. */
|
The remove process terminates once this cluster is encountered. */
|
||||||
tail_cluster = _fx_utility_32_unsigned_read((UCHAR *)&FAT_chain -> fx_fault_tolerant_FAT_chain_insertion_back);
|
tail_cluster = _fx_utility_32_unsigned_read((UCHAR *)&FAT_chain -> fx_fault_tolerant_FAT_chain_insertion_back);
|
||||||
|
|
||||||
@@ -261,13 +261,9 @@ ULONG last_FAT_sector;
|
|||||||
if (_fx_utility_FAT_entry_multiple_sectors_check(media_ptr, current_cluster))
|
if (_fx_utility_FAT_entry_multiple_sectors_check(media_ptr, current_cluster))
|
||||||
{
|
{
|
||||||
if (head_cluster == next_session || next_session == FX_FREE_CLUSTER)
|
if (head_cluster == next_session || next_session == FX_FREE_CLUSTER)
|
||||||
{
|
|
||||||
/* Do not start another session if this is the end of the chain. */
|
|
||||||
if (next_cluster != tail_cluster)
|
|
||||||
{
|
{
|
||||||
next_session = next_cluster;
|
next_session = next_cluster;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -280,13 +276,9 @@ ULONG last_FAT_sector;
|
|||||||
|
|
||||||
/* Get next session. */
|
/* Get next session. */
|
||||||
if (cache_count == cache_max)
|
if (cache_count == cache_max)
|
||||||
{
|
|
||||||
/* Do not start another session if this is the end of the chain. */
|
|
||||||
if (next_cluster != tail_cluster)
|
|
||||||
{
|
{
|
||||||
next_session = next_cluster;
|
next_session = next_cluster;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/* Update head cluster and next session into log file. */
|
/* Update head cluster and next session into log file. */
|
||||||
_fx_utility_32_unsigned_write((UCHAR *)&FAT_chain -> fx_fault_tolerant_FAT_chain_next_deletion, next_session);
|
_fx_utility_32_unsigned_write((UCHAR *)&FAT_chain -> fx_fault_tolerant_FAT_chain_next_deletion, next_session);
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
target_sources(${PROJECT_NAME} PRIVATE
|
|
||||||
# {{BEGIN_TARGET_SOURCES}}
|
|
||||||
|
|
||||||
# {{END_TARGET_SOURCES}}
|
|
||||||
)
|
|
||||||
|
|
||||||
target_include_directories(${PROJECT_NAME} PUBLIC
|
|
||||||
${CMAKE_CURRENT_LIST_DIR}/inc
|
|
||||||
)
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
/***************************************************************************
|
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
|
||||||
*
|
|
||||||
* This program and the accompanying materials are made available under the
|
|
||||||
* terms of the MIT License which is available at
|
|
||||||
* https://opensource.org/licenses/MIT.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: MIT
|
|
||||||
**************************************************************************/
|
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************/
|
|
||||||
/**************************************************************************/
|
|
||||||
/** */
|
|
||||||
/** FileX Component */
|
|
||||||
/** */
|
|
||||||
/** Port Specific */
|
|
||||||
/** */
|
|
||||||
/**************************************************************************/
|
|
||||||
/**************************************************************************/
|
|
||||||
|
|
||||||
/* Include the generic version of fx_port.h. */
|
|
||||||
#include "../../../generic/inc/fx_port.h"
|
|
||||||
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
target_sources(${PROJECT_NAME} PRIVATE
|
|
||||||
# {{BEGIN_TARGET_SOURCES}}
|
|
||||||
|
|
||||||
# {{END_TARGET_SOURCES}}
|
|
||||||
)
|
|
||||||
|
|
||||||
target_include_directories(${PROJECT_NAME} PUBLIC
|
|
||||||
${CMAKE_CURRENT_LIST_DIR}/inc
|
|
||||||
)
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
/***************************************************************************
|
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
|
||||||
*
|
|
||||||
* This program and the accompanying materials are made available under the
|
|
||||||
* terms of the MIT License which is available at
|
|
||||||
* https://opensource.org/licenses/MIT.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: MIT
|
|
||||||
**************************************************************************/
|
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************/
|
|
||||||
/**************************************************************************/
|
|
||||||
/** */
|
|
||||||
/** FileX Component */
|
|
||||||
/** */
|
|
||||||
/** Port Specific */
|
|
||||||
/** */
|
|
||||||
/**************************************************************************/
|
|
||||||
/**************************************************************************/
|
|
||||||
|
|
||||||
/* Include the generic version of fx_port.h. */
|
|
||||||
#include "../../../generic/inc/fx_port.h"
|
|
||||||
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
target_sources(${PROJECT_NAME} PRIVATE
|
|
||||||
# {{BEGIN_TARGET_SOURCES}}
|
|
||||||
|
|
||||||
# {{END_TARGET_SOURCES}}
|
|
||||||
)
|
|
||||||
|
|
||||||
target_include_directories(${PROJECT_NAME} PUBLIC
|
|
||||||
${CMAKE_CURRENT_LIST_DIR}/inc
|
|
||||||
)
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
/***************************************************************************
|
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
|
||||||
*
|
|
||||||
* This program and the accompanying materials are made available under the
|
|
||||||
* terms of the MIT License which is available at
|
|
||||||
* https://opensource.org/licenses/MIT.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: MIT
|
|
||||||
**************************************************************************/
|
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************/
|
|
||||||
/**************************************************************************/
|
|
||||||
/** */
|
|
||||||
/** FileX Component */
|
|
||||||
/** */
|
|
||||||
/** Port Specific */
|
|
||||||
/** */
|
|
||||||
/**************************************************************************/
|
|
||||||
/**************************************************************************/
|
|
||||||
|
|
||||||
/* Include the generic version of fx_port.h. */
|
|
||||||
#include "../../../generic/inc/fx_port.h"
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user