diff options
| author | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2021-12-27 04:54:07 +0000 |
|---|---|---|
| committer | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2021-12-27 04:54:07 +0000 |
| commit | e2a76ca0513b26346af46165d7187f1947db118e (patch) | |
| tree | cfd71544ca7a9fd18506b917b222a3eaa745d270 /src/VBox/Runtime/common/fs/fatvfs.cpp | |
| parent | 67da249395a713722ed918c58041d46017eb2014 (diff) | |
| download | VirtualBox-svn-e2a76ca0513b26346af46165d7187f1947db118e.tar.gz | |
IPRT/fatvfs: Added RTFsFatVolFormat288.
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@93084 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src/VBox/Runtime/common/fs/fatvfs.cpp')
| -rw-r--r-- | src/VBox/Runtime/common/fs/fatvfs.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/VBox/Runtime/common/fs/fatvfs.cpp b/src/VBox/Runtime/common/fs/fatvfs.cpp index bc251c09640..8401e9c3c5c 100644 --- a/src/VBox/Runtime/common/fs/fatvfs.cpp +++ b/src/VBox/Runtime/common/fs/fatvfs.cpp @@ -6238,6 +6238,20 @@ RTDECL(int) RTFsFatVolFormat144(RTVFSFILE hVfsFile, bool fQuick) /** + * Formats a 2.88MB floppy image. + * + * @returns IPRT status code. + * @param hVfsFile The image. + */ +RTDECL(int) RTFsFatVolFormat288(RTVFSFILE hVfsFile, bool fQuick) +{ + return RTFsFatVolFormat(hVfsFile, 0 /*offVol*/, 2949120, fQuick ? RTFSFATVOL_FMT_F_QUICK : RTFSFATVOL_FMT_F_FULL, + 512 /*cbSector*/, 2 /*cSectorsPerCluster*/, RTFSFATTYPE_FAT12, 2 /*cHeads*/, 36 /*cSectors*/, + 0xf0 /*bMedia*/, 224 /*cRootDirEntries*/, 0 /*cHiddenSectors*/, NULL /*pErrInfo*/); +} + + +/** * @interface_method_impl{RTVFSCHAINELEMENTREG,pfnValidate} */ static DECLCALLBACK(int) rtVfsChainFatVol_Validate(PCRTVFSCHAINELEMENTREG pProviderReg, PRTVFSCHAINSPEC pSpec, |
