3. insmod obdfs
-4. mount -t obdfs /dev/obd /mnt
+4. mount -t obdfs -o device=/dev/obd0 /dev/obd0 /mnt/obd
To verify: type mount (output:
-/dev/obd on /mnt type obdfs (rw))
+/dev/obd on /mnt/obd type obdfs (rw))
-5. ls -ld /mnt
+5. ls -ld /mnt/obd
-6. chmod 711 /mnt, ls -ld /mnt
+6. chmod 711 /mnt/obd, ls -ld /mnt/obd
-7. chown seagate /mnt , ls -ld /mnt
+7. chown disk /mnt/obd, ls -ld /mnt/obd
symname [l]; l++)
;
- /* For obdfs we always use normal (not fast) symlinks
- if (l >= sizeof (inode->u.ext2_i.i_data)) { */
+ if (l >= sizeof (inode->u.ext2_i.i_data)) {
CDEBUG(D_INODE, "l=%d, normal symlink\n", l);
name_page = obdfs_getpage(inode, 0, 1, LOCKED);
return err;
}
link = (char *)page_address(name_page);
- /* } else {
+ } else {
link = (char *) inode->u.ext2_i.i_data;
CDEBUG(D_INODE, "l=%d, fast symlink\n", l);
- } */
+ }
i = 0;
while (i < inode->i_sb->s_blocksize - 1 && (c = *(symname++)))
link[i++] = c;