Not read yet.
$(MAKE) -C $(KERNELDIR) M=`pwd` CC=$(CC) modules
test: all
- cp ../code2/fred.safe ../code2/fred
+ ../utils/tools/lafs test/maketest
sh test/runtty 2>&1 | tee /tmp/log
reset
static inline int
u32_after(u32 a, u32 b)
{
- return a-b>0;
+ return ((long)a-(long)b)>0;
}
const extern struct inode_operations lafs_file_ino_operations;
struct options *op = opv;
struct devent *dv;
struct page *pg;
- sector_t sect, dev_addr = 0, state_addr = 0;
+ sector_t sect, dev_addr = 0;
+ int state_addr = 0;
int err = 0;
unsigned int n;
int i;
rm -f lafs.ko
rmmod lafs.ko
tftp 10.0.2.2 -m binary -c get /lafs.ko
-insmod lafs.ko lafs_trace=0 || exit 1
+insmod lafs.ko lafs_trace=1 || exit 1
#mount -r -t lafs -o 'dev=/dev/sdc' /dev/sdb /mnt/1
mount -t lafs /dev/sdb /mnt/1
#mount -r -t lafs_snap -o snapshot=first /mnt/1 /mnt/2
#mount -r -t lafs_snap -o snapshot=second /mnt/1 /mnt/3
#mount -r -t lafs -o 'snapshot=first /mnt/1 /mnt/2
+###cp afile /mnt/1/afile
+#sync
+###umount /mnt/1
+mount -t lafs /dev/sdb /mnt/1
ls /mnt/1;
ls -ia /mnt/1
#mount /dev/sdb /mnt/2
ln -s $dir /tmp/tftp
# -serial stdio or -nographic
# change tty choice in 'go' too.
-qemu-kvm -hda hda -hdb $dir/../../code2/fred -hdc $dir/../../code2/frog \
+#qemu-kvm -hda hda -hdb hdb -hdc $dir/../../code2/frog \
+qemu-kvm -hda hda -hdb $dir/fs-image \
-no-reboot \
-net nic,model=ne2k_pci -net user \
-m 256 -nographic \