Delta-vroot-hack01.diff

From Linix VServer
Revision as of 00:12, 11 November 2025 by 192.168.65.1 (talk) (Restored content from Wayback Machine)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

diff -Nurp --exclude '*.orig' linux-2.6.17.13-vs2.1.1-rc34/fs/stat.c linux-2.6.17.13-vs2.1.1-rc34.vroot/fs/stat.c --- linux-2.6.17.13-vs2.1.1-rc34/fs/stat.c 2006-09-15 17:26:45.000000000 +0200 +++ linux-2.6.17.13-vs2.1.1-rc34.vroot/fs/stat.c 2006-09-15 20:17:33.000000000 +0200 @@ -41,7 +41,7 @@ void generic_fillattr(struct inode *inod if ((MAJOR(inode->i_rdev) == VROOT_MAJOR) && !vx_check(0, VX_ADMIN)) { struct block_device *bdev = bdget(inode->i_rdev); - if (bdev) { + if (bdev && vroot_get_real_bdev) { struct block_device *bdnew = vroot_get_real_bdev(bdev); if (bdnew && !IS_ERR(bdnew)) {