\documentclass{article}
\input{6828-preamble}

\begin{document}
\psetnum{13}
\date{2004/10/25}
\begin{pset}
  \begin{problem}
    Yes. The inode is written using \texttt{bwrite}, so it is
    guaranteed that the write is performed. The inode points to a
    single data block that should contain the byte written (but the
    data block might not actually exist --- see below).
  \end{problem}

  \begin{problem}
    Not necessarily. The data block is not full, so it is
    delayed-written with \texttt{bdwrite}. Thus it will only be on the
    disk if the filesystem is \texttt{sync}ed (via the syncer) before
    the system crashes.
  \end{problem}

  \begin{problem}
    The inode for the directory entry will be updated, but it is not
    guaranteed that the directory entry's contents will be updated,
    for the reasons described above. This depends on whether the
    data blocks in question are full.
  \end{problem}
\end{pset}
\end{document}
