Changeset 2154


Ignore:
Timestamp:
Aug 23, 2012, 3:31:02 PM (6 years ago)
Author:
matthijs
Message:

mountd: Show failed mounts in the webui.

If the mount fails for whatever reason, it would be shown as "safe to
remove", but otherwise in order in the webui. Now, it explicitely states
the mount failed.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/fon/mountd/src/lib/mount.c

    r2153 r2154  
    223223                snprintf(t, 64, "part%dsupported", atoi(&q->dev[3]));
    224224                ucix_add_option(ctx, mountd, q->serial, t, (q->status & MS_SUPPORTED)?("1"):("0"));
     225                snprintf(t, 64, "part%derror", atoi(&q->dev[3]));
     226                ucix_add_option(ctx, mountd, q->serial, t, (q->status & MS_ERROR)?("1"):("0"));
    225227                ucix_add_option(ctx, mountd, q->serial, "vendor", q->vendor);
    226228                ucix_add_option(ctx, mountd, q->serial, "model", q->model);
  • trunk/luci/modules/admin-fon/luasrc/view/fon_hd/disc.htm

    r2150 r2154  
    4040                <tr <%=class%>>
    4141                        <td><% if section["part"..i.."supported"] == "0" then %><%:disc_unsupported Unsupported filesystem%>
     42                        <% elseif section["part"..i.."error"] == "1" then %><%:disc_error Failed to open filesystem%>
    4243                        <% elseif section["part"..i.."mounted"] == "1" then %><%:disc_dont_remove Do not remove%>
    4344                        <% else %>
     
    4849                        <% if section["part"..i.."supported"] == "0" then %>
    4950                        <td><%:disc_mode_unsupported Unsupported%></td>
     51                        <% elseif section["part"..i.."error"] == "1" then %>
     52                        <td><%:disc_mode_error Error%></td>
    5053                        <% else %>
    5154                        <td>
Note: See TracChangeset for help on using the changeset viewer.