‫OK, guys, so go the fat 16 dot see, we're going to scroll down now in this lecture, we're going
‫to implement the fat 16 seke function.
‫So just after the fat 16 we function, we're going to say any fat 16 seke void Privette.
‫So this is appointer giving it thirty 32 t offset philes seek mode mode while sigma we'll call it.
‫So I was going to say any equals zero return address.
‫Struct fat file to scripter, to scripter.
‫While D.C. will be fine equals private, OK, because the private data passed to us here is not the
‫private structure, it's the private data for the first spacy, the descript buy here, see and read.
‫We have the script.
‫That's basically what they're passing to us here, the private descriptor data.
‫So we're going to say struct fat item, descriptor item equals descript item.
‫Now here we're going to say if the script item type does not equal fat profile, fat item type file.
‫Then ret equals minus invalid arguments go two outs, and now down here we're going to have the old
‫label and not read.
‫Sorry, it should be REST's response for rest's for response.
‫So that just ensures we're seeking in a file and not a directory.
‫So now we're going to say is struct fat directory item.
‫Item equals descript item, item if offset is above or equal, our item file size.
‫Then REST's equals CEO go to rounds, and I was going to say switch seke mode, case seke set break
‫and that's just going to say descript position equals offset.
‫And I we're going to go case, seek and break.
‫And that's just going to say rest equals minus E, you kn Empy, which means unimplemented because we're
‫not ready for that yet.
‫Another here we're going to say case seke current and we're going to say the script pass plus equals
‫offset break.
‫And then we're going to say default press equals minus invalid arguments.
‫And we're just going to break.
‫OK, so that is correct for that one, and we just need to make EU and UN MP, so just go to status,
‫stop the Hajj and we're just going to find that in here.
‫That basically means unimplemented.
‫OK.
‫Perfect's.
‫OK, let's take a look at the fat directory item, we see the file size there.
‫Perfect.
‫So, yes, this one, sure, we can see past the file size.
‫So that should be a Sikh function.
‫We now scroll up to struct filesystem and we're just going to say comma dot C equals fat 16.
‫Seek and scroll down.
‫We're going to copy and paste.
‫Seek to.
‫The very top by here, and I hope it's been clear for you to follow these tutorials, I know it's complicated,
‫but this is colonel development.
‫So it's expected that you struggle a little bit.
‫If you're not struggling, you either already know how to do this or you're a very fast learner.
‫So we're going to go build that S.H. and that works absolutely fine.
‫So we've now implemented that.
‫We're going to just test this now.
‫So go to Colonel that C and just before Afri, we're just going to say F.C., F.T. We're going to set
‫the offset to two and it's going to be sik's said and we're just going to remove two bytes from this.
‫So we're going to read 11 bytes instead.
‫And if we now try to compile and run that make clean bill to that stage and we run that now we see WTO
‫world.
‫So you can see that it has seek the file stream ahead to offset to.
‫So it's correct.
‫Basically say, OK, we've now implemented F.C. We need to implement the EBITA stacks, the file system
‫while the baby stamp files.
‫And we also need to implement the closing functionality and then our virtual file system functionality
‫is done.
‫Like I said already, we will not be doing writing in this in these tutorials, at least not at the
‫moment.
‫If I have enough demand for that, I'll do it.
‫But for the time being, only reading, because this has to be kept as simple as possible for you guys,
‫because I want to cover a wide range of spectrums.
‫I don't want to just focus on filesystem development, otherwise that should be a separate course.
‫So I hope you enjoyed this lecture.
‫And thank you for watching.