LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Flushing superblock (https://www.linuxquestions.org/questions/linux-kernel-70/flushing-superblock-621991/)

devkpict 02-18-2008 07:57 AM

Flushing superblock
 
Hi ,

I am setting one of the flags of superblock of ext3 filesystem

Now ,I want to make these changes to on disk superblock structure

which function I should use. Kindly Help

Drakeo 02-18-2008 09:20 AM

the flag on the super block means it is reading the /etc/fstab file sense it is not the same ext3 as the fstab is configured or. you have partition another drive and loaded a nother system on it. like pclinux or mandriva and they have changed the drive so it has a logical drive well any way the flag usually means you are not loading the swap partition or a nother drive that used to be on your fstab and now is delete. make sure your fstab file and your system are in sync.
good luck. and if you /dev/hda2 /mnt/hda2 ext.3 defaults 1 1 the drive if mounted need a place to mount. such as root /dev/hda2 / ext.3 defaults 1 1 . i run into this quite often with my multiple systems i pull one drive and then forget to up date my fstab file.
If it wil not boot then you may have your grub or lilo wrong and if it is a usb flash drive on the new large kernels I have seen this message on to have it load later in the boot.
the other thing that will cause this is if you have a usb flash drive and you unplugg it befor unmout it unmount. then it corupts the super block. hope this helps.

devkpict 02-18-2008 11:35 PM

Setting s_flags of struct super_block
 
Hi,

Thanks for your intrest,
1.I have created hdb1 partition with ext3 filesystem on it

2.I have mounted this partition on /mnt/hdb1 directory

3.I am anding my own flag(eg. 0x00___) with s_flags field of
superblock as
s_flag & 0x00___
with my own ioctl in ext3 directory

4.Now this flag is getting set successfully,

5.I want to set this flag on my on disk superblock structure

6.Which superblock functions in ext3 will do that

7. I already tried
ext3_write_super
ext3_force_commit

Drakeo 02-20-2008 09:29 AM

what is your goal here the linux super block I thought was 0x83 But I am not sure this is out of my speck when trying to uhnder stand this. I just never had a reason to use 0x0 that is the first block I thought on the mbr and it is set there when you make the drive bootable. so you are teaching me. thanx.


All times are GMT -5. The time now is 07:22 AM.