linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Updated The pNFS Developmental repository
@ 2010-10-05 12:43 Steve Dickson
  0 siblings, 0 replies; 9+ messages in thread
From: Steve Dickson @ 2010-10-05 12:43 UTC (permalink / raw)
  To: Linux NFS Mailing list

Hello,

I've just updated the nfs-utils rpms in the pNFS development 
repository to include:
    * The latest nfs-utils release (1.2.3)
    * The latest pnfs nfs-utils bits

These rpms will now install the blkmapd init script
and the /etc/modprobe.d/nfsv41 file which hopeful get the 
correct modules installed on the client.

Instructions on how to install and use these kernels are at:
http://wiki.linux-nfs.org/wiki/index.php/Fedora_pNFS_Client_Setup

 If/when bugs are found with these rpms please enter them
in to the NFS Bugzilla Main Page at:
    https://bugzilla.linux-nfs.org/index.cgi

Please use the "pNFS" keyword.. 

Any question or issues please feel free to contact me... 

steved.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Updated the pNFS Developmental Repository
@ 2010-11-09 20:16 Steve Dickson
  2010-11-10 14:45 ` Steve Dickson
  0 siblings, 1 reply; 9+ messages in thread
From: Steve Dickson @ 2010-11-09 20:16 UTC (permalink / raw)
  To: Linux NFS Mailing list

Hello,

I've just updated the kernel and nfs-utils rpms in the pNFS development 
repository to include:
    * The latest nfs-utils release (pnfs-utils-1-2-4-rc1)
    * The latest pNFS kernel bits (pnfs-all-2.6.36-2010-11-03)

Note: In this update there is only one kernel type (fc15)
due to the fact both Fedora 13 and 14 are still on 2.6.35
kernels which means the pnfs-all-2.6.36 patch will not apply 
cleaning. I have booted this new kernel on both Fedora 13
and 14 without issue... 

These nfs-utils rpms will now install the blkmapd init script
and the /etc/modprobe.d/nfsv41.conf file which hopeful 
get the correct modules installed on the client.

Instructions on how to install and use these kernels are at:
http://wiki.linux-nfs.org/wiki/index.php/Fedora_pNFS_Client_Setup

 If/when bugs are found with these rpms please enter them
in to the NFS Bugzilla Main Page at:
    https://bugzilla.linux-nfs.org/index.cgi

Please use the "pNFS" keyword.. 

Any question or issues please feel free to contact me... 

steved.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Updated the pNFS Developmental Repository
  2010-11-09 20:16 Steve Dickson
@ 2010-11-10 14:45 ` Steve Dickson
  0 siblings, 0 replies; 9+ messages in thread
From: Steve Dickson @ 2010-11-10 14:45 UTC (permalink / raw)
  To: Linux NFS Mailing list

The repo is at http://steved.fedorapeople.org/repos/pnfs/
The repo file is at http://steved.fedorapeople.org/pnfs.repo

steved.

On 11/09/2010 03:16 PM, Steve Dickson wrote:
> Hello,
> 
> I've just updated the kernel and nfs-utils rpms in the pNFS development 
> repository to include:
>     * The latest nfs-utils release (pnfs-utils-1-2-4-rc1)
>     * The latest pNFS kernel bits (pnfs-all-2.6.36-2010-11-03)
> 
> Note: In this update there is only one kernel type (fc15)
> due to the fact both Fedora 13 and 14 are still on 2.6.35
> kernels which means the pnfs-all-2.6.36 patch will not apply 
> cleaning. I have booted this new kernel on both Fedora 13
> and 14 without issue... 
> 
> These nfs-utils rpms will now install the blkmapd init script
> and the /etc/modprobe.d/nfsv41.conf file which hopeful 
> get the correct modules installed on the client.
> 
> Instructions on how to install and use these kernels are at:
> http://wiki.linux-nfs.org/wiki/index.php/Fedora_pNFS_Client_Setup
> 
>  If/when bugs are found with these rpms please enter them
> in to the NFS Bugzilla Main Page at:
>     https://bugzilla.linux-nfs.org/index.cgi
> 
> Please use the "pNFS" keyword.. 
> 
> Any question or issues please feel free to contact me... 
> 
> steved.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Updated the pNFS Developmental Repository
@ 2011-01-28 21:22 Steve Dickson
  0 siblings, 0 replies; 9+ messages in thread
