1 -- $Id: mountpoint.lua,v 1.1 2005/03/27 07:21:08 cpressey Exp $
5 MountPoints.enumerate = function()
7 local pty, line, found, len
8 local device, mtpt, fstype, opts, dump, pass
11 pty = Pty.open(App.expand("${root}${MOUNT} -p"))
13 return nil, "could not open pty to mount"
18 while line and found do
19 found, len, device, mtpt, fstype, opts, dump, pass = string.find(line,
20 "^([^%s]+)%s+([^%s]+)%s+([^%s]+)%s+([^%s]+)%s+(%d+)%s+(%d+)"
34 return nil, "mount failed with return code " .. tostring(retval)