Server IP : 15.235.198.142 / Your IP : 216.73.216.190 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/landscape/lib/__pycache__/ |
Upload File : |
� �~�e` � �| � d dl Z d dlZd dlZd dlmZ eg d�� Z ej d� Zefd�Z d� Z d� Zd� Zy) � N)�_PY3)�ext�ext2�ext3�ext4�reiserfs�ntfs�msdos�dos�vfat�xfs�hpfs�jfs�ufs�hfs�hfsplus�simfs�drvfs�lxfs�zfs�btrfsz([a-z]+)[0-9]*c # � K � t | � D ]� } |j � dd \ }}}t rt j |d� }nt j |d� }|�||vr�Ud} ||� }|j } |j | z |z } |j | z |z }|||| |d��� �� y# t $ r Y ��w xY w# t $ r Y ��w xY w�w)aZ This is a generator that yields information about mounted filesystems. @param mounts_file: A file with information about mounted filesystems, such as C{/proc/mounts}. @param statvfs_: A function to get file status information. @param filesystems_whitelist: Optionally, a list of which filesystems to stat. @return: A C{dict} with C{device}, C{mount-point}, C{filesystem}, C{total-space} and C{free-space} keys. If the filesystem information is not available, C{None} is returned. Both C{total-space} and C{free-space} are in megabytes. N� �unicode_escape� string_escapei )�device�mount-point� filesystemztotal-spacez free-space) �open�splitr �codecs�decode� ValueError�OSError�f_bsize�f_blocks�f_bfree)�mounts_file�statvfs_�filesystems_whitelist�liner �mount_pointr � megabytes�stats� block_size�total_space� free_spaces �4/usr/lib/python3/dist-packages/landscape/lib/disk.py�get_mount_infor3 &