Changeset 2259


Ignore:
Timestamp:
Jan 3, 2013, 12:47:34 PM (6 years ago)
Author:
matthijs
Message:

mountd: Improve logging when a device is removed.

File:
1 edited

Legend:

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

    r2161 r2259  
    915915                                inotify_rm_watch(ntfy, mount->wd[i]);
    916916                        }
    917                         snprintf(tmp, 256, "%s%s", "/tmp/run/mountd/", mount->name);
    918                         log_printf("%s has dissappeared ... unmounting\n", tmp);
     917                        log_printf("Unmounting /tmp/run/mountd/%s (%s)\n", mount->dev, mount->name);
    919918                        snprintf(tmp, 256, "%s%s", "/tmp/run/mountd/", mount->dev);
    920919                        system_printf("/bin/umount %s", tmp);
     
    10211020                if(!check_block(q->dev)||del)
    10221021                {
     1022                        if (del)
     1023                                log_printf("Removing %s (%s), configuration changed to 'ignore'\n", q->dev, q->name);
     1024                        else
     1025                                log_printf("Removing %s (%s), block device /dev/%s has disappeared\n", q->dev, q->name, q->dev);
     1026
    10231027                        mount_dev_del(q->dev);
    10241028                        p->prev->next = p->next;
    10251029                        p->next->prev = p->prev;
    10261030                        p = p->next;
    1027                         log_printf("removing %s\n", q->dev);
    10281031                        snprintf(tmp, 64, "%s%s", uci_path, q->name);
    10291032                        unlink(tmp);
Note: See TracChangeset for help on using the changeset viewer.