Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 May 2008 12:51:53 -0700
From:      Sean Bruno <sbruno@miralink.com>
To:        Marauder <marauder@pi.avalonnetworks.us>
Cc:        freebsd-geom@freebsd.org
Subject:   Re: Unable to write to drive
Message-ID:  <4835CED9.8090901@miralink.com>
In-Reply-To: <48357420.5689.0089.0@pi.avalonnetworks.us>
References:  <48357420.5689.0089.0@pi.avalonnetworks.us>

next in thread | previous in thread | raw e-mail | index | archive | help

Marauder wrote:
> Hi all,
>
> I have a problem that is driving me crazy. Hopefully I'm submitting this question to the correct place. 
>
> My problem is... I have opened the drive /dev/ad0 with open("/dev/ad0", O_WRONLY) and it return's a valid file descriptor. The I attempt to write using the file descriptor returned. The write fails with errno=22 (EINVAL)
>
> I have attempted to first open /dev/io with READ/WRITE access to see if that help's. No luck
> I have attempted to lock the section of the drive I would like to write to with lockf. No luck
>
> If anybody has any idea's or suggestions I would greatly appreciate them.
>
> Thanx
>
>
> _______________________________________________
> freebsd-geom@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-geom
> To unsubscribe, send any mail to "freebsd-geom-unsubscribe@freebsd.org"
>   
Is the disk /dev/ad0 in any kind of geom based device?  That would keep 
you from writing I think.

Also, have you tried "O_RDWR" as well?



-- 
Sean Bruno
MiraLink Corporation
6015 NE 80th Ave, Ste 100
Portland, OR 97218
Phone 503-621-5143
Fax 503-621-5199




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4835CED9.8090901>