Changeset 8e9b2534 in mainline for uspace/srv/logger/ctl.c


Ignore:
Timestamp:
2017-03-26T10:28:44Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f644472
Parents:
58898d1d
Message:

Set logger's VFS root

As an init task, logger starts with no VFS root, which effectively
disables logging to /log/*. In this commit we add a way to set logger's
root after the root is mounted in init to fix this. Note that some log
entries might be still missing as file-based logging kicks in quite
late.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/logger/ctl.c

    r58898d1d r8e9b2534  
    4141#include <io/logctl.h>
    4242#include <ipc/logger.h>
     43#include <vfs/vfs.h>
    4344#include "logger.h"
    4445
     
    8687                        break;
    8788                }
     89                case LOGGER_CONTROL_SET_ROOT: {
     90                        int fd = vfs_receive_handle(true);
     91                        vfs_root_set(fd);
     92                        async_answer_0(callid, fd >= 0 ? EOK : fd);
     93                        break;
     94                }
    8895                default:
    8996                        async_answer_0(callid, EINVAL);
Note: See TracChangeset for help on using the changeset viewer.