Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 60270 | Differences between
and this patch

Collapse All | Expand All

(-)TODO (+3 lines)
Lines 1-5 Link Here
1
TODO for shfs:
1
TODO for shfs:
2
2
3
* revise 2.6 kernel module install (according to lk post)
4
* more comprehensive error messages
5
* local uid preserve..
3
* rewrite stack allocations -> kmalloc
6
* rewrite stack allocations -> kmalloc
4
* sftp server code support
7
* sftp server code support
5
* autoconf
8
* autoconf
(-)shfs/Linux-2.4/shell.c (-3 / +3 lines)
Lines 961-971 Link Here
961
961
962
	s = info->sockbuf;
962
	s = info->sockbuf;
963
	if ((p = strsep(&s, " ")))
963
	if ((p = strsep(&s, " ")))
964
		attr->f_blocks = simple_strtoull(p, NULL, 10);
964
		attr->f_blocks = simple_strtoull(p, NULL, 10) >> 2;
965
	if ((p = strsep(&s, " ")))
965
	if ((p = strsep(&s, " ")))
966
		attr->f_bfree = attr->f_blocks - simple_strtoull(p, NULL, 10);
966
		attr->f_bfree = attr->f_blocks - (simple_strtoull(p, NULL, 10) >> 2);
967
	if ((p = strsep(&s, " ")))
967
	if ((p = strsep(&s, " ")))
968
		attr->f_bavail = simple_strtoull(p, NULL, 10);
968
		attr->f_bavail = simple_strtoull(p, NULL, 10) >> 2;
969
969
970
	result = sock_readln(info, info->sockbuf, SOCKBUF_SIZE);
970
	result = sock_readln(info, info->sockbuf, SOCKBUF_SIZE);
971
	if (result < 0)
971
	if (result < 0)
(-)shfs/Linux-2.6/shell.c (-3 / +3 lines)
Lines 974-984 Link Here
974
974
975
	s = info->sockbuf;
975
	s = info->sockbuf;
976
	if ((p = strsep(&s, " ")))
976
	if ((p = strsep(&s, " ")))
977
		attr->f_blocks = simple_strtoull(p, NULL, 10);
977
		attr->f_blocks = simple_strtoull(p, NULL, 10) >> 2;
978
	if ((p = strsep(&s, " ")))
978
	if ((p = strsep(&s, " ")))
979
		attr->f_bfree = attr->f_blocks - simple_strtoull(p, NULL, 10);
979
		attr->f_bfree = attr->f_blocks - (simple_strtoull(p, NULL, 10) >> 2);
980
	if ((p = strsep(&s, " ")))
980
	if ((p = strsep(&s, " ")))
981
		attr->f_bavail = simple_strtoull(p, NULL, 10);
981
		attr->f_bavail = simple_strtoull(p, NULL, 10) >> 2;
982
982
983
	result = sock_readln(info, info->sockbuf, SOCKBUF_SIZE);
983
	result = sock_readln(info, info->sockbuf, SOCKBUF_SIZE);
984
	if (result < 0)
984
	if (result < 0)

Return to bug 60270