[Linux-cluster] GFS 2Tb limit

Joel Becker Joel.Becker at oracle.com
Thu Sep 2 20:05:50 UTC 2004


On Thu, Sep 02, 2004 at 01:49:37PM -0500, Ken Preslan wrote:
> The first ioctl() below is supposed to be BLKGETSIZE64, but the ioctl
> number is wrong and the ioctl fails.  So, iddev tries BLKGETSIZE, which
> can't encode the device size in a long and returns EFBIG.

	Why on earth isn't it using lseek64() for this?

	uint64_t size = lseek64(disk_fd, 0ULL, SEEK_END);

Joel
-- 

Life's Little Instruction Book #232

	"Keep your promises."

Joel Becker
Senior Member of Technical Staff
Oracle Corporation
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127




More information about the Linux-cluster mailing list