Mini Shell
3
{)c � @ st d dl mZ ddlmZ ddlmZ ddlmZ d dlZej d�Z
d dlZG dd � d e�Z
G d
d� de�Ze� ZdS )� )�defaultdict� )�resolve_devspec)�util)�btrfsNZblivetc @ s( e Zd ZdZdd� Zdd� Zdd� ZdS ) �_MountinfoCachea� Cache for info from /proc/self/mountinfo. Looks up the root of the
mount within the filesystem using a pair of mountpoint, mount
source as keys.
This is a very simple helper class for MountsCache, and would
have to be altered for general purpose use.
Note that only info for fstype btrfs is stored within the cache,
as MountsCache methods only require information for btrfs.
c C s
d | _ d S )N)�_cache)�self� r
�/usr/lib/python3.6/mounts.py�__init__. s z_MountinfoCache.__init__c
C s� i }t d��n}xf|D ]^}|j� }|jd�}||d }|jd�sBq|d }|d }t||d dd �} ||| |f<