2
using TeeJee.FileSystem;
4
using TeeJee.JsonHelper;
5
using TeeJee.ProcessHelper;
6
using TeeJee.GtkHelper;
11
public class MountEntry : GLib.Object{
12
public Device device = null;
13
public string mount_point = "";
14
public string mount_options = "";
16
public MountEntry(Device? device, string mount_point, string mount_options){
18
this.mount_point = mount_point;
19
this.mount_options = mount_options;
22
public string subvolume_name(){
23
if (mount_options.contains("subvol=")){
24
return mount_options.split("subvol=")[1].split(",")[0].strip();
31
public static MountEntry? find_entry_by_mount_point(
32
Gee.ArrayList<MountEntry> entries, string mount_path){
34
foreach(var entry in entries){
35
if (entry.mount_point == mount_path){