Commit c8911f28 authored by Stanislav Kinsburskiy's avatar Stanislav Kinsburskiy Committed by Pavel Emelyanov

devices: add support for /dev/autofs

This device doesn't support read or write operations and is expected to be
created by external process.
Thanks to that, regular dump options suits this device.
Signed-off-by: 's avatarStanislav Kinsburskiy <skinsbursky@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 3ca46335
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
#include "fs-magic.h" #include "fs-magic.h"
#include "proc_parse.h" #include "proc_parse.h"
#include "cr_options.h" #include "cr_options.h"
#include "autofs.h"
#include "parasite.h" #include "parasite.h"
#include "parasite-syscall.h" #include "parasite-syscall.h"
...@@ -321,6 +322,8 @@ static const struct fdtype_ops *get_misc_dev_ops(int minor) ...@@ -321,6 +322,8 @@ static const struct fdtype_ops *get_misc_dev_ops(int minor)
switch (minor) { switch (minor) {
case TUN_MINOR: case TUN_MINOR:
return &tunfile_dump_ops; return &tunfile_dump_ops;
case AUTOFS_MINOR:
return &regfile_dump_ops;
}; };
return NULL; return NULL;
......
#ifndef __CR_AUTOFS_H__
#define __CR_AUTOFS_H__
#ifndef AUTOFS_MINOR
#define AUTOFS_MINOR 235
#endif
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment