+=head2 is_mounted
+
+Check if fuse filesystem is mounted
+
+ if ($mnt->is_mounted) { ... }
+
+=cut
+
+sub is_mounted {
+ my $self = shift;
+
+ my $mounted = 0;
+ my $mount = $self->{'mount'} || confess "can't find mount point!";
+ if (open(MTAB, "/etc/mtab")) {
+ while(<MTAB>) {
+ $mounted = 1 if (/ $mount fuse /i);
+ }
+ close(MTAB);
+ } else {
+ warn "can't open /etc/mtab: $!";
+ }
+
+ return $mounted;
+}
+
+