a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Libraries:
 hdwrench.library
  FindControllerID
  FindDefaults
  FindDiskName
  FindLastSector
  HDWCloseDevice
  HDWOpenDevice
  InMemMountfile
  InMemRDBStructs
  LowlevelFormat
  OutMemMountfile
  OutMemRDBStructs
  QueryCapacity
  QueryFindValid
  QueryInquiry
  QueryModeSense
  QueryReady
  RawRead
  RawWrite
  ReadMountfile
  ReadRDBStructs
  ReadRDBs
  VerifyDrive
  WriteBlock
  WriteMountfile
  WriteRDBStructs
  WriteRDBs
  ZZexample
  description
Include
GuruMeditation
Docs » Autodocs » hdwrench.library » WriteMountfile

NAME

    WriteMountfile()

SYNOPSIS

    error = WriteMountfile ( char *filename, char *ldir, LONG flags, ULONG unit )
d0 A0 A1 D0 D1

FUNCTION

    Write a "C:Mount" compatible mountfile to the indicated file. Check for
files matching any DriveInit or FileSystem LSEGs within the RDBs and use
them for the mountfile generated. If ldir is not NULL these LSEGs are
stored to appropriate files on disk if no matching file already exists.
nb. If the ldir value of "Sys:" exists files are saved to l: (filesystems)
and devs: (devinit files.) If the ldir value "nil:" is given no files are
saved. If ldir is NULL the function call fails.

INPUTS

    filename    Pointer to C string containing filename
ldir Pointer to C string containing the directory for storing LSEGs.
unit Unit number for the write. Must correspond with the opened
device unit number.

RESULT

    error      ULONG containing the error from the E_* codes in hdwrench.h.
If successful the internal RDB structures are filled according
to the data within the mountfile.

NOTES

    Note that no consistency checks are performed. What you send is to this
entry is what you get, data errors and all.

BUGS

SEE ALSO

hdwrench.library/InMemMountfile(), hdwrench.library/OutMemMountfile(), hdwrench.library/ReadMountFile, hdwrench.library/InMemRDBStructs(), hdwrench.library/ReadRDBStructs(), hdwrench.library/OutMemRDBStructs(), hdwrench.library/WriteRDBStructs(), hdwrench.library/ReadRDBs(), hdwrench.library/WriteRDBs()

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

The Black Lotus

ANA
TBL
SNT
RSI

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se