XFS support for pygrub patch
Hi,
I've ported the xfs code from grub to pygrub for our company internal use.
If you find it useful fell free to merge with main code.
Regards,
Marco
Signature · 2 lines
Marco Nenciarini - System manager @ Devise.IT [email protected] | http://www.devise.it
tools/libfsimage/Makefile +1 -1
@@ -1,7 +1,7 @@ XEN_ROOT = ../.. include $(XEN_ROOT)/tools/Rules.mk -SUBDIRS-y = common ufs reiserfs iso9660 fat zfs +SUBDIRS-y = common ufs reiserfs iso9660 fat zfs xfs SUBDIRS-y += $(shell env CC="$(CC)" ./check-libext2fs) .PHONY: all clean install
tools/libfsimage/xfs/Makefile new file +13 -0
@@ -0,0 +1,13 @@ +XEN_ROOT = ../../.. + +LIB_SRCS-y = fsys_xfs.c + +FS = xfs + +.PHONY: all +all: fs-all + +.PHONY: install +install: fs-install + +include $(XEN_ROOT)/tools/libfsimage/Rules.mk
tools/libfsimage/xfs/fsys_xfs.c new file +637 -0
637 lines not on this page · raw message
tools/libfsimage/xfs/xfs.h new file +544 -0
544 lines not on this page · raw message
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 5 lines · Marco Nenciarini
Hi,
I've ported the xfs code from grub to pygrub for our company internal use.If you find it useful fell free to merge with main code.
Can anybody test this patch and confirm it works properly?
Quoted 8 lines · Stefano Stabellini
Quoted 5 lines · Marco Nenciarini
Hi,
I've ported the xfs code from grub to pygrub for our company internal use.If you find it useful fell free to merge with main code.
Can anybody test this patch and confirm it works properly?
To help you testing the patch and auditing the code, I've attached to this message the diff against xfs code in grub-0.97.
As stated before, the resulting fsimage.so works perfectly for me when installed in XCP-0.5 as /usr/lib/fs/xfs/fsimage.so
Actually I've 3 Debian Squeeze machines and one Ubuntu 10.10 machine in our testing environment booting from xfs with pygrub.
The only problem I've found is that the module doesn't compile on Debian based system due to some bug in gcc code optimizer. On such a systems the compiler returns the following error:
gcc -DPIC -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .fsys_xfs.opic.d
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-I../../../tools/libfsimage/common/ -Werror -fPIC -c -o fsys_xfs.opic fsys_xfs.cfsys_xfs.c: In function ‘next_dentry’:
fsys_xfs.c:409: error: extended registers have no high halves fsys_xfs.c:409: error: extended registers have no high halves
The problem disappear if you turn off optimization with -O0
Regards,
Marco
Signature · 2 lines
Marco Nenciarini - System manager @ Devise.IT [email protected] | http://www.devise.it
libfsimage/xfs/fsys_xfs.c renamed from fsys_xfs.c +63 -50
@@ -18,10 +18,8 @@* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#ifdef FSYS_XFS - -#include "shared.h" -#include "filesys.h" +#include <fsimage_grub.h> +#include <limits.h> #include "xfs.h" #define MAX_LINK_COUNT 8
@@ -97,7 +95,7 @@return ino &XFS_INO_MASK (XFS_INO_OFFSET_BITS ); } -static inline __const__ xfs_uint16_t +static inline xfs_uint16_t le16 (xfs_uint16_t x) { __asm__("xchgb %b0,%h0" \
@@ -106,7 +104,7 @@return x; } -static inline __const__ xfs_uint32_t +static inline xfs_uint32_t le32 (xfs_uint32_t x) {#if 0
@@ -122,7 +120,7 @@return x; } -static inline __const__ xfs_uint64_t +static inline xfs_uint64_t le64 (xfs_uint64_t x) {xfs_uint32_t h = x >>32 ;
@@ -187,10 +185,10 @@ }#undef offsetof -#define offsetof (t,m) ((int)&(((t *)0)->m)) +#define offsetof (t,m) ((size_t)&(((t *)0)->m))static inline int -btroot_maxrecs (void ) +btroot_maxrecs (fsi_file_t *ffi) {int tmp = icore.di_forkoff ? (icore.di_forkoff <<3 ) : xfs.isize;
@@ -199,7 +197,7 @@ }static int -di_read (xfs_ino_t ino) +di_read (fsi_file_t *ffi,xfs_ino_t ino) {xfs_agino_t agino;xfs_agnumber_t agno;
@@ -213,17 +211,17 @@ offset =ino2offset (ino); daddr =agb2daddr (agno, agbno); -devread (daddr, offset*xfs.isize, xfs.isize, (char *)inode); +devread (ffi, daddr, offset*xfs.isize, xfs.isize, (char *)inode); xfs.ptr0 = *(xfs_bmbt_ptr_t *) (inode->di_u.di_c +sizeof (xfs_bmdr_block_t) - +btroot_maxrecs ()*sizeof (xfs_bmbt_key_t)); + +btroot_maxrecs (ffi)*sizeof (xfs_bmbt_key_t));return 1 ; }static void -init_extents (void ) +init_extents (fsi_file_t *ffi) {xfs_bmbt_ptr_t ptr0;xfs_btree_lblock_t h;
@@ -237,7 +235,7 @@ ptr0 = xfs.ptr0;for (;;) { xfs.daddr =fsb2daddr (le64 (ptr0)); -devread (xfs.daddr,0 , +devread (ffi, xfs.daddr,0 ,sizeof (xfs_btree_lblock_t), (char *)&h);if (!h.bb_level) { xfs.nextents =le16 (h.bb_numrecs);
@@ -245,14 +243,14 @@ xfs.fpos =sizeof (xfs_btree_block_t);return ; } -devread (xfs.daddr, xfs.btnode_ptr0_off, +devread (ffi, xfs.daddr, xfs.btnode_ptr0_off,sizeof (xfs_bmbt_ptr_t), (char *)&ptr0); } } }static xad_t * -next_extent (void ) +next_extent (fsi_file_t *ffi) {static xad_t xad;
@@ -267,13 +265,13 @@if (xfs.next ==0 )return NULL ; xfs.daddr = xfs.next; -devread (xfs.daddr,0 ,sizeof (xfs_btree_lblock_t), (char *)&h); +devread (ffi, xfs.daddr,0 ,sizeof (xfs_btree_lblock_t), (char *)&h); xfs.nextents =le16 (h.bb_numrecs); xfs.next =fsb2daddr (le64 (h.bb_rightsib)); xfs.fpos =sizeof (xfs_btree_block_t); }/* Yeah, I know that's slow, but I really don't care */ -devread (xfs.daddr, xfs.fpos,sizeof (xfs_bmbt_rec_t), filebuf); +devread (ffi, xfs.daddr, xfs.fpos,sizeof (xfs_bmbt_rec_t), filebuf); xfs.xt = (xfs_bmbt_rec_32_t *)filebuf; xfs.fpos +=sizeof (xfs_bmbt_rec_32_t); }
@@ -290,16 +288,16 @@* Name lies - the function reads only first 100 bytes */ static void -xfs_dabread (void ) +xfs_dabread (fsi_file_t *ffi) {xad_t *xad;xfs_fileoff_t offset;; -init_extents (); -while ((xad =next_extent ())) { +init_extents (ffi); +while ((xad =next_extent (ffi))) { offset = xad->offset;if (isinxt (xfs.dablk, offset, xad->len)) { -devread (fsb2daddr (xad->start + xfs.dablk - offset), +devread (ffi,fsb2daddr (xad->start + xfs.dablk - offset),0 ,100 , dirbuf);break ; }
@@ -316,7 +314,7 @@ }static inline xfs_ino_t -sf_parent_ino (void ) +sf_parent_ino (fsi_file_t *ffi) {return (xfs.i8param ==0 ) ? le64(*(xfs_ino_t *)(&inode->di_u.di_dir2sf.hdr.parent))
@@ -329,8 +327,11 @@return ((n+7 )&~7 ); } +static int +xfs_read (fsi_file_t *ffi,char *buf,int len); +static char * -next_dentry (xfs_ino_t *ino) +next_dentry (fsi_file_t *ffi,xfs_ino_t *ino) {int namelen =1 ;int toread;
@@ -342,7 +343,7 @@if (xfs.forw ==0 )return NULL ; xfs.dablk = xfs.forw; -xfs_dabread (); +xfs_dabread (ffi);#define h ((xfs_dir2_leaf_hdr_t *)dirbuf) xfs.dirmax =le16 (h->count) -le16 (h->stale); xfs.forw =le32 (h->info.forw);
@@ -357,7 +358,7 @@ *ino =0 ;break ;case -1 : - *ino =sf_parent_ino (); + *ino =sf_parent_ino (ffi); ++name; ++namelen; sfe = (xfs_dir2_sf_entry_t *)
@@ -368,7 +369,7 @@default : namelen = sfe->namelen; *ino =sf_ino ((char *)sfe, namelen); - name = sfe->name; + name = (char *)sfe->name; sfe = (xfs_dir2_sf_entry_t *) ((char *)sfe + namelen +11 - xfs.i8param); }
@@ -382,7 +383,7 @@ filepos &= ~(xfs.dirbsize -1 ); filepos |= xfs.blkoff; } -xfs_read (dirbuf,4 ); +xfs_read (ffi, dirbuf,4 ); xfs.blkoff +=4 ;if (dau->unused.freetag ==XFS_DIR2_DATA_FREE_TAG ) { toread =roundup8 (le16 (dau->unused.length)) -4 ;
@@ -392,12 +393,12 @@ }break ; } -xfs_read ((char *)dirbuf +4 ,5 ); +xfs_read (ffi, (char *)dirbuf +4 ,5 ); *ino =le64 (dau->entry.inumber); namelen = dau->entry.namelen;#undef dau toread =roundup8 (namelen +11 ) -9 ; -xfs_read (dirbuf, toread); +xfs_read (ffi, dirbuf, toread); name = (char *)dirbuf; xfs.blkoff += toread +5 ; }
@@ -408,7 +409,7 @@ }static char * -first_dentry (xfs_ino_t *ino) +first_dentry (fsi_file_t *ffi,xfs_ino_t *ino) { xfs.forw =0 ;switch (icore.di_format) {
@@ -420,11 +421,11 @@case XFS_DINODE_FMT_EXTENTS :case XFS_DINODE_FMT_BTREE : filepos =0 ; -xfs_read (dirbuf,sizeof (xfs_dir2_data_hdr_t)); +xfs_read (ffi, dirbuf,sizeof (xfs_dir2_data_hdr_t));if (((xfs_dir2_data_hdr_t *)dirbuf)->magic ==le32 (XFS_DIR2_BLOCK_MAGIC )) {#define tail ((xfs_dir2_block_tail_t *)dirbuf) filepos = xfs.dirbsize -sizeof (*tail); -xfs_read (dirbuf,sizeof (*tail)); +xfs_read (ffi, dirbuf,sizeof (*tail)); xfs.dirmax =le32 (tail->count) -le32 (tail->stale);#undef tail }else {
@@ -432,7 +433,7 @@#define h ((xfs_dir2_leaf_hdr_t *)dirbuf)#define n ((xfs_da_intnode_t *)dirbuf)for (;;) { -xfs_dabread (); +xfs_dabread (ffi);if ((n->hdr.info.magic ==le16 (XFS_DIR2_LEAFN_MAGIC )) || (n->hdr.info.magic ==le16 (XFS_DIR2_LEAF1_MAGIC ))) { xfs.dirmax =le16 (h->count) -le16 (h->stale);
@@ -448,15 +449,15 @@ filepos = xfs.blkoff; xfs.dirpos =0 ; } -return next_dentry (ino); +return next_dentry (ffi, ino); } -int -xfs_mount (void ) +static int +xfs_mount (fsi_file_t *ffi,const char *options) {xfs_sb_t super; -if (!devread (0 ,0 ,sizeof (super), (char *)&super) +if (!devread (ffi,0 ,0 ,sizeof (super), (char *)&super) || (le32 (super.sb_magicnum) !=XFS_SB_MAGIC ) || ((le16 (super.sb_versionnum) &XFS_SB_VERSION_NUMBITS ) !=XFS_SB_VERSION_4 ) ) {
@@ -483,8 +484,8 @@return 1 ; } -int -xfs_read (char *buf,int len) +static int +xfs_read (fsi_file_t *ffi,char *buf,int len) {xad_t *xad;xfs_fileoff_t endofprev, endofcur, offset;
@@ -500,8 +501,8 @@ startpos = filepos; endpos = filepos + len; endofprev = (xfs_fileoff_t)-1 ; -init_extents (); -while (len >0 && (xad =next_extent ())) { +init_extents (ffi); +while (len >0 && (xad =next_extent (ffi))) { offset = xad->offset; xadlen = xad->len;if (isinxt (filepos >> xfs.blklog, offset, xadlen)) {
@@ -510,7 +511,7 @@ ? len : (endofcur - filepos); disk_read_func = disk_read_hook; -devread (fsb2daddr (xad->start), +devread (ffi,fsb2daddr (xad->start), filepos - (offset << xfs.blklog), toread, buf); disk_read_func =NULL ;
@@ -533,8 +534,8 @@return filepos - startpos; } -int -xfs_dir (char *dirname) +static int +xfs_dir (fsi_file_t *ffi,char *dirname) {xfs_ino_t ino, parent_ino, new_ino;xfs_fsize_t di_size;
@@ -546,7 +547,7 @@ parent_ino = ino = xfs.rootino; link_count =0 ;for (;;) { -di_read (ino); +di_read (ffi, ino); di_size =le64 (icore.di_size); di_mode =le16 (icore.di_mode);
@@ -558,7 +559,7 @@if (di_size < xfs.bsize -1 ) { filepos =0 ; filemax = di_size; - n =xfs_read (linkbuf, filemax); + n =xfs_read (ffi, linkbuf, filemax); }else { errnum =ERR_FILELENGTH ;return 0 ;
@@ -591,7 +592,7 @@for (rest = dirname; (ch = *rest) && !isspace (ch) && ch !='/' ; rest++); *rest =0 ; - name =first_dentry (&new_ino); + name =first_dentry (ffi, &new_ino);for (;;) { cmp = (!*dirname) ?-1 :substring (dirname, name);#ifndef STAGE1_5
@@ -608,7 +609,7 @@ *(dirname = rest) = ch;break ; } - name =next_dentry (&new_ino); + name =next_dentry (ffi, &new_ino);if (name ==NULL ) {if (print_possibilities <0 )return 1 ;
@@ -621,4 +622,16 @@ } } -#endif /* FSYS_XFS */ +fsi_plugin_ops_t * +fsi_init_plugin (int version,fsi_plugin_t *fp,const char **name) +{ +static fsig_plugin_ops_t ops = { +FSIMAGE_PLUGIN_VERSION , + .fpo_mount = xfs_mount, + .fpo_dir = xfs_dir, + .fpo_read = xfs_read + }; + + *name ="xfs" ; +return (fsig_init (fp, &ops)); +}
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 33 lines · Marco Nenciarini
Quoted 8 lines · Stefano Stabellini
Quoted 5 lines · Marco Nenciarini
Hi,
I've ported the xfs code from grub to pygrub for our company internal use.If you find it useful fell free to merge with main code.
Can anybody test this patch and confirm it works properly?
To help you testing the patch and auditing the code, I've attached to this message the diff against xfs code in grub-0.97.
As stated before, the resulting fsimage.so works perfectly for me when installed in XCP-0.5 as
/usr/lib/fs/xfs/fsimage.soActually I've 3 Debian Squeeze machines and one Ubuntu 10.10 machine in our testing environment booting from xfs with pygrub.
The only problem I've found is that the module doesn't compile on Debian based system due to some bug in gcc code optimizer. On such a systems the compiler returns the following error:
gcc -DPIC -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99
(quoted diff) +0
-3-Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .fsys_xfs.opic.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -I../../../tools/libfsimage/common/ -Werror -fPIC -c -o fsys_xfs.opic
fsys_xfs.cfsys_xfs.c: In function ‘next_dentry’:
fsys_xfs.c:409: error: extended registers have no high halves fsys_xfs.c:409: error: extended registers have no high halves
Quoted 2 lines
The problem disappear if you turn off optimization with -O0
I've solved the compilation error on Ubuntu/Debian x86_64 (sed s/"=q"/"=Q"/), but the resulting libary doesn't works (it doesn't even recognize the XFS partition). I'll debug it during the next week.
Regards,
Marco
Signature · 2 lines
Marco Nenciarini - System manager @ Devise.IT [email protected] | http://www.devise.it
Attached there is the version of pygrub xfs support patch.
I've tested it against XCP, CentOS and latest Debian Unstable i386/amd64.
There is also my git patch queue against original grub code to show what I've done.
Regards,
Marco
Signature · 2 lines
Marco Nenciarini - System manager @ Devise.IT [email protected] | http://www.devise.it
tools/libfsimage/Makefile +1 -1
@@ -1,7 +1,7 @@ XEN_ROOT = ../.. include $(XEN_ROOT)/tools/Rules.mk -SUBDIRS-y = common ufs reiserfs iso9660 fat zfs +SUBDIRS-y = common ufs reiserfs iso9660 fat zfs xfs SUBDIRS-y += $(shell env CC="$(CC)" ./check-libext2fs) .PHONY: all clean install
tools/libfsimage/xfs/Makefile new file +13 -0
@@ -0,0 +1,13 @@ +XEN_ROOT = ../../.. + +LIB_SRCS-y = fsys_xfs.c + +FS = xfs + +.PHONY: all +all: fs-all + +.PHONY: install +install: fs-install + +include $(XEN_ROOT)/tools/libfsimage/Rules.mk
tools/libfsimage/xfs/fsys_xfs.c new file +636 -0
636 lines not on this page · raw message
tools/libfsimage/xfs/xfs.h new file +544 -0
544 lines not on this page · raw message
Quoted 1 line
From
d562baed1bf6fcec07375ad58f41e0a007c1ff4dMon Sep 17 00:00:00 2001
From: Marco Nenciarini <[email protected]>
Date: Wed, 5 Jan 2011 11:41:58 +0100
Subject: [PATCH 1/7] Original grub-0.97 code
--- fsys_xfs.c | 624 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ xfs.h | 544 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 1168 insertions(+), 0 deletions(-) create mode 100644 fsys_xfs.c create mode 100644 xfs.h
fsys_xfs.c new file +624 -0
624 lines not on this page · raw message
xfs.h new file +544 -0
544 lines not on this page · raw message
Signature · 1 line
1.7.2.3
Quoted 1 line
From
d0c201cf35b76bbebebd96fb2de4e8f2f0dffa6fMon Sep 17 00:00:00 2001
From: Marco Nenciarini <[email protected]>
Date: Wed, 5 Jan 2011 12:02:29 +0100
Subject: [PATCH 2/7] Initial porting to libfsimage's devread
--- Makefile | 13 ++++++++ fsys_xfs.c | 99 ++++++++++++++++++++++++++++++++--------------------------- 2 files changed, 67 insertions(+), 45 deletions(-) create mode 100644 Makefile
Makefile new file +13 -0
@@ -0,0 +1,13 @@ +XEN_ROOT = ../../.. + +LIB_SRCS-y = fsys_xfs.c + +FS = xfs + +.PHONY: all +all: fs-all + +.PHONY: install +install: fs-install + +include $(XEN_ROOT)/tools/libfsimage/Rules.mk
fsys_xfs.c +54 -45
295 lines not on this page · raw message
Signature · 1 line
1.7.2.3
Quoted 1 line
From
37346873ca9b221c38b22501f87bd4e75565a647Mon Sep 17 00:00:00 2001
From: Marco Nenciarini <[email protected]>
Date: Wed, 5 Jan 2011 12:24:27 +0100
Subject: [PATCH 3/7] Fix offsetof macro on 64 bit systems
--- fsys_xfs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
fsys_xfs.c +1 -1
@@ -184,7 +184,7 @@ fsb2daddr (xfs_fsblock_t fsbno) }#undef offsetof -#define offsetof (t,m) ((int)&(((t *)0)->m)) +#define offsetof (t,m) ((size_t)&(((t *)0)->m))static inline int btroot_maxrecs (fsi_file_t *ffi)
Signature · 1 line
1.7.2.3
Quoted 1 line
From
e437eac25b0b00071502846bd155052da94fccc1Mon Sep 17 00:00:00 2001
From: Marco Nenciarini <[email protected]>
Date: Wed, 5 Jan 2011 12:41:21 +0100
Subject: [PATCH 4/7] Add missing xfs_read prototype
--- fsys_xfs.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
fsys_xfs.c +3 -0
@@ -326,6 +326,9 @@ roundup8 (int n)return ((n+7 )&~7 ); } +static int +xfs_read (fsi_file_t *ffi,char *buf,int len); +static char *next_dentry (fsi_file_t *ffi,xfs_ino_t *ino) {
Signature · 1 line
1.7.2.3
Quoted 1 line
From
1c3588776d4554a73caff592f163a3c2cd879fa0Mon Sep 17 00:00:00 2001
From: Marco Nenciarini <[email protected]>
Date: Wed, 5 Jan 2011 13:18:59 +0100
Subject: [PATCH 5/7] Fix assumtion that chars are unsigned
--- fsys_xfs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
fsys_xfs.c +1 -1
@@ -368,7 +368,7 @@ next_dentry (fsi_file_t *ffi, xfs_ino_t *ino)default : namelen = sfe->namelen; *ino =sf_ino ((char *)sfe, namelen); - name = sfe->name; + name = (char *)sfe->name; sfe = (xfs_dir2_sf_entry_t *) ((char *)sfe + namelen +11 - xfs.i8param); }
Signature · 1 line
1.7.2.3
Quoted 1 line
From
20e29b6137edf8afafcb2fca0b31d6783bdab53eMon Sep 17 00:00:00 2001
From: Marco Nenciarini <[email protected]>
Date: Wed, 5 Jan 2011 13:20:21 +0100
Subject: [PATCH 6/7] Fix inline asm code to work on 64 bit patforms
--- fsys_xfs.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
fsys_xfs.c +2 -2
@@ -98,7 +98,7 @@ static inline __const__ xfs_uint16_t le16 (xfs_uint16_t x) { __asm__("xchgb %b0,%h0" \ - :"=q" (x) \ + :"=Q" (x) \ :"0" (x)); \return x; }
@@ -114,7 +114,7 @@ le32 (xfs_uint32_t x) __asm__("xchgb %b0, %h0" \"\n\troll $16, %0" \"\n\txchgb %b0, %h0" \ - :"=q" (x) :"0" (x)); + :"=Q" (x) :"0" (x));#endif return x; }
Signature · 1 line
1.7.2.3
Quoted 1 line
From
b5889a4795a3bd9a424b3f506551b95206e16991Mon Sep 17 00:00:00 2001
From: Marco Nenciarini <[email protected]>
Date: Wed, 5 Jan 2011 13:40:16 +0100
Subject: [PATCH 7/7] fix warning: type qualifiers ignored on function return type
--- fsys_xfs.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
fsys_xfs.c +3 -3
@@ -94,7 +94,7 @@ ino2offset (xfs_ino_t ino)return ino &XFS_INO_MASK (XFS_INO_OFFSET_BITS ); } -static inline __const__ xfs_uint16_t +static inline xfs_uint16_t le16 (xfs_uint16_t x) { __asm__("xchgb %b0,%h0" \
@@ -103,7 +103,7 @@ le16 (xfs_uint16_t x)return x; } -static inline __const__ xfs_uint32_t +static inline xfs_uint32_t le32 (xfs_uint32_t x) {#if 0
@@ -119,7 +119,7 @@ le32 (xfs_uint32_t x)return x; } -static inline __const__ xfs_uint64_t +static inline xfs_uint64_t le64 (xfs_uint64_t x) {xfs_uint32_t h = x >>32 ;
Signature · 1 line
1.7.2.3
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Marco Nenciarini writes ("Re: [Xen-devel] XFS support for pygrub patch"):
Quoted 5 lines
Attached there is the version of pygrub xfs support patch. I've tested it against XCP, CentOS and latest Debian Unstable i386/amd64.
There is also my git patch queue against original grub code to show what I've done.
Thanks for your contribution.
I'm afraid that the 4.1 tree is currently in feature code freeze so normally we wouldn't accept it.
However, having said that, it does look very self-contained and it might be appropriate to grant a freeze exception in this case.
Stefano, what do you think ?
Ian.
Quoted 9 lines · Ian Jackson
Marco Nenciarini writes ("Re: [Xen-devel] XFS support for pygrub patch"):
Quoted 5 lines
Attached there is the version of pygrub xfs support patch. I've tested it against XCP, CentOS and latest Debian Unstable i386/amd64.
There is also my git patch queue against original grub code to show what I've done.
Thanks for your contribution.
Quoted 7 lines
I'm afraid that the 4.1 tree is currently in feature code freeze so normally we wouldn't accept it.
However, having said that, it does look very self-contained and it might be appropriate to grant a freeze exception in this case.
Stefano, what do you think ?
It would be nice if somebody could confirm that it works properly. If you get a couple of people confirming that it works I would consider applying it.
tested on a Debian Squeeze amd64 dom0 with the xen packages as shipped by Squeeze (Xen 4.0.1)
I just added the patch to the debian sources of Xen and rebuild a deb packages using the debian framework.
I can now boot PVMs using pygrub even on machines with xfs boot/rootfs.
--
View this message in context: http://xen.1045712.n5.nabble.com/XFS-support-for-pygrub-patch-tp3281142p4387931.html
Sent from the Xen - Dev mailing list archive at Nabble.com.