lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sat, 17 May 2008 20:25:31 +0200 (CEST)
From:	Jan Engelhardt <jengelh@...ozas.de>
To:	"P.V.Anthony" <pvantony@...gnet.com.sg>
cc:	"J. Bruce Fields" <bfields@...ldses.org>,
	linux-kernel@...r.kernel.org
Subject: Re: Solved - How to change the FSINFO for nfsd?


On Saturday 2008-05-17 19:57, P.V.Anthony wrote:
>
> pv at videoserver2 ~ $ diff -ruN
> /usr/src/linux-2.6.22-gentoo-r8/fs/nfsd/nfs3proc.c.org
> /usr/src/linux-2.6.22-gentoo-r8/fs/nfsd/nfs3proc.c
> --- /usr/src/linux-2.6.22-gentoo-r8/fs/nfsd/nfs3proc.c.org 2008-05-09
> 13:07:19.000000000 +0800
> +++ /usr/src/linux-2.6.22-gentoo-r8/fs/nfsd/nfs3proc.c 2008-05-13
> 23:54:56.000000000 +0800
> @@ -555,7 +555,7 @@
> resp->f_wtpref = max_blocksize;
> resp->f_wtmult = PAGE_SIZE;
> resp->f_dtpref = PAGE_SIZE;
> - resp->f_maxfilesize = ~(u32) 0;
> + resp->f_maxfilesize = 0xffffffffffffffff;

Hm, you could have just changed u32 to u64 :-)

> resp->f_properties = NFS3_FSF_DEFAULT;
>
> nfserr = fh_verify(rqstp, &argp->fh, 0, MAY_NOP);
> @@ -570,7 +570,7 @@
> if (sb->s_magic == 0x4d44 /* MSDOS_SUPER_MAGIC */) {
> resp->f_properties = NFS3_FSF_BILLYBOY;
> }
> - resp->f_maxfilesize = sb->s_maxbytes;
> + resp->f_maxfilesize = 0xffffffffffffffff;
> }
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