mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
2004-11-20 Ralf Corsepius <ralf.corsepius@rtems.org>
* libfs/src/dosfs/dosfs.h: Add doxygen preamble. * libfs/src/dosfs/msdos.h: Remove RC_OK. * libfs/src/dosfs/msdos_format.c: Remove unnecessary casts.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2004-11-20 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
|
* libfs/src/dosfs/dosfs.h: Add doxygen preamble.
|
||||||
|
* libfs/src/dosfs/msdos.h: Remove RC_OK.
|
||||||
|
* libfs/src/dosfs/msdos_format.c: Remove unnecessary casts.
|
||||||
|
|
||||||
2004-11-20 Ralf Corsepius <ralf.corsepius@rtems.org>
|
2004-11-20 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
PR 720/filesystem:
|
PR 720/filesystem:
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
/*
|
/**
|
||||||
* dosfs.h
|
* @file rtems/dosfs.h
|
||||||
*
|
*
|
||||||
* Application interface to MSDOS filesystem.
|
* Application interface to MSDOS filesystem.
|
||||||
*
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
* Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
|
* Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
|
||||||
* Author: Eugeny S. Mints <Eugeny.Mints@oktet.ru>
|
* Author: Eugeny S. Mints <Eugeny.Mints@oktet.ru>
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -25,10 +25,6 @@ extern "C" {
|
|||||||
#include "fat.h"
|
#include "fat.h"
|
||||||
#include "fat_file.h"
|
#include "fat_file.h"
|
||||||
|
|
||||||
#ifndef RC_OK
|
|
||||||
#define RC_OK 0x00000000
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define MSDOS_NAME_NOT_FOUND_ERR 0xDD000001
|
#define MSDOS_NAME_NOT_FOUND_ERR 0xDD000001
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -868,7 +868,7 @@ int msdos_format
|
|||||||
ret_val = msdos_format_write_sec(fd,
|
ret_val = msdos_format_write_sec(fd,
|
||||||
0,
|
0,
|
||||||
fmt_params.bytes_per_sector,
|
fmt_params.bytes_per_sector,
|
||||||
(void *)tmp_sec);
|
tmp_sec);
|
||||||
}
|
}
|
||||||
if ((ret_val == 0) &&
|
if ((ret_val == 0) &&
|
||||||
(fmt_params.mbr_copy_sec != 0)) {
|
(fmt_params.mbr_copy_sec != 0)) {
|
||||||
@@ -878,7 +878,7 @@ int msdos_format
|
|||||||
ret_val = msdos_format_write_sec(fd,
|
ret_val = msdos_format_write_sec(fd,
|
||||||
fmt_params.mbr_copy_sec ,
|
fmt_params.mbr_copy_sec ,
|
||||||
fmt_params.bytes_per_sector,
|
fmt_params.bytes_per_sector,
|
||||||
(void *)tmp_sec);
|
tmp_sec);
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* for FAT32: initialize info sector on disk
|
* for FAT32: initialize info sector on disk
|
||||||
@@ -895,7 +895,7 @@ int msdos_format
|
|||||||
ret_val = msdos_format_write_sec(fd,
|
ret_val = msdos_format_write_sec(fd,
|
||||||
fmt_params.fsinfo_sec,
|
fmt_params.fsinfo_sec,
|
||||||
fmt_params.bytes_per_sector,
|
fmt_params.bytes_per_sector,
|
||||||
(void *)tmp_sec);
|
tmp_sec);
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* write FAT as all empty
|
* write FAT as all empty
|
||||||
|
|||||||
Reference in New Issue
Block a user