1 2 3 4 5 6 7 8 9 10 | cramfs_read_super(。。。) /* Do sanity checks on the superblock */ if (super.magic != CRAMFS_MAGIC) { /* check at 512 byte offset */ memcpy(&super, cramfs_read(sb, 512, sizeof(super)), sizeof(super)); if (super.magic != CRAMFS_MAGIC) { printk(KERN_ERR "cramfs: wrong magic\n"); goto out; } } |
1 2 3 4 5 | if (super.magic != CRAMFS_MAGIC) { if (!silent) printk(KERN_ERR "cramfs: wrong magic\n"); goto out; } |
1 2 | # mkdir /testRam # mount -t ramfs none /testRAM |
1 | # mount -t ramfs none /testRAM -o maxsize=2000 (创建了一个限定最大使用内存为2M的ramdisk) |
1 2 | # mkdir -p /mnt/tmpfs # mount tmpfs /mnt/tmpfs -t tmpfs |
1 | # mount tmpfs /mnt/tmpfs -t tmpfs -o size=32m |
1 | FAT: bogus logical sector size 21072 |
1 | UMSDOS: msdos_read_super failed, mount aborted. |
1 | VFS: Mounted root (romfs filesystem) readonly |
1 | Mounted devfs on /dev |
1 | Freeing init memory: 72K |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |