bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cp/mv/dd to handle SIGXFSZ?


From: Paul Eggert
Subject: Re: cp/mv/dd to handle SIGXFSZ?
Date: Tue, 10 Apr 2007 09:25:53 -0700
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

Micah Cowan <address@hidden> writes:

> it seems that
> write() /is/ in fact required to return EFBIG in this case. I'll go bug
> the kernel guys, then. :)

Thanks.  That is a much better solution.  That is what Solaris does,
for example:

$ echo foo | dd bs=1 of=/var/tmp/t seek=1099511627774
dd: writing `/var/tmp/t': File too large
2+0 records in
1+0 records out
1 byte (1 B) copied, 0.0197642 s, 0.1 kB/s
$ ls -l /var/tmp/t
-rw-rw-r-- 1 eggert faculty 1099511627775 2007-04-10 09:23 /var/tmp/t

This is on a file system where file sizes must be less than 1 TiB.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]