Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kenbell
Copy link

@kenbell kenbell commented Dec 21, 2010

I noticed that opening block devices (such as 'dev/sr0' for a CD-ROM) using FileStream, the length of the stream is always indicated as Zero bytes - even though it is possible to read from the stream. Seek with SeekOrigin.End also doesn't work properly.

This change causes FileStream.Length to return the length of the content of block devices. The change is specific to Linux - I've guarded the change, so that on other platforms this should be a no-op.

FileStream.Length for a block device (such as '/dev/sr0') now returns actual size, rather than Zero on Linux.
@migueldeicaza
Copy link
Contributor

Applied.

Thanks!

atsushieno pushed a commit that referenced this pull request Aug 1, 2011
atsushieno pushed a commit that referenced this pull request Aug 1, 2011
…rn value.

Conflicts:

	mcs/class/System.ServiceModel/System.ServiceModel.Description/MessagePartDescription.cs
atsushieno pushed a commit that referenced this pull request Aug 2, 2011
atsushieno pushed a commit that referenced this pull request Aug 2, 2011
slluis added a commit that referenced this pull request Oct 26, 2011
When the schema for is not explicitly set for an element, get the default form specified in the schema, and use 'unqualified' if there is no other default. This fixes bug #41.
slluis added a commit that referenced this pull request Oct 26, 2011
When the schema for is not explicitly set for an element, get the default form specified in the schema, and use 'unqualified' if there is no other default. This fixes bug #41.
slluis added a commit that referenced this pull request May 22, 2012
When the schema for is not explicitly set for an element, get the default form specified in the schema, and use 'unqualified' if there is no other default. This fixes bug #41.
natosha referenced this pull request in natosha/mono Jan 24, 2013
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants