Displaying 5 results from an estimated 5 matches for "sb_magicnum".
2015 Jul 18
1
[PATCH 1/2] xfs: rename xfs_is_valid_magicnum to xfs_is_valid_sb
...read_sb(fs, &sb)) {
xfs_error("Superblock read failed");
goto out;
}
-
- if (!xfs_is_valid_magicnum(&sb)) {
+ if (!xfs_is_valid_sb(&sb)) {
xfs_error("Invalid superblock");
goto out;
}
-
- xfs_debug("magicnum 0x%lX", be32_to_cpu(sb.sb_magicnum));
+ xfs_debug("sb magic: 0x%lX", be32_to_cpu(sb.sb_magicnum));
info = xfs_new_sb_info(&sb);
if (!info) {
xfs_error("Failed to fill in filesystem-specific info structure");
goto out;
}
-
fs->fs_info = info;
xfs_debug("block_shift %...
2015 Nov 15
0
[PATCH] extlinux/main.c: space chance
...extlinux/main.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/extlinux/main.c b/extlinux/main.c
index 26eb43c..ed359f1 100644
--- a/extlinux/main.c
+++ b/extlinux/main.c
@@ -393,11 +393,11 @@ int install_bootblock(int fd, const char *device)
if (sb5.sb_magicnum == *(u32 *)XFS_SB_MAGIC) {
if (be32_to_cpu(sb5.sb_blocksize) != XFS_SUPPORTED_BLOCKSIZE) {
fprintf(stderr,
- "You need to have 4 KiB filesystem block size for "
- " being able to install Syslinux in your XFS "
- "partition (because there is no enough space in...
2015 Nov 13
2
[patch] 6.03 extlinux/main.c typos
...po/extlinux/main.c Fri Nov 13 02:29:56 2015
@@ -14,7 +14,7 @@
/*
* extlinux.c
*
- * Install the syslinux boot block on an fat, ntfs, ext2/3/4, btrfs, xfs,
+ * Install the syslinux boot block on a fat, ntfs, ext2/3/4, btrfs, xfs,
* and ufs1/2 filesystem.
*/
@@ -392,11 +392,11 @@
if (sb5.sb_magicnum == *(u32 *)XFS_SB_MAGIC) {
if (be32_to_cpu(sb5.sb_blocksize) != XFS_SUPPORTED_BLOCKSIZE) {
fprintf(stderr,
- "You need to have 4 KiB filesystem block size for "
- " being able to install Syslinux in your XFS "
- "partition (because there is no enough space in...
2015 Nov 15
4
[patch] 6.03 extlinux/main.c typos
On Fri, Nov 13, 2015 at 06:14:36AM +0100, Geert Stappers via Syslinux wrote:
> On Fri, Nov 13, 2015 at 05:05:26AM +0200, Ady via Syslinux wrote:
> > diff U3 syslinux-6.03/extlinux/main.c syslinux-6.03_typo/extlinux/main.c
> > --- syslinux-6.03/extlinux/main.c Mon Oct 06 16:27:44 2014
> > +++ syslinux-6.03_typo/extlinux/main.c Fri Nov 13 02:29:56 2015
>
> patch seen
>
2012 Sep 03
1
[GIT-PULL] XFS filesystem driver
...TOR_SHIFT(fs);
+
+ if (xfs_read_superblock(fs, &sb)) {
+ xfs_error("Superblock read failed");
+ goto out;
+ }
+
+ if (!xfs_is_valid_magicnum(&sb)) {
+ xfs_error("Invalid superblock");
+ goto out;
+ }
+
+ xfs_debug("magicnum 0x%lX", be32_to_cpu(sb.sb_magicnum));
+
+ info = xfs_new_sb_info(&sb);
+ if (!info) {
+ xfs_error("Failed to fill in filesystem-specific info structure");
+ goto out;
+ }
+
+ fs->fs_info = info;
+
+ xfs_debug("block_shift %u blocksize 0x%lX (%lu)", info->block_shift,
+ info->bloc...