Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
d974264c
Commit
d974264c
authored
27 years ago
by
Henrik (Grubba) Grubbström
Browse files
Options
Downloads
Patches
Plain Diff
First version
Rev: src/modules/files/doc/filesystem_stat:1.1
parent
d7873ab0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/modules/files/doc/filesystem_stat
+41
-0
41 additions, 0 deletions
src/modules/files/doc/filesystem_stat
with
41 additions
and
0 deletions
src/modules/files/doc/filesystem_stat
0 → 100644
+
41
−
0
View file @
d974264c
NAME
filesystem_stat - stat a filesystem
SYNTAX
mapping(string:atring|int) filesystem_stat(string file);
DESCRIPTION
filesystem_stat returns a mapping describing some properties
about the filesystem.
Currently nine fields of the mapping are defined:
([
"blocksize":int, /* filesystem block size */
"blocks":int, /* total # of blocks on file system
* in units of blocksize */
"bfree":int, /* total # of free blocks */
"bavail":int, /* total # of free blocks
* available to non-super-user */
"files":int, /* total # of files */
"ffree":int, /* total # of free files */
"favail":int, /* total # of free files
* available to non-super-user */
"fstype":string /* target fs type name */
"fsname":string /* target fs name */
})
If there is no such file or directory, zero is returned.
NOTA BENE
This function does not exist on all Operating Systems.
Depending on Operating System some of the above values may not
be returned.
KEYWORDS
file
SEE ALSO
files/file_stat
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment