Re: [PATCH] CIFS: Fix incorrect max RFC1002 write size value

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

 



2011/10/8 Steve French <smfrench@xxxxxxxxx>:
> Is there a recreation scenario for this.  Your change makes sense but
> is it possible to hit?
>

Yes, it is. Assuming that we mounted share into /mnt/share with direct
mount option, the following code reproduces it:

import os
f = os.open('/mnt/share/test_file', os.O_RDWR | os.O_CREAT)
_str = ''.join('q' for _ in xrange(150000))
os.write(f, _str)

--
Best regards,
Pavel Shilovsky.
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux