Enable writing after the 2G boundary

This patch fixes a bug in readwrite.c which truncated the 'from' field
in nbd requests.  It was casting them down from an off64_t to an int.
This commit is contained in:
Alex Young
2012-07-12 18:01:10 +01:00
parent cef2dcaad2
commit 2e4e592c08
6 changed files with 55 additions and 19 deletions

View File

@@ -79,6 +79,10 @@ class Environment
end
def truncate1( size )
system "truncate -s #{size} #{@filename1}"
end
def listening_ports
`netstat -ltn`.