Changeset 2161


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

mountd: Include the mount name in uci state.

References: #1186

File:
1 edited

Legend:

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

    r2160 r2161  
    219219                ucix_add_option(ctx, mountd, q->serial, "disc", t);
    220220                ucix_add_option(ctx, mountd, q->serial, "sector_size", q->sector_size);
     221                snprintf(t, 64, "part%dname", atoi(&q->dev[3]));
     222                ucix_add_option(ctx, mountd, q->serial, t, q->name);
    221223                snprintf(t, 64, "part%dmounted", atoi(&q->dev[3]));
    222224                ucix_add_option(ctx, mountd, q->serial, t, (q->status & MS_MOUNTED)?("1"):("0"));
Note: See TracChangeset for help on using the changeset viewer.