3
À<×eÌ ã @ sp d dl jZddlmZ ddlT d dlmZmZ d dlZ d dl
mZ d dlZe j
jƒ Zeƒ ZG dd„ dejƒZdS ) é Né )Úbase)Ú*)ÚPopenÚPIPE)Úcommandsc @ st e Zd ZdZedd„ ƒZdd„ Zedd„ ƒZdd „ Zd
d„ Z dd
„ Z
dd„ Zdd„ Zdd„ Z
eddd�dd„ ƒZdS )ÚMountsPluginaP
`mounts`::
Enables or disables barriers for mounts according to the value of the
[option]`disable_barriers` option. The [option]`disable_barriers`
option has an optional value `force` which disables barriers even
on mountpoints with write back caches. Note that only extended file
systems (ext) are supported by this plug-in.
c C sø i }d}t dddgttddd�jƒ \}}xÄdd„ |jƒ D ƒD ]®}t|ƒd k rNq<|dd … \}}}t|ƒd krt|d nd} t|ƒd
krŒ|d
nd}
|dkrž|}q<|dks<|dkr°q<|
dks<|
dkrÂq<|j|
tƒ || dœƒ ||
d j|ƒ q