/[vps]/vserver-sources/2.1.0_rc8-r1/4912_vs2.1.0-rc8-vroot-fix03.patch
Gentoo

Contents of /vserver-sources/2.1.0_rc8-r1/4912_vs2.1.0-rc8-vroot-fix03.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 101 - (show annotations) (download)
Fri Nov 25 13:17:12 2005 UTC (12 years, 11 months ago) by phreak
File size: 847 byte(s)
Bumping vserver-sources wrt. Linux-2.6.14.3
1 diff -NurpP --minimal linux-2.6.14.2-vs2.1.0-rc8/fs/quota.c linux-2.6.14.2-vs2.1.0-rc8.1/fs/quota.c
2 --- linux-2.6.14.2-vs2.1.0-rc8/fs/quota.c 2005-11-20 22:04:16 +0100
3 +++ linux-2.6.14.2-vs2.1.0-rc8.1/fs/quota.c 2005-11-22 01:28:58 +0100
4 @@ -398,13 +398,16 @@ asmlinkage long sys_quotactl(unsigned in
5 putname(tmp);
6 if (IS_ERR(bdev))
7 return PTR_ERR(bdev);
8 -#ifdef CONFIG_BLK_DEV_VROOT
9 - if (bdev && bdev->bd_inode && vroot_get_real_bdev &&
10 +#if defined(CONFIG_BLK_DEV_VROOT) || defined(CONFIG_BLK_DEV_VROOT_MODULE)
11 + if (bdev && bdev->bd_inode &&
12 imajor(bdev->bd_inode) == VROOT_MAJOR) {
13 struct block_device *bdnew = (void *)-EINVAL;
14
15 if (vroot_get_real_bdev)
16 bdnew = vroot_get_real_bdev(bdev);
17 + else
18 + vxdprintk(VXD_CBIT(misc, 0),
19 + "vroot_get_real_bdev not set");
20
21 bdput(bdev);
22 if (IS_ERR(bdnew))

  ViewVC Help
Powered by ViewVC 1.1.20