Add a no_next_extent() dummy function for filesystems (like iso9660)
which should never end up calling next_extent (because there is only
one extent...)
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
.load_config = iso_load_config,
.iget_root = iso_iget_root,
.iget = iso_iget,
- .readdir = iso_readdir
+ .readdir = iso_readdir,
+ .next_extent = no_next_extent,
};
--- /dev/null
+#include "fs.h"
+
+/*
+ * Use this routine for the next_extent() pointer when we never should
+ * be calling next_extent(), e.g. iso9660.
+ */
+int no_next_extent(struct inode *inode, uint32_t lstart)
+{
+ (void)inode;
+ (void)lstart;
+
+ return -1;
+}
uint32_t generic_getfssec(struct file *file, char *buf,
int sectors, bool *have_more);
+/* nonextextent.c */
+int no_next_extent(struct inode *, uint32_t);
+
#endif /* FS_H */