// Path: src/jext2/exceptions/IoError.java
// public class IoError extends JExt2Exception {
// 	static final long serialVersionUID = 42;
// 	protected static final int ERRNO=Errno.EIO;
// 	public IoError(String msg) {
// 		super(msg);
// 	}
// 	public IoError() {
// 		super();
// 	}
// 	public int getErrno() {
// 		return ERRNO;
// 	}
// }
// 
// Path: src/fusejext2/Jext2Context.java
// public class Jext2Context extends Context {
// 	public BlockAccess blocks;
// 	public Superblock superblock;
// 	public BlockGroupAccess blockGroups;
// 
// 	public FileChannel blockDev;
// 
// 	public InodeAccess inodes;
// 
// 	public Jext2Context(FileChannel blockDev) {
// 		this.blockDev = blockDev;
// 	}
// }


import fusejext2.Jext2Context;
import java.util.Date;
import jext2.exceptions.IoError;
/*
 * Copyright (c) 2011 Marcel Lauhoff.
 * 
 * This file is part of jext2.
 * 
 * jext2 is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * jext2 is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with jext2.  If not, see <http://www.gnu.org/licenses/>.
 */

package fusejext2.tasks;



public class Destroy extends jlowfuse.async.tasks.Destroy<Jext2Context> {
	@Override
	public void run() {
		try {
			context.superblock.setLastWrite(new Date());
			context.superblock.sync();
			context.blockGroups.syncDescriptors();

			context.blocks.sync();
// Path: src/jext2/exceptions/IoError.java
// public class IoError extends JExt2Exception {
// 	static final long serialVersionUID = 42;
// 	protected static final int ERRNO=Errno.EIO;
// 	public IoError(String msg) {
// 		super(msg);
// 	}
// 	public IoError() {
// 		super();
// 	}
// 	public int getErrno() {
// 		return ERRNO;
// 	}
// }
// 
// Path: src/fusejext2/Jext2Context.java
// public class Jext2Context extends Context {
// 	public BlockAccess blocks;
// 	public Superblock superblock;
// 	public BlockGroupAccess blockGroups;
// 
// 	public FileChannel blockDev;
// 
// 	public InodeAccess inodes;
// 
// 	public Jext2Context(FileChannel blockDev) {
// 		this.blockDev = blockDev;
// 	}
// }


// Path: src/fusejext2/tasks/Destroy.java
import fusejext2.Jext2Context;
import java.util.Date;
import jext2.exceptions.IoError;

/*
 * Copyright (c) 2011 Marcel Lauhoff.
 * 
 * This file is part of jext2.
 * 
 * jext2 is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * jext2 is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with jext2.  If not, see <http://www.gnu.org/licenses/>.
 */

package fusejext2.tasks;



public class Destroy extends jlowfuse.async.tasks.Destroy<Jext2Context> {
	@Override
	public void run() {
		try {
			context.superblock.setLastWrite(new Date());
			context.superblock.sync();
			context.blockGroups.syncDescriptors();

			context.blocks.sync();
		} catch (IoError e) {