Module: FuseFS

Defined in:
lib/fusefs.rb

Defined Under Namespace

Classes: FuseDir, MetaDir

Class Method Summary collapse

Class Method Details

.exitObject



26
27
28
# File 'lib/fusefs.rb', line 26

def FuseFS.exit
  @running = false
end

.runObject



11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/fusefs.rb', line 11

def FuseFS.run
  fd = FuseFS.fuse_fd
  begin
    io = IO.for_fd(fd)
  rescue Errno::EBADF
    raise "fuse is not mounted"
  end
  while @running
    IO.select([io])
    FuseFS.process
  end
end

.unmountObject



23
24
25
# File 'lib/fusefs.rb', line 23

def FuseFS.unmount
  system("umount #{@mountpoint}")
end