• Oleg Nesterov's avatar
    introduce fsname_is_auto(name) and FSTYPE__AUTO · 38e148e5
    Oleg Nesterov authored
    The comment in find_fstype_by_name() says:
    
    	just mounting anything is wrong
    
    and this is true in general, but:
    
    	almost every fs has its own features
    
    this is not true in a sense that a lot of supported filesystems do not
    need any special processing: FSTYPE__PROC, FSTYPE__SYSFS, and more. More
    importantly, this logic does not allow to spicify from the command line
    that (say) currently unsupported hugetlbfs can "just work", do_new_mount()
    should only pass the right name/options.
    
    This patch adds the new FSTYPE__AUTO code, find_fstype_by_name(name) adds
    the new entry if fsname_is_auto(name) returns true. We do not care that
    different fstype's can have the same FSTYPE__AUTO code, fstype->code has
    no meaning unless we need to do something special with this fs, but in
    this case it should not be FSTYPE__AUTO by definition.
    
    Note: currently find_fstype_by_name() just returns true, it is obviously
    pointless to "dump" until we teach "restore" to handle FSTYPE__AUTO.
    Signed-off-by: 's avatarOleg Nesterov <oleg@redhat.com>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    38e148e5
Name
Last commit
Last update
..
google/protobuf Loading commit data...
Makefile Loading commit data...
cgroup.proto Loading commit data...
core-aarch64.proto Loading commit data...
core-arm.proto Loading commit data...
core-x86.proto Loading commit data...
core.proto Loading commit data...
cpuinfo.proto Loading commit data...
creds.proto Loading commit data...
eventfd.proto Loading commit data...
eventpoll.proto Loading commit data...
ext-file.proto Loading commit data...
fdinfo.proto Loading commit data...
fh.proto Loading commit data...
fifo.proto Loading commit data...
file-lock.proto Loading commit data...
fown.proto Loading commit data...
fs.proto Loading commit data...
fsnotify.proto Loading commit data...
ghost-file.proto Loading commit data...
inventory.proto Loading commit data...
ipc-desc.proto Loading commit data...
ipc-msg.proto Loading commit data...
ipc-sem.proto Loading commit data...
ipc-shm.proto Loading commit data...
ipc-var.proto Loading commit data...
mm.proto Loading commit data...
mnt.proto Loading commit data...
netdev.proto Loading commit data...
ns.proto Loading commit data...
opts.proto Loading commit data...
packet-sock.proto Loading commit data...
pagemap.proto Loading commit data...
pipe-data.proto Loading commit data...
pipe.proto Loading commit data...
pstree.proto Loading commit data...
regfile.proto Loading commit data...
remap-file-path.proto Loading commit data...
rlimit.proto Loading commit data...
rpc.proto Loading commit data...
sa.proto Loading commit data...
siginfo.proto Loading commit data...
signalfd.proto Loading commit data...
sk-inet.proto Loading commit data...
sk-netlink.proto Loading commit data...
sk-opts.proto Loading commit data...
sk-packet.proto Loading commit data...
sk-unix.proto Loading commit data...
stats.proto Loading commit data...
tcp-stream.proto Loading commit data...
timer.proto Loading commit data...
timerfd.proto Loading commit data...
tty.proto Loading commit data...
tun.proto Loading commit data...
userns.proto Loading commit data...
utsns.proto Loading commit data...
vma.proto Loading commit data...