Home
last modified time | relevance | path

Searched full:superblock (Results 1 – 25 of 267) sorted by relevance

1234567891011

/linux/Documentation/filesystems/
H A Dqnx6.rst41 The superblock contains all global information about the filesystem.
43 That serial number is used to identify the "active" superblock.
45 serial of the new master superblock is increased (old superblock serial + 1)
51 inactive superblock.
53 Each superblock holds a set of root inodes for the different filesystem
71 The first Superblock is located at 0x2000. (0x2000 is the bootblock size)
72 The Audi MMI 3G first superblock directly starts at byte 0.
74 Second superblock position can either be calculated from the superblock
79 0x1000 is the size reserved for each superblock - regardless of the
98 used. (scheme is the same as the one used for the superblock root nodes)
[all …]
/linux/fs/qnx6/
H A Dsuper_mmi.c30 /* the rest of the superblock is the same */ in qnx6_mmi_copy_sb()
44 /* Check the superblock signatures in qnx6_mmi_fill_super()
45 start with the first superblock */ in qnx6_mmi_fill_super()
48 pr_err("Unable to read first mmi superblock\n"); in qnx6_mmi_fill_super()
55 pr_err("wrong signature (magic) in superblock #1.\n"); in qnx6_mmi_fill_super()
63 pr_err("superblock #1 checksum error\n"); in qnx6_mmi_fill_super()
67 /* calculate second superblock blocknumber */ in qnx6_mmi_fill_super()
83 /* read second superblock */ in qnx6_mmi_fill_super()
86 pr_err("unable to read the second superblock\n"); in qnx6_mmi_fill_super()
92 pr_err("wrong signature (magic) in superblock #2.\n"); in qnx6_mmi_fill_super()
[all …]
/linux/fs/
H A Dsuper.c96 * super_lock - wait for superblock to become ready and lock it
97 * @sb: superblock to wait for
100 * If the superblock has neither passed through vfs_get_tree() or
101 * generic_shutdown_super() yet wait for it to happen. Either superblock
115 /* wait until the superblock is ready or dying */ in super_lock()
159 * all initializations in the superblock are seen by the user in super_wake()
174 * drop the last active reference to the superblock from within the shrinker.
177 * take a passive reference to the superblock to avoid this from occurring.
252 * However, if we are currently mounting the superblock, the underlying in super_cache_count()
295 /* Free a superblock tha
[all...]
/linux/fs/hpfs/
H A Dsuper.c506 struct hpfs_super_block *superblock; in hpfs_fill_super() local
530 if (!(superblock = hpfs_map_sector(s, 16, &bh1, 1))) goto bail2; in hpfs_fill_super()
535 ||*/ le32_to_cpu(superblock->magic) != SB_MAGIC in hpfs_fill_super()
543 if (!sb_rdonly(s) && superblock->funcversion != 2 && superblock->funcversion != 3) { in hpfs_fill_super()
545 (int)superblock->version, (int)superblock->funcversion); in hpfs_fill_super()
552 /* Fill superblock stuff */ in hpfs_fill_super()
559 sbi->sb_root = le32_to_cpu(superblock->root); in hpfs_fill_super()
560 sbi->sb_fs_size = le32_to_cpu(superblock in hpfs_fill_super()
[all...]
/linux/fs/freevxfs/
H A Dvxfs_super.c8 * Veritas filesystem driver - superblock related routines.
35 * vxfs_put_super - free superblock resources
36 * @sbp: VFS superblock.
58 * @dentry: VFS dentry to locate superblock
139 "vxfs: unable to read disk superblock at %u", in vxfs_try_sb_magic()
150 "vxfs: WRONG superblock magic %08x at %u", in vxfs_try_sb_magic()
170 * vxfs_fill_super - read superblock into memory and initialize filesystem
171 * @sbp: VFS superblock (to fill)
176 * superblock into memory and do some basic setup.
179 * The superblock on success, else %NULL.
[all …]
H A Dvxfs.h10 * Veritas filesystem driver - superblock structure.
18 * Superblock magic number (vxfs_super->vs_magic).
42 * VxFS superblock (disk).
46 * Readonly fields for the version 1 superblock.
136 * In core superblock filesystem private data for VxFS.
139 struct vxfs_sb *vsi_raw; /* raw (on disk) superblock */
140 struct buffer_head *vsi_bp; /* buffer for raw superblock*/
252 * Get filesystem private data from VFS superblock.
/linux/include/linux/
H A Dfs_context.h2 /* Filesystem superblock creation and reconfiguration context.
30 FS_CONTEXT_FOR_MOUNT, /* New superblock for explicit mount */
31 FS_CONTEXT_FOR_SUBMOUNT, /* New superblock for automatic submount */
32 FS_CONTEXT_FOR_RECONFIGURE, /* Superblock reconfiguration (remount) */
40 FS_CONTEXT_CREATING, /* A superblock is being created */
41 FS_CONTEXT_AWAITING_MOUNT, /* Superblock created, awaiting fsmount() */
44 FS_CONTEXT_RECONFIGURING, /* Reconfiguring the superblock */
83 * reconfiguration of a superblock.
85 * Superblock creation fills in ->root whereas reconfiguration begins with this
96 struct dentry *root; /* The root and superblock */
[all …]
/linux/drivers/mtd/
H A Dmtdsuper.c2 /* MTD-based superblock management
23 * get a superblock on an MTD-backed filesystem
38 /* new mountpoint for an already mounted superblock */ in mtd_get_sb()
43 /* fresh new superblock */ in mtd_get_sb()
44 pr_debug("MTDSB: New superblock for device %d (\"%s\")\n", in mtd_get_sb()
74 * get a superblock on an MTD-backed filesystem by MTD device number
92 * get_tree_mtd - Get a superblock based on a single MTD device
94 * @fill_super: Helper to initialise a new superblock
170 * destroy an MTD-based superblock
/linux/fs/xfs/libxfs/
H A Dxfs_sb.c35 * Physical superblock buffer manipulations. Shared with libxfs in userspace.
192 /* Check all the superblock fields we care about when reading one in. */
202 * Version 5 superblock feature mask validation. Reject combinations in xfs_validate_sb_read()
207 "Superblock has unknown compatible features (0x%x) enabled.", in xfs_validate_sb_read()
215 "Superblock has unknown read-only compatible features (0x%x) enabled.", in xfs_validate_sb_read()
229 "Superblock has unknown incompatible features (0x%x) enabled.", in xfs_validate_sb_read()
322 /* Check all the superblock fields we care about when writing one out. */
331 * the superblock. We skip this in the read validator because there in xfs_validate_sb_write()
351 * Version 5 superblock feature mask validation. Reject combinations in xfs_validate_sb_write()
358 "Corruption detected in superblock read-only compatible features (0x%x)!", in xfs_validate_sb_write()
[all …]
/linux/fs/xfs/
H A Dxfs_mount.c154 * Does the initial read of the superblock.
173 * of the superblock to extract the XFS sector size. in xfs_readsb()
176 * sector size and thus we can always read the superblock. Once we know in xfs_readsb()
195 * Initialize the mount structure from the superblock. in xfs_readsb()
200 * If we haven't validated the superblock, do so now before we try in xfs_readsb()
201 * to check the sector size and reread the superblock appropriately. in xfs_readsb()
205 xfs_warn(mp, "Invalid superblock magic number"); in xfs_readsb()
223 * Re-read the superblock so the buffer is correctly sized, in xfs_readsb()
289 xfs_warn(mp, "Skipping superblock stripe alignment update."); in xfs_check_new_dalign()
296 * that they pass basic alignment and superblock featur
[all...]
H A Dxfs_trans.c308 * to the file system's superblock when the transaction commits.
311 * Mark the transaction structure to indicate that the superblock
315 * used filesystem blocks in the superblock, we do not mark the
316 * superblock dirty in this transaction if we modify these fields.
318 * applied to the incore superblock, but we don't want them to
319 * cause the superblock to get locked and logged if these are the
320 * only fields in the superblock that the transaction modifies.
374 * in-core superblock's counter. This should only in xfs_trans_mod_sb()
375 * be applied to the on-disk superblock. in xfs_trans_mod_sb()
398 * in-core superblock' in xfs_trans_mod_sb()
[all...]
/linux/fs/ubifs/
H A Dsb.c12 * This file implements UBIFS superblock. The superblock is stored at the first
14 * change it. The superblock node mostly contains geometry information.
175 /* Create default superblock */ in create_default_filesystem()
223 dbg_gen("default superblock created at LEB 0:0"); in create_default_filesystem()
370 * validate_sb - validate superblock node.
372 * @sup: superblock node
374 * This function validates superblock node @sup. Since most of data was read
375 * from the superblock and stored in @c, the function validates fields in @c
395 ubifs_err(c, "min. I/O unit mismatch: %d in superblock, %d real", in validate_sb()
401 ubifs_err(c, "LEB size mismatch: %d in superblock, %d real", in validate_sb()
[all …]
/linux/Documentation/admin-guide/device-mapper/
H A Ddm-integrity.rst37 the device. But it will only format the device if the superblock contains
38 zeroes. If the superblock is neither valid nor zeroed, the dm-integrity
52 1. overwrite the superblock with zeroes
56 4. read the "provided_data_sectors" value from the superblock
108 superblock is used.
113 the superblock is used.
203 - the superblock is protected by journal_mac
204 - a 16-byte salt stored in the superblock is mixed to the mac, so
243 * superblock (4kiB)
273 * integrity tag (the size is specified in the superblock)
[all …]
/linux/include/uapi/linux/
H A Defs_fs_sb.h16 /* EFS superblock magic numbers */
25 /* efs superblock on disk */
43 __be32 fs_replsb; /* Location of replicated superblock. */
49 /* efs superblock information in memory */
51 __u32 fs_magic; /* superblock magic number */
/linux/Documentation/filesystems/ext4/
H A Dchecksums.rst8 The desired checksum algorithm is indicated in the superblock, though as
27 of checksum. The checksum function is whatever the superblock describes
37 * - Superblock
39 - The entire superblock up to the checksum field. The UUID lives inside
40 the superblock.
H A Djournal.rst43 journal inode are replicated in the ext4 superblock. The journal itself
65 * - Superblock
86 The journal superblock will be in the next full block after the
87 superblock.
94 - ext4 Superblock
95 - Journal Superblock
150 - Journal superblock, v1.
152 - Journal superblock, v2.
164 The journal superblock is recorded as ``struct journal_superblock_s``,
182 - Common header identifying this as a superblock.
[all …]
H A Dspecial_inodes.rst37 …st non-reserved inode. Usually this is the lost+found directory. See s_first_ino in the superblock.
41 hierarchy. These are generally reference from the superblock. They are:
47 * - Superblock field
/linux/drivers/md/persistent-data/
H A Ddm-transaction-manager.h42 * i) Make all changes for the transaction *except* for the superblock.
45 * ii) Lock your superblock. Update. Then call dm_tm_commit() which will
46 * unlock the superblock and flush it. No other blocks should be updated
48 * updated superblock; perform any operations that could fail *before* you
49 * take the superblock lock.
52 int dm_tm_commit(struct dm_transaction_manager *tm, struct dm_block *superblock);
142 * The superblock location is passed so the metadata space map knows it
/linux/drivers/md/
H A Ddm-clone-metadata.c153 * buffer before the superblock is locked and updated.
164 * Superblock validation.
189 DMERR("Superblock check failed: blocknr %llu, expected %llu", in sb_check()
196 DMERR("Superblock check failed: magic %llu, expected %llu", in sb_check()
205 DMERR("Superblock check failed: checksum %u, expected %u", in sb_check()
224 .name = "superblock",
230 * Check if the superblock is formatted or not. We consider the superblock to
241 * We don't use a validator here because the superblock could be all in __superblock_all_zeroes()
246 DMERR("Failed to read_lock superblock"); in __superblock_all_zeroes()
297 /* Save dm-clone metadata in superblock */
[all …]
/linux/fs/befs/
H A Dbtree.c42 * The first thing in the tree is the tree superblock. It tells you
123 * befs_bt_read_super() - read in btree superblock convert to cpu byteorder
124 * @sb: Filesystem superblock
126 * @sup: Buffer in which to place the btree superblock
128 * Calls befs_read_datastream to read in the btree superblock and
130 * Return: BEFS_OK on success and if *@sup contains the btree superblock in cpu
173 * @sb: Filesystem superblock
228 * @sb: Filesystem superblock
239 * Read the superblock and rootnode of the b+tree.
257 "befs_btree_find() failed to read index superblock"); in befs_btree_find()
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-fs-nilfs260 What: /sys/fs/nilfs2/<device>/superblock/sb_write_time
67 What: /sys/fs/nilfs2/<device>/superblock/sb_write_time_secs
73 What: /sys/fs/nilfs2/<device>/superblock/sb_write_count
79 What: /sys/fs/nilfs2/<device>/superblock/sb_update_frequency
83 Show/Set interval of periodical update of superblock
86 What: /sys/fs/nilfs2/<device>/superblock/README
90 Describe attributes of /sys/fs/nilfs2/<device>/superblock
/linux/security/landlock/
H A Dfs.h119 * struct landlock_superblock_security - Superblock security blob
125 * @inode_refs: Number of pending inodes (from this superblock) that
145 landlock_superblock(const struct super_block *const superblock)
147 return superblock->s_security + landlock_blob_sizes.lbs_superblock;
92 landlock_superblock(const struct super_block * const superblock) landlock_superblock() argument
/linux/include/linux/fs/
H A Dsuper.h69 * sb_end_write - drop write access to a superblock
81 * sb_end_pagefault - drop write access to a superblock from a page fault
93 * sb_end_intwrite - drop write access to a superblock for internal fs purposes
105 * sb_start_write - get write access to a superblock
139 * sb_start_pagefault - get write access to a superblock from a page fault
163 * sb_start_intwrite - get write access to a superblock for internal fs purposes
/linux/fs/nilfs2/
H A Dsysfs.h20 * @sg_superblock_kobj: /sys/fs/<nilfs>/<device>/superblock
32 /* /sys/fs/<nilfs>/<device>/superblock */
77 NILFS_DEV_ATTR_STRUCT(superblock);
139 NILFS_RO_ATTR(superblock, name)
141 NILFS_RW_ATTR(superblock, name)
/linux/tools/include/uapi/linux/
H A Dmount.h50 * Superblock flags that can be altered by MS_REMOUNT
104 FSCONFIG_CMD_CREATE = 6, /* Create new or reuse existing superblock */
105 FSCONFIG_CMD_RECONFIGURE = 7, /* Invoke superblock reconfiguration */
106 FSCONFIG_CMD_CREATE_EXCL = 8, /* Create new superblock, fail if reusing existing superblock */
145 * Structure for getting mount/superblock/filesystem info with statmount(2).

1234567891011