Re: [Patch] Btrfs: use BTRFS_VOL_NAME_MAX for struct btrfs_ioctl_vol_args

2009-01-21 Thread Chris Mason
On Mon, 2009-01-19 at 21:12 +0800, Américo Wang wrote: On Mon, Jan 19, 2009 at 08:03:37AM -0500, Josef Bacik wrote: On Mon, Jan 19, 2009 at 08:57:32PM +0800, Américo Wang wrote: I found userspace tool, btrfsctl, uses BTRFS_VOL_NAME_MAX, and it also looks that this one is more proper.

[Patch] Btrfs: use BTRFS_VOL_NAME_MAX for struct btrfs_ioctl_vol_args

2009-01-19 Thread Américo Wang
I found userspace tool, btrfsctl, uses BTRFS_VOL_NAME_MAX, and it also looks that this one is more proper. Kill BTRFS_PATH_NAME_MAX since no one will use it. Signed-off-by: WANG Cong wangc...@zeuux.org Cc: Chris Mason chris.ma...@oracle.com --- diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c

Re: [Patch] Btrfs: use BTRFS_VOL_NAME_MAX for struct btrfs_ioctl_vol_args

2009-01-19 Thread Josef Bacik
On Mon, Jan 19, 2009 at 08:57:32PM +0800, Américo Wang wrote: I found userspace tool, btrfsctl, uses BTRFS_VOL_NAME_MAX, and it also looks that this one is more proper. Kill BTRFS_PATH_NAME_MAX since no one will use it. Nope, BTRFS_PATH_NAME_MAX is specifically used for the ioctl stuff,