linux/fs/sysv/super.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 *  linux/fs/sysv/inode.c
 *
 *  minix/inode.c
 *  Copyright (C) 1991, 1992  Linus Torvalds
 *
 *  xenix/inode.c
 *  Copyright (C) 1992  Doug Evans
 *
 *  coh/inode.c
 *  Copyright (C) 1993  Pascal Haible, Bruno Haible
 *
 *  sysv/inode.c
 *  Copyright (C) 1993  Paul B. Monday
 *
 *  sysv/inode.c
 *  Copyright (C) 1993  Bruno Haible
 *  Copyright (C) 1997, 1998  Krzysztof G. Baranowski
 *
 *  This file contains code for read/parsing the superblock.
 */

#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/buffer_head.h>
#include "sysv.h"

/*
 * The following functions try to recognize specific filesystems.
 *
 * We recognize:
 * - Xenix FS by its magic number.
 * - SystemV FS by its magic number.
 * - Coherent FS by its funny fname/fpack field.
 * - SCO AFS by s_nfree == 0xffff
 * - V7 FS has no distinguishing features.
 *
 * We discriminate among SystemV4 and SystemV2 FS by the assumption that
 * the time stamp is not < 01-01-1980.
 */

enum {};

static void detected_xenix(struct sysv_sb_info *sbi, unsigned *max_links)
{}

static void detected_sysv4(struct sysv_sb_info *sbi, unsigned *max_links)
{}

static void detected_sysv2(struct sysv_sb_info *sbi, unsigned *max_links)
{}

static void detected_coherent(struct sysv_sb_info *sbi, unsigned *max_links)
{}

static void detected_v7(struct sysv_sb_info *sbi, unsigned *max_links)
{}

static int detect_xenix(struct sysv_sb_info *sbi, struct buffer_head *bh)
{}

static int detect_sysv(struct sysv_sb_info *sbi, struct buffer_head *bh)
{}

static int detect_coherent(struct sysv_sb_info *sbi, struct buffer_head *bh)
{}

static int detect_sysv_odd(struct sysv_sb_info *sbi, struct buffer_head *bh)
{}

static struct {} flavours[] =;

static char *flavour_names[] =;

static void (*flavour_setup[])(struct sysv_sb_info *, unsigned *) =;

static int complete_read_super(struct super_block *sb, int silent, int size)
{}

static int sysv_fill_super(struct super_block *sb, void *data, int silent)
{}

static int v7_sanity_check(struct super_block *sb, struct buffer_head *bh)
{}

static int v7_fill_super(struct super_block *sb, void *data, int silent)
{}

/* Every kernel module contains stuff like this. */

static struct dentry *sysv_mount(struct file_system_type *fs_type,
	int flags, const char *dev_name, void *data)
{}

static struct dentry *v7_mount(struct file_system_type *fs_type,
	int flags, const char *dev_name, void *data)
{}

static struct file_system_type sysv_fs_type =;
MODULE_ALIAS_FS();

static struct file_system_type v7_fs_type =;
MODULE_ALIAS_FS();
MODULE_ALIAS();

static int __init init_sysv_fs(void)
{}

static void __exit exit_sysv_fs(void)
{}

module_init()
module_exit()
MODULE_DESCRIPTION();
MODULE_LICENSE();