Large disk support for XFS
PATCH 1/1 Large disk support for XFS
Hi,
This patch fixes a few size limits of xfs fs.
Signature · 4 lines
Bean gitgrub home: http://github.com/grub/grub/ my fork page: http://github.com/bean123/grub/
fs/xfs.c +4 -4
@@ -160,13 +160,13 @@ static grub_dl_t my_mod;#define GRUB_XFS_INO_AGBITS (data) \ ((data)->sblock.log2_agblk + (data)->sblock.log2_inop)#define GRUB_XFS_INO_INOINAG (data, ino) \ - (grub_be_to_cpu64 (ino) & ((1 << GRUB_XFS_INO_AGBITS (data)) - 1)) + (grub_be_to_cpu64 (ino) & ((1LL << GRUB_XFS_INO_AGBITS (data)) - 1))#define GRUB_XFS_INO_AG (data,ino) \ (grub_be_to_cpu64 (ino) >> GRUB_XFS_INO_AGBITS (data))#define GRUB_XFS_FSB_TO_BLOCK (data, fsb) \ (((fsb) >> (data)->sblock.log2_agblk) * (data)->agsize \ - + ((fsb) & ((1 << (data)->sblock.log2_agblk) - 1))) + + ((fsb) & ((1LL << (data)->sblock.log2_agblk) - 1)))#define GRUB_XFS_EXTENT_OFFSET (exts,ex) \ ((grub_be_to_cpu32 (exts[ex][0]) & ~(1 << 31)) << 23 \
@@ -185,7 +185,7 @@ static grub_dl_t my_mod;#define GRUB_XFS_NEXT_DIRENT (pos,len) \ (pos) + GRUB_XFS_ROUND_TO_DIRENT (8 + 1 + len + 2) -static inline int +static inline grub_uint64_t grub_xfs_inode_block (struct grub_xfs_data *data,grub_uint64_t ino) {
@@ -213,7 +213,7 @@ static grub_err_t grub_xfs_read_inode (struct grub_xfs_data *data, grub_uint64_t ino, struct grub_xfs_inode *inode) { - int block = grub_xfs_inode_block (data, ino); + grub_uint64_t block = grub_xfs_inode_block (data, ino);int offset =grub_xfs_inode_offset (data, ino);/* Read the inode. */
Quoted 4 lines · Bean
Hi,
This patch fixes a few size limits of xfs fs.
For sector numbers I would recommend to use grub_disk_addr_t but otherwise the patch looks good. Provided you write a Changelog and it passes the test, I'm ok with you comitting it.
Quoted 12 lines
--
Beangitgrub home: http://github.com/grub/grub/
my fork page: http://github.com/bean123/grub/_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Signature · 4 lines
Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git
Quoted 8 lines · Vladimir 'phcoder' Serbinenko
Quoted 4 lines · Bean
Hi,
This patch fixes a few size limits of xfs fs.
For sector numbers I would recommend to use
grub_disk_addr_tbut otherwise the patch looks good. Provided you write a Changelog and it passes the test, I'm ok with you comitting it.
Ack.
Signature · 5 lines
Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."
Quoted 3 lines · Bean
Hi,
This patch fixes a few size limits of xfs fs.
Ping
Quoted 13 lines
--
Beangitgrub home: http://github.com/grub/grub/
my fork page: http://github.com/bean123/grub/_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Signature · 4 lines
Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git
Quoted 5 lines · Vladimir 'phcoder' Serbinenko
Quoted 3 lines · Bean
Hi,
This patch fixes a few size limits of xfs fs.
Ping
Isn't this already in SVN ?
Signature · 5 lines
Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."
Quoted 9 lines · Robert Millan
Quoted 5 lines · Vladimir 'phcoder' Serbinenko
Quoted 3 lines · Bean
Hi,
This patch fixes a few size limits of xfs fs.
Ping
Isn't this already in SVN ?
No.
Quoted 13 lines
--
Robert MillanThe DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Signature · 4 lines
Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git
Quoted 11 lines · Vladimir 'phcoder' Serbinenko
Quoted 9 lines · Robert Millan
Quoted 5 lines · Vladimir 'phcoder' Serbinenko
Quoted 3 lines · Bean
Hi,
This patch fixes a few size limits of xfs fs.
Ping
Isn't this already in SVN ?
No.
Sorry, I confused it with another fix.
Bean, for obvious fixes like this one feel free to commit them right away after waiting a short while, specially if it's been reviewed/okayed by someone else.
Please go ahead with it, and next time please include a ChangeLog entry when submitting patches.
Signature · 5 lines
Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."
Hi,
Ok, committed.
Quoted 35 lines · Robert Millan
Quoted 11 lines · Vladimir 'phcoder' Serbinenko
Quoted 9 lines · Robert Millan
Quoted 5 lines · Vladimir 'phcoder' Serbinenko
Quoted 3 lines · Bean
Hi,
This patch fixes a few size limits of xfs fs.
Ping
Isn't this already in SVN ?
No.
Sorry, I confused it with another fix.
Bean, for obvious fixes like this one feel free to commit them right away after waiting a short while, specially if it's been reviewed/okayed by someone else.
Please go ahead with it, and next time please include a ChangeLog entry when submitting patches.
--
Robert MillanThe DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Signature · 4 lines
Bean gitgrub home: http://github.com/grub/grub/ my fork page: http://github.com/bean123/grub/