Mate Szarvas
|
Re: Partial files being create?
|
Mate Szarvas
08/12/2011 11:34 AM
post88077
|
Re: Partial files being create?
> Is there any guidance on how to set/clear this hold flag using devctl?
There is a sample here:
http://www.qnx.com/developers/docs/6.4.1/neutrino/user_guide/fsystems.html#Q
NX6_snapshots
On 11-08-12 11:27 AM, "Robert Murrell" <community-noreply@qnx.com> wrote:
> Great. This isn't a problem under FAT file systems, other than lost clusters
> which are easily recovered.
>
> Now for the next questions:
>
> Does the QNX 6 filesystem need a new IPL? We are using a custom ipl-diskpc2.
>
> It looks like I use the devctl function to programmatically do what chattr is
> doing. Is there any guidance on how to set/clear this hold flag using devctl?
>
> The section on "Required properties of the device" is unclear. Will the QNX 6
> filesystem work with a Compact Flash card?
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post88076
>
|
|
|
David Sarrazin
|
RE: RE: Partial files being create?
|
David Sarrazin
08/12/2011 1:09 PM
post88080
|
RE: RE: Partial files being create?
Lost clusters under FAT are the same problem, the file is not
complete/incorrect. It's not possible to recover those clusters if the
boot image is damaged.
A colleague brought up a good point. The QNX6 file system already
ensures that /.boot and /.altboot will never be partially written, by
implicitly doing the "+hold". All other files require the chattr
command.
Yes, there's a new second-stage IPL required (diskpc2-fsq6) for the QNX6
file system.
The "required properties" question. The QNX6 file system is, above all
else, supposed to guarantee power-loss reliability. As a result, it
queries the hardware to see if an SC_SYNC operation is supported. If
the hardware says that it is not, then the filesystem will not mount
read-write, since it can't guarantee that when it asks for data to be
flushed, the hardware will comply. Some CF cards do work, and some
don't. Some lie and say that the support the command when they really
don't.
If you want to avoid this check, pass "-o sync=optional" to the mount
command, and the filesystem will mount read-write, even if the hardware
doesn't claim to support SC_SYNC.
David
> -----Original Message-----
> From: Robert Murrell [mailto:community-noreply@qnx.com]
> Sent: August-12-11 11:28 AM
> To: general-filesystems
> Subject: Re: RE: Partial files being create?
>
> Great. This isn't a problem under FAT file systems, other than lost
> clusters which are easily recovered.
>
> Now for the next questions:
>
> Does the QNX 6 filesystem need a new IPL? We are using a custom ipl-
> diskpc2.
>
> It looks like I use the devctl function to programmatically do what
> chattr is doing. Is there any guidance on how to set/clear this hold
> flag using devctl?
>
> The section on "Required properties of the device" is unclear. Will
> the QNX 6 filesystem work with a Compact Flash card?
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post88076
|
|
|