@@ -733,7 +733,7 @@ main(int argc, char **argv)
memset(&mbuf, 0, sizeof(xfs_mount_t));
/* We don't yet know the sector size, so read maximal size */
- libxfs_buftarg_init(&mbuf, xargs.ddev, xargs.logdev, xargs.rtdev);
+ libxfs_open_devices(&mbuf, xargs.ddev, xargs.logdev, xargs.rtdev);
error = -libxfs_buf_read_uncached(mbuf.m_ddev_targp, XFS_SB_DADDR,
1 << (XFS_MAX_SECTORSIZE_LOG - BBSHIFT), 0, &sbp, NULL);
if (error) {
@@ -109,7 +109,7 @@ init(
* tool and so need to be able to mount busted filesystems.
*/
memset(&xmount, 0, sizeof(struct xfs_mount));
- libxfs_buftarg_init(&xmount, x.ddev, x.logdev, x.rtdev);
+ libxfs_open_devices(&xmount, x.ddev, x.logdev, x.rtdev);
error = -libxfs_buf_read_uncached(xmount.m_ddev_targp, XFS_SB_DADDR,
1 << (XFS_MAX_SECTORSIZE_LOG - BBSHIFT), 0, &bp, NULL);
if (error) {
@@ -233,7 +233,7 @@ sb_logcheck(void)
}
}
- libxfs_buftarg_init(mp, x.ddev, x.logdev, x.rtdev);
+ libxfs_open_devices(mp, x.ddev, x.logdev, x.rtdev);
dirty = xlog_is_dirty(mp, mp->m_log, &x, 0);
if (dirty == -1) {
@@ -591,7 +591,7 @@ out_unwind:
}
void
-libxfs_buftarg_init(
+libxfs_open_devices(
struct xfs_mount *mp,
dev_t dev,
dev_t logdev,
@@ -715,7 +715,7 @@ libxfs_mount(
bool debugger = (flags & LIBXFS_MOUNT_DEBUGGER);
int error;
- libxfs_buftarg_init(mp, dev, logdev, rtdev);
+ libxfs_open_devices(mp, dev, logdev, rtdev);
mp->m_finobt_nores = true;
mp->m_flags = (LIBXFS_MOUNT_32BITINODES|LIBXFS_MOUNT_32BITINOOPT);
@@ -16,7 +16,7 @@ struct xfs_mount;
struct xfs_perag;
struct xfs_buftarg;
-void libxfs_buftarg_init(struct xfs_mount *mp, dev_t ddev,
+void libxfs_open_devices(struct xfs_mount *mp, dev_t ddev,
dev_t logdev, dev_t rtdev);
int libxfs_blkdev_issue_flush(struct xfs_buftarg *btp);
@@ -212,7 +212,7 @@ main(int argc, char **argv)
exit(1);
logstat(&mount);
- libxfs_buftarg_init(&mount, x.ddev, x.logdev, x.rtdev);
+ libxfs_open_devices(&mount, x.ddev, x.logdev, x.rtdev);
logfd = (x.logfd < 0) ? x.dfd : x.logfd;
@@ -3986,7 +3986,7 @@ main(
/*
* we need the libxfs buffer cache from here on in.
*/
- libxfs_buftarg_init(mp, xi.ddev, xi.logdev, xi.rtdev);
+ libxfs_open_devices(mp, xi.ddev, xi.logdev, xi.rtdev);
/*
* Before we mount the filesystem we need to make sure the devices have