Sys::F...m::Unix(3pm)
π Sys::Filesystem::Unix π
okay so bestie, welcome to Sys::Filesystem::Unix(3pm) β the little Perl module that goes out and gets you the generic Unix filesystem tea and hands it right over to Sys::Filesystem. it's giving backstage-pass-to-your-own-hard-drive energy, and honestly? we're obsessed. π¦
β¨ NAME β¨
Sys::Filesystem::Unix β returns generic Unix filesystem information to Sys::Filesystem. that's it, that's the whole job, and she does it flawlessly. periodt. π
πΈ SYNOPSIS πΈ
like, go look at Sys::Filesystem. that's where the party's at. π
See Sys::Filesystem.
π INHERITANCE π
the family tree, lowkey:
Sys::Filesystem::Unix
ISA UNIVERSAL
so yeah, she's a UNIVERSAL girlie. iconic behaviour, no cap. π
β METHODS β
π version()
returns the version of the (sub)module. short, sweet, main character energy. β¨
π readFsTab
this method provides the capability to parse a standard unix fstab file. she read the fstab so you don't have to. π«Ά
she expects following arguments:
fstabPathβ full qualified path to the fstab file to read. like, the whole path, bestie, don't be vague. πfstabKeysβ the column names for the fstab file through an array reference.special_fsβ hash reference containing the names of all special file systems having a true value as key.
this method returns true in case the specified file could be opened for reading, false otherwise. so like, true = slay, false = π.
π§ readMntTab
this method provides the capability to read abd parse a standard unix mount-tab file. the file is locked using flock after opening it. π yes she's locked in, literally and figuratively.
it expects following arguments:
mnttabPathβ full qualified path to the mnttab file to read.mnttabKeysβ the column names for the mnttab file through an array reference.$special_fsβ hash reference containing the names of all special file systems having a true value as key. (yes, with the sigil this time. she's fancy. π )
this method returns true in case the specified file could be opened for reading and locked, false otherwise.
π₯ readMounts
this method is called to parse the information got from "mount" system command. she's reading the receipts from mount herself. it expects following arguments:
mount_rxβ regular expression to extract the information from each mount line.pridxβ array reference containing the index for primary keys of interest in match in following order:device,mount_point,type.keysβ array reference of the columns of the match β in order of paranteses in regular expression.specialβ array reference containing the names of the special file system types.linesβ array containing the lines to parse.
π readSwap
this method is called to parse the information from the swap status. it expects following arguments:
swap_rxβ regular expression to extract the information from each swap status line. this regular expression should have exact one pair of parantheses to identify the swap device. β οΈ like, exactly one pair, bestie β not two, not zero. one. don't test her.linesβ array containing the lines to parse.
π AUTHOR π
- Nicola Worthington
<nicolaw@cpan.org>β<http://perlgirl.org.uk> - Jens Rehsack
<rehsack@cpan.org>β<http://www.rehsack.de/>
two absolute legends, fr fr. π
π COPYRIGHT π
Copyright 2004,2005,2006 Nicola Worthington.
Copyright 2008-2020 Jens Rehsack.
This software is licensed under The Apache Software License, Version 2.0.
<http://www.apache.org/licenses/LICENSE-2.0>
legal stuff bestie, we don't make the rules, we just cite them. πβ¨
and that's the whole page!! this was perl v5.30.3, dated 2020-10-24, and she lives in the Sys::F...m::Unix(3pm) section of the manual. go read your filesystems, babe, you got this. ππ¦π
π¦ where this page comes from
- debian bookworm: libsys-filesystem-perl 1.408-1 Β· Apache-2.0
- debian trixie: libsys-filesystem-perl 1.408-1 Β· Apache-2.0
- ubuntu jammy: libsys-filesystem-perl 1.408-1 Β· Apache-2.0
- ubuntu noble: libsys-filesystem-perl 1.408-1 Β· Apache-2.0
- ubuntu resolute: libsys-filesystem-perl 1.408-1 Β· Apache-2.0
- ubuntu stonking: libsys-filesystem-perl 1.408-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms