DebugFS
Defined in: src/fs/debugfs.ts:14
https://www.kernel.org/doc/html/latest/filesystems/debugfs.html
Extends
Section titled “Extends”AsyncFSMethods<this> &FileSystem<this>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new DebugFS():
DebugFS
Defined in: src/fs/debugfs.ts:15
Returns
Section titled “Returns”DebugFS
Overrides
Section titled “Overrides”Sync(FileSystem).constructor
Properties
Section titled “Properties”_mountPoint?
Section titled “_mountPoint?”
protectedoptional_mountPoint?:string
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:144
Internal
The last place this file system was mounted
Inherited from
Section titled “Inherited from”Sync(FileSystem)._mountPoint
protected_uuid:`${string}-${string}-${string}-${string}-${string}`
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:150
Internal
The UUID of the file system.
Inherited from
Section titled “Inherited from”Sync(FileSystem)._uuid
attributes
Section titled “attributes”
readonlyattributes:ConstMap<FileSystemAttributes, keyofFileSystemAttributes,void|CaseFold|undefined> &Map<string,any>
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:155
FileSystemAttributes
Inherited from
Section titled “Inherited from”Sync(FileSystem).attributes
label?
Section titled “label?”
optionallabel?:string
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:139
Inherited from
Section titled “Inherited from”Sync(FileSystem).label
readonlyname:string
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:138
The name for this file system. For example, tmpfs for an in memory one
Inherited from
Section titled “Inherited from”Sync(FileSystem).name
readonlytype:number
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:133
A unique ID for this kind of file system. Currently unused internally, but could be used for partition tables or something
Inherited from
Section titled “Inherited from”Sync(FileSystem).type
Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get uuid():
`${string}-${string}-${string}-${string}-${string}`
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:151
Returns
Section titled “Returns”`${string}-${string}-${string}-${string}-${string}`
Inherited from
Section titled “Inherited from”Sync(FileSystem).uuid
Methods
Section titled “Methods”createFile()
Section titled “createFile()”
abstractcreateFile(path,options):Promise<InodeLike<number>>
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:187
Create the file at path with the given options.
Parameters
Section titled “Parameters”string
options
Section titled “options”CreationOptions
Returns
Section titled “Returns”Promise<InodeLike<number>>
Inherited from
Section titled “Inherited from”Sync(FileSystem).createFile
createFileSync()
Section titled “createFileSync()”createFileSync():
InodeLike
Defined in: src/fs/debugfs.ts:31
Create the file at path with the given options.
Returns
Section titled “Returns”InodeLike
Overrides
Section titled “Overrides”Sync(FileSystem).createFileSync
exists()
Section titled “exists()”exists(
path):Promise<boolean>
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:203
Test whether or not path exists.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<boolean>
Inherited from
Section titled “Inherited from”existsSync()
Section titled “existsSync()”existsSync(
path):boolean
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:207
Test whether or not path exists.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”Sync(FileSystem).existsSync
ioctl()
Section titled “ioctl()”ioctl(
context,command, …args):Promise<any>
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:249
Internal
Parameters
Section titled “Parameters”context
Section titled “context”IoctlContext
command
Section titled “command”number
…any[]
Returns
Section titled “Returns”Promise<any>
Inherited from
Section titled “Inherited from”Sync(FileSystem).ioctl
ioctlSync()
Section titled “ioctlSync()”ioctlSync(
context,command, …args):any
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:251
Internal
Parameters
Section titled “Parameters”context
Section titled “context”IoctlContext
command
Section titled “command”number
…any[]
Returns
Section titled “Returns”any
Inherited from
Section titled “Inherited from”Sync(FileSystem).ioctlSync
link()
Section titled “link()”
abstractlink(target,link):Promise<void>
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:208
Parameters
Section titled “Parameters”target
Section titled “target”string
string
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”Sync(FileSystem).link
linkSync()
Section titled “linkSync()”linkSync():
void
Defined in: src/fs/debugfs.ts:51
Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”Sync(FileSystem).linkSync
mkdir()
Section titled “mkdir()”
abstractmkdir(path,options):Promise<InodeLike<number>>
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:196
Parameters
Section titled “Parameters”string
options
Section titled “options”CreationOptions
Returns
Section titled “Returns”Promise<InodeLike<number>>
Inherited from
Section titled “Inherited from”Sync(FileSystem).mkdir
mkdirSync()
Section titled “mkdirSync()”mkdirSync():
InodeLike
Defined in: src/fs/debugfs.ts:43
Returns
Section titled “Returns”InodeLike
Overrides
Section titled “Overrides”Sync(FileSystem).mkdirSync
read()
Section titled “read()”
abstractread(path,buffer,start,end):Promise<void>
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:218
Reads into a buffer
Parameters
Section titled “Parameters”string
buffer
Section titled “buffer”Uint8Array
The buffer to read into. You must set the byteOffset and byteLength appropriately!
number
The offset into the file to start reading from
number
The position in the file to stop reading
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”Sync(FileSystem).read
readdir()
Section titled “readdir()”
abstractreaddir(path):Promise<string[]>
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:198
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<string[]>
Inherited from
Section titled “Inherited from”Sync(FileSystem).readdir
readdirSync()
Section titled “readdirSync()”readdirSync(
path):string[]
Defined in: src/fs/debugfs.ts:47
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string[]
Overrides
Section titled “Overrides”Sync(FileSystem).readdirSync
readSync()
Section titled “readSync()”readSync(
path,buffer,start,end):void
Defined in: src/fs/debugfs.ts:59
Reads into a buffer
Parameters
Section titled “Parameters”string
buffer
Section titled “buffer”Uint8Array
The buffer to read into. You must set the byteOffset and byteLength appropriately!
number
The offset into the file to start reading from
number
The position in the file to stop reading
Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”Sync(FileSystem).readSync
ready()
Section titled “ready()”ready():
Promise<void>
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:174
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”Sync(FileSystem).ready
readySync()
Section titled “readySync()”readySync():
void
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:175
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Sync(FileSystem).readySync
rename()
Section titled “rename()”
abstractrename(oldPath,newPath):Promise<void>
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:176
Parameters
Section titled “Parameters”oldPath
Section titled “oldPath”string
newPath
Section titled “newPath”string
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”Sync(FileSystem).rename
renameSync()
Section titled “renameSync()”renameSync(
oldPath,newPath):void
Defined in: src/fs/debugfs.ts:19
Parameters
Section titled “Parameters”oldPath
Section titled “oldPath”string
newPath
Section titled “newPath”string
Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”Sync(FileSystem).renameSync
rmdir()
Section titled “rmdir()”
abstractrmdir(path):Promise<void>
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:194
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”Sync(FileSystem).rmdir
rmdirSync()
Section titled “rmdirSync()”rmdirSync():
void
Defined in: src/fs/debugfs.ts:39
Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”Sync(FileSystem).rmdirSync
stat()
Section titled “stat()”
abstractstat(path):Promise<InodeLike<number>>
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:178
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<InodeLike<number>>
Inherited from
Section titled “Inherited from”Sync(FileSystem).stat
statSync()
Section titled “statSync()”statSync(
path):InodeLike
Defined in: src/fs/debugfs.ts:23
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”InodeLike
Overrides
Section titled “Overrides”Sync(FileSystem).statSync
streamRead()
Section titled “streamRead()”streamRead(
path,options):ReadableStream
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:242
Read a file using a stream.
Parameters
Section titled “Parameters”string
options
Section titled “options”StreamOptions
Returns
Section titled “Returns”ReadableStream
Inherited from
Section titled “Inherited from”Sync(FileSystem).streamRead
streamWrite()
Section titled “streamWrite()”streamWrite(
path,options):WritableStream
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:247
Write a file using stream.
Parameters
Section titled “Parameters”string
options
Section titled “options”StreamOptions
Returns
Section titled “Returns”WritableStream
Inherited from
Section titled “Inherited from”Sync(FileSystem).streamWrite
sync()
Section titled “sync()”
abstractsync():Promise<void>
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:210
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”Sync(FileSystem).sync
syncSync()
Section titled “syncSync()”syncSync():
void
Defined in: src/fs/debugfs.ts:55
Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”Sync(FileSystem).syncSync
toString()
Section titled “toString()”toString():
string
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:167
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”Sync(FileSystem).toString
touch()
Section titled “touch()”
abstracttouch(path,metadata):Promise<void>
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:181
Modify metadata.
Parameters
Section titled “Parameters”string
metadata
Section titled “metadata”Partial<InodeLike>
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”Sync(FileSystem).touch
touchSync()
Section titled “touchSync()”touchSync(
path,metadata):void
Defined in: src/fs/debugfs.ts:27
Modify metadata.
Parameters
Section titled “Parameters”string
metadata
Section titled “metadata”Partial<InodeLike>
Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”Sync(FileSystem).touchSync
unlink()
Section titled “unlink()”
abstractunlink(path):Promise<void>
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:192
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”Sync(FileSystem).unlink
unlinkSync()
Section titled “unlinkSync()”unlinkSync():
void
Defined in: src/fs/debugfs.ts:35
Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”Sync(FileSystem).unlinkSync
usage()
Section titled “usage()”usage():
UsageInfo
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:173
Default implementation.
Returns
Section titled “Returns”UsageInfo
Implement
Inherited from
Section titled “Inherited from”Sync(FileSystem).usage
write()
Section titled “write()”
abstractwrite(path,buffer,offset):Promise<void>
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:231
Writes a buffer to a file
Parameters
Section titled “Parameters”string
buffer
Section titled “buffer”Uint8Array
The buffer to write. You must set the byteOffset and byteLength appropriately!
offset
Section titled “offset”number
The offset in the file to start writing
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”Sync(FileSystem).write
writeSync()
Section titled “writeSync()”writeSync(
path,buffer,offset):void
Defined in: src/fs/debugfs.ts:63
Writes a buffer to a file
Parameters
Section titled “Parameters”string
buffer
Section titled “buffer”Uint8Array
The buffer to write. You must set the byteOffset and byteLength appropriately!
offset
Section titled “offset”number
The offset in the file to start writing
Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”Sync(FileSystem).writeSync