+
+static int fsfilt_smfs_read_dotsnap_dir_page(struct file *file, char *buf,
+ size_t count, loff_t *off)
+{
+#if 0
+ struct inode *inode = file->f_dentry->d_inode;
+ struct fsfilt_operations *snap_cops = I2SNAPCOPS(inode);
+ int i = 0, size = 0, off_count = 0, buf_off = 0, rc = 0;
+ ENTRY;
+ /*Get the offset of dir ent*/
+ //struct snap_table *stbl = S2SNAPI(inode->i_sb)->sni_table;
+ while (size < *off && off_count < stbl->sntbl_count) {
+ char *name = stbl->sntbl_items[i].sn_name;
+ size +=snap_cops->fs_dir_ent_size(name);
+ off_count ++;
+ }
+ for (i = off_count; i < stbl->sntbl_count; i++) {
+ char *name = stbl->sntbl_items[i].sn_name;
+ rc = snap_cops->fs_set_dir_ent(inode->i_sb, name, buf, buf_off,
+ rc, count);
+ if (rc < 0)
+ break;
+
+ buf_off += rc;
+
+ if (buf_off >= count)
+ break;
+ }
+ if (rc > 0)
+ rc = 0;
+#else
+#warning "still not implement read .snap dir page for fsfilt Wangdi"
+#endif
+ RETURN(0);
+}
+