From: Steve Dickson @ 2011-01-28 21:22 UTC (permalink / raw)
  To: Linux NFS Mailing list

Hello,

I've just updated the kernel and nfs-utils rpms in the pNFS development 
repository to include:
    * The latest nfs-utils release (pnfs-nfs-utils-1-2-4-rc5)
    * The latest pNFS kernel bits (pnfs-all-2.6.38-rc2-2011-01-27)

The Fedora 13 and 14 repository were NOT updated, just the devel.

Instructions on how to install and use these kernels are at:
http://wiki.linux-nfs.org/wiki/index.php/Fedora_pNFS_Client_Setup

 If/when bugs are found with these rpms please enter them
in to the NFS Bugzilla Main Page at:
    https://bugzilla.linux-nfs.org/index.cgi

Please use the "pNFS" keyword.. 

Any question or issues please feel free to contact me... 

steved.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Updated the pNFS Developmental Repository
@ 2011-02-04 14:47 Steve Dickson
  0 siblings, 0 replies; 9+ messages in thread
From: Steve Dickson @ 2011-02-04 14:47 UTC (permalink / raw)
  To: Linux NFS Mailing list

Hello,

I've just updated the kernel rpm in the pNFS development repository to include:
    * The latest pNFS kernel bits (pnfs-all-2.6.38-rc3-2011-02-03)
Which is basically the wave3 code with a few bug fixes.

The nfs-utils release stayed the same (pnfs-nfs-utils-1-2-4-rc5) and
again, the Fedora 13 and 14 repository were NOT updated, just the devel.

Instructions on how to install and use these kernels are at:
http://wiki.linux-nfs.org/wiki/index.php/Fedora_pNFS_Client_Setup

 If/when bugs are found with these rpms please enter them
in to the NFS Bugzilla Main Page at:
    https://bugzilla.linux-nfs.org/index.cgi

Please use the "pNFS" keyword.. 

Any question or issues please feel free to contact me... 

steved.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Updated the pNFS Developmental Repository
@ 2011-03-26 18:08 Steve Dickson
  2011-04-07 15:38 ` Jim Rees
  0 siblings, 1 reply; 9+ messages in thread
From: Steve Dickson @ 2011-03-26 18:08 UTC (permalink / raw)
  To: Linux NFS Mailing list

Hello,

I've just updated the kernel and nfs-utils rpms in the pNFS development 
repository to include:
    * The latest nfs-utils release (pnfs-nfs-utils-1-2-4-rc5)
    * The latest pNFS kernel bits (pnfs-all-2.6.38-2011-03-25)

These latest bits are *only* in the Fedora 15 repo. The Fedora 13, 14 
repos remained the same and the devel (or rawhide) repo was removed.

Instructions on how to install and use these kernels are at:
http://wiki.linux-nfs.org/wiki/index.php/Fedora_pNFS_Client_Setup

 If/when bugs are found with these rpms please enter them
in to the NFS Bugzilla Main Page at:
    https://bugzilla.linux-nfs.org/index.cgi

Please use the "pNFS" keyword.. 

Any question or issues please feel free to contact me... 

steved.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Updated the pNFS Developmental Repository
  2011-03-26 18:08 Updated the pNFS Developmental Repository Steve Dickson
@ 2011-04-07 15:38 ` Jim Rees
  2011-04-07 19:05   ` Steve Dickson
  0 siblings, 1 reply; 9+ messages in thread
From: Jim Rees @ 2011-04-07 15:38 UTC (permalink / raw)
  To: Steve Dickson; +Cc: peter honeyman, Linux NFS Mailing list

Steve Dickson wrote:

  Hello,
  
  I've just updated the kernel and nfs-utils rpms in the pNFS development 
  repository to include:
      * The latest nfs-utils release (pnfs-nfs-utils-1-2-4-rc5)
      * The latest pNFS kernel bits (pnfs-all-2.6.38-2011-03-25)
  
  These latest bits are *only* in the Fedora 15 repo. The Fedora 13, 14 
  repos remained the same and the devel (or rawhide) repo was removed.

Do these builds include the following patch?  I sent it to the list on Feb
23 but don't see it in Benny's repo.

>From d7be3ca498142e1f50a7a4120ac890f2b2e4e2a2 Mon Sep 17 00:00:00 2001
From: Jim Rees <rees@umich.edu>
Date: Tue, 22 Feb 2011 18:13:20 -0500
Subject: [PATCH] fix stripe device size calculation for layouts not a multiple of stripe unit

If a complex layout has a stripe volume in it, and that volume has a size
that is not a multiple of the stripe unit, the total layout size will be
wrong because it is based on the truncated stripe volume size.  Fix this by
using the truncated size for making the mapped device, and the untruncated
size in the table for subsequent devices to use.

Also remove the warning for stripe volumes not a multiple of the stripe
width, since this is legal and apparently common.

While we're at it, use variable names consistent with the terminology in
rfc5661 section 13.2.

Signed-off-by: Jim Rees <rees@umich.edu>
---
 utils/blkmapd/device-process.c |   10 ++++------
 utils/blkmapd/dm-device.c      |   21 +++++----------------
 2 files changed, 9 insertions(+), 22 deletions(-)

diff --git a/utils/blkmapd/device-process.c b/utils/blkmapd/device-process.c
index 9a78457..79e596d 100644
--- a/utils/blkmapd/device-process.c
+++ b/utils/blkmapd/device-process.c
@@ -295,10 +295,10 @@ decode_blk_volume(uint32_t **pp, uint32_t *end, struct bl_volume *vols, int voln
 	case BLOCK_VOLUME_STRIPE:
 		BLK_READBUF(p, end, 8);
 		READ_SECTOR(vol->param.bv_stripe_unit);
-		off_t chunksize = vol->param.bv_stripe_unit;
+		off_t stripe_unit = vol->param.bv_stripe_unit;
 		/* Check limitations imposed by device-mapper */
-		if ((chunksize & (chunksize - 1)) != 0
-		    || chunksize < (off_t) (PAGE_SIZE >> 9))
+		if ((stripe_unit & (stripe_unit - 1)) != 0
+		    || stripe_unit < (off_t) (PAGE_SIZE >> 9))
 			return -EIO;
 		BLK_READBUF(p, end, 4);
 		READ32(vol->bv_vol_n);
@@ -306,7 +306,7 @@ decode_blk_volume(uint32_t **pp, uint32_t *end, struct bl_volume *vols, int voln
 			return -EIO;
 		*array_cnt = vol->bv_vol_n;
 		BL_LOG_INFO("%s: stripe %d nvols=%d unit=%ld\n", __func__, voln,
-			    vol->bv_vol_n, (long)chunksize);
+			    vol->bv_vol_n, (long)stripe_unit);
 		status = set_vol_array(&p, end, vols, voln);
 		if (status)
 			return status;
@@ -317,9 +317,7 @@ decode_blk_volume(uint32_t **pp, uint32_t *end, struct bl_volume *vols, int voln
 				return -EIO;
 			}
 		}
-		/* Truncate size to a stripe unit boundary */
 		vol->bv_size = vol->bv_vols[0]->bv_size * vol->bv_vol_n;
-		vol->bv_size &= ~(chunksize - 1);
 		break;
 	case BLOCK_VOLUME_CONCAT:
 		BLK_READBUF(p, end, 4);
diff --git a/utils/blkmapd/dm-device.c b/utils/blkmapd/dm-device.c
index c4fe4e9..0f4f148 100644
--- a/utils/blkmapd/dm-device.c
+++ b/utils/blkmapd/dm-device.c
@@ -369,7 +369,7 @@ static int dm_device_exists(char *dev_name)
 /* TODO: check the value for DM_DEV_NAME_LEN, DM_TYPE_LEN, DM_PARAMS_LEN */
 uint64_t dm_device_create(struct bl_volume *vols, int num_vols)
 {
-	uint64_t size, stripe_unit, stripe_size, nstripes, dev = 0;
+	uint64_t size, stripe_unit, dev = 0;
 	unsigned int count = dev_count;
 	int volnum, i, pos;
 	struct bl_volume *node;
@@ -414,21 +414,10 @@ uint64_t dm_device_create(struct bl_volume *vols, int num_vols)
 			if (!table)
 				goto out;
 			table->offset = 0;
-			stripe_unit = node->param.bv_stripe_unit << 9;
-			stripe_size = stripe_unit * node->bv_vol_n;
-			nstripes = node->bv_size * node->bv_vol_n / stripe_size;
-			/* Make sure total size is a multiple of stripe size */
-			size = node->bv_size;
-			if (size % stripe_size != 0) {
-				/* XXX Should this be an error? */
-				BL_LOG_WARNING(
-					"%s: %d units of %llu bytes is not a multiple of %lld stripe size\n",
-					__func__, node->bv_vol_n,
-					(long long unsigned) node->bv_size,
-					(long long unsigned) stripe_size);
-				size = nstripes * stripe_size;
-			}
-			table->size = size;
+			/* Truncate size to a stripe unit boundary */
+			stripe_unit = node->param.bv_stripe_unit;
+			table->size =
+			    node->bv_size - (node->bv_size % stripe_unit);
 			strcpy(table->target_type, "striped");
 			sprintf(table->params, "%d %llu %n", node->bv_vol_n,
 				(long long unsigned) stripe_unit, &pos);
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: Updated the pNFS Developmental Repository
  2011-04-07 15:38 ` Jim Rees
@ 2011-04-07 19:05   ` Steve Dickson
  2011-04-07 19:55     ` Jim Rees
  0 siblings, 1 reply; 9+ messages in thread
From: Steve Dickson @ 2011-04-07 19:05 UTC (permalink / raw)
  To: Jim Rees; +Cc: peter honeyman, Linux NFS Mailing list



On 04/07/2011 11:38 AM, Jim Rees wrote:
> Steve Dickson wrote:
> 
>   Hello,
>   
>   I've just updated the kernel and nfs-utils rpms in the pNFS development 
>   repository to include:
>       * The latest nfs-utils release (pnfs-nfs-utils-1-2-4-rc5)
>       * The latest pNFS kernel bits (pnfs-all-2.6.38-2011-03-25)
>   
>   These latest bits are *only* in the Fedora 15 repo. The Fedora 13, 14 
>   repos remained the same and the devel (or rawhide) repo was removed.
> 
> Do these builds include the following patch?  I sent it to the list on Feb
> 23 but don't see it in Benny's repo.
If they its not in Benny repo, then they are not in this release....

steved.

> 
> From d7be3ca498142e1f50a7a4120ac890f2b2e4e2a2 Mon Sep 17 00:00:00 2001
> From: Jim Rees <rees@umich.edu>
> Date: Tue, 22 Feb 2011 18:13:20 -0500
> Subject: [PATCH] fix stripe device size calculation for layouts not a multiple of stripe unit
> 
> If a complex layout has a stripe volume in it, and that volume has a size
> that is not a multiple of the stripe unit, the total layout size will be
> wrong because it is based on the truncated stripe volume size.  Fix this by
> using the truncated size for making the mapped device, and the untruncated
> size in the table for subsequent devices to use.
> 
> Also remove the warning for stripe volumes not a multiple of the stripe
> width, since this is legal and apparently common.
> 
> While we're at it, use variable names consistent with the terminology in
> rfc5661 section 13.2.
> 
> Signed-off-by: Jim Rees <rees@umich.edu>
> ---
>  utils/blkmapd/device-process.c |   10 ++++------
>  utils/blkmapd/dm-device.c      |   21 +++++----------------
>  2 files changed, 9 insertions(+), 22 deletions(-)
> 
> diff --git a/utils/blkmapd/device-process.c b/utils/blkmapd/device-process.c
> index 9a78457..79e596d 100644
> --- a/utils/blkmapd/device-process.c
> +++ b/utils/blkmapd/device-process.c
> @@ -295,10 +295,10 @@ decode_blk_volume(uint32_t **pp, uint32_t *end, struct bl_volume *vols, int voln
>  	case BLOCK_VOLUME_STRIPE:
>  		BLK_READBUF(p, end, 8);
>  		READ_SECTOR(vol->param.bv_stripe_unit);
> -		off_t chunksize = vol->param.bv_stripe_unit;
> +		off_t stripe_unit = vol->param.bv_stripe_unit;
>  		/* Check limitations imposed by device-mapper */
> -		if ((chunksize & (chunksize - 1)) != 0
> -		    || chunksize < (off_t) (PAGE_SIZE >> 9))
> +		if ((stripe_unit & (stripe_unit - 1)) != 0
> +		    || stripe_unit < (off_t) (PAGE_SIZE >> 9))
>  			return -EIO;
>  		BLK_READBUF(p, end, 4);
>  		READ32(vol->bv_vol_n);
> @@ -306,7 +306,7 @@ decode_blk_volume(uint32_t **pp, uint32_t *end, struct bl_volume *vols, int voln
>  			return -EIO;
>  		*array_cnt = vol->bv_vol_n;
>  		BL_LOG_INFO("%s: stripe %d nvols=%d unit=%ld\n", __func__, voln,
> -			    vol->bv_vol_n, (long)chunksize);
> +			    vol->bv_vol_n, (long)stripe_unit);
>  		status = set_vol_array(&p, end, vols, voln);
>  		if (status)
>  			return status;
> @@ -317,9 +317,7 @@ decode_blk_volume(uint32_t **pp, uint32_t *end, struct bl_volume *vols, int voln
>  				return -EIO;
>  			}
>  		}
> -		/* Truncate size to a stripe unit boundary */
>  		vol->bv_size = vol->bv_vols[0]->bv_size * vol->bv_vol_n;
> -		vol->bv_size &= ~(chunksize - 1);
>  		break;
>  	case BLOCK_VOLUME_CONCAT:
>  		BLK_READBUF(p, end, 4);
> diff --git a/utils/blkmapd/dm-device.c b/utils/blkmapd/dm-device.c
> index c4fe4e9..0f4f148 100644
> --- a/utils/blkmapd/dm-device.c
> +++ b/utils/blkmapd/dm-device.c
> @@ -369,7 +369,7 @@ static int dm_device_exists(char *dev_name)
>  /* TODO: check the value for DM_DEV_NAME_LEN, DM_TYPE_LEN, DM_PARAMS_LEN */
>  uint64_t dm_device_create(struct bl_volume *vols, int num_vols)
>  {
> -	uint64_t size, stripe_unit, stripe_size, nstripes, dev = 0;
> +	uint64_t size, stripe_unit, dev = 0;
>  	unsigned int count = dev_count;
>  	int volnum, i, pos;
>  	struct bl_volume *node;
> @@ -414,21 +414,10 @@ uint64_t dm_device_create(struct bl_volume *vols, int num_vols)
>  			if (!table)
>  				goto out;
>  			table->offset = 0;
> -			stripe_unit = node->param.bv_stripe_unit << 9;
> -			stripe_size = stripe_unit * node->bv_vol_n;
> -			nstripes = node->bv_size * node->bv_vol_n / stripe_size;
> -			/* Make sure total size is a multiple of stripe size */
> -			size = node->bv_size;
> -			if (size % stripe_size != 0) {
> -				/* XXX Should this be an error? */
> -				BL_LOG_WARNING(
> -					"%s: %d units of %llu bytes is not a multiple of %lld stripe size\n",
> -					__func__, node->bv_vol_n,
> -					(long long unsigned) node->bv_size,
> -					(long long unsigned) stripe_size);
> -				size = nstripes * stripe_size;
> -			}
> -			table->size = size;
> +			/* Truncate size to a stripe unit boundary */
> +			stripe_unit = node->param.bv_stripe_unit;
> +			table->size =
> +			    node->bv_size - (node->bv_size % stripe_unit);
>  			strcpy(table->target_type, "striped");
>  			sprintf(table->params, "%d %llu %n", node->bv_vol_n,
>  				(long long unsigned) stripe_unit, &pos);

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Updated the pNFS Developmental Repository
  2011-04-07 19:05   ` Steve Dickson
@ 2011-04-07 19:55     ` Jim Rees
  0 siblings, 0 replies; 9+ messages in thread
From: Jim Rees @ 2011-04-07 19:55 UTC (permalink / raw)
  To: Steve Dickson; +Cc: peter honeyman, Linux NFS Mailing list

Steve Dickson wrote:

  > Do these builds include the following patch?  I sent it to the list on Feb
  > 23 but don't see it in Benny's repo.
  If they its not in Benny repo, then they are not in this release....

Looks like it is in.  My mistake.  I think I did a fetch but forgot to reset
and/or merge.  Sorry for the noise.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-04-07 19:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-26 18:08 Updated the pNFS Developmental Repository Steve Dickson
2011-04-07 15:38 ` Jim Rees
2011-04-07 19:05   ` Steve Dickson
2011-04-07 19:55     ` Jim Rees
  -- strict thread matches above, loose matches on Subject: below --
2011-02-04 14:47 Steve Dickson
2011-01-28 21:22 Steve Dickson
2010-11-09 20:16 Steve Dickson
2010-11-10 14:45 ` Steve Dickson
2010-10-05 12:43 Updated The pNFS Developmental repository Steve Dickson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).