aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_vfsops.c
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2005-11-01 19:44:33 -0500
committerNathan Scott <nathans@sgi.com>2005-11-01 19:44:33 -0500
commitfc1f8c1ca373dc88dd6e8c0e8b7de0e6ad95d441 (patch)
treee49b7a364bf6a6fc18e650b3a6e10b516c1ba547 /fs/xfs/xfs_vfsops.c
parent4aeb664c2561c0bae18d7a3a141d7d2acf126da1 (diff)
[XFS] Track external log/realtime device names for correct reporting in
/proc/mounts. SGI-PV: 942984 SGI-Modid: xfs-linux:xfs-kern:23862a Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_vfsops.c')
-rw-r--r--fs/xfs/xfs_vfsops.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/fs/xfs/xfs_vfsops.c b/fs/xfs/xfs_vfsops.c
index 07779c5ab42f..200e0c50acf2 100644
--- a/fs/xfs/xfs_vfsops.c
+++ b/fs/xfs/xfs_vfsops.c
@@ -257,6 +257,14 @@ xfs_start_flags(
257 mp->m_fsname_len = strlen(ap->fsname) + 1; 257 mp->m_fsname_len = strlen(ap->fsname) + 1;
258 mp->m_fsname = kmem_alloc(mp->m_fsname_len, KM_SLEEP); 258 mp->m_fsname = kmem_alloc(mp->m_fsname_len, KM_SLEEP);
259 strcpy(mp->m_fsname, ap->fsname); 259 strcpy(mp->m_fsname, ap->fsname);
260 if (ap->rtname[0]) {
261 mp->m_rtname = kmem_alloc(strlen(ap->rtname) + 1, KM_SLEEP);
262 strcpy(mp->m_rtname, ap->rtname);
263 }
264 if (ap->logname[0]) {
265 mp->m_logname = kmem_alloc(strlen(ap->logname) + 1, KM_SLEEP);
266 strcpy(mp->m_logname, ap->logname);
267 }
260 268
261 if (ap->flags & XFSMNT_WSYNC) 269 if (ap->flags & XFSMNT_WSYNC)
262 mp->m_flags |= XFS_MOUNT_WSYNC; 270 mp->m_flags |= XFS_MOUNT_WSYNC;
@@ -1914,13 +1922,11 @@ xfs_showargs(
1914 if (mp->m_logbsize > 0) 1922 if (mp->m_logbsize > 0)
1915 seq_printf(m, "," MNTOPT_LOGBSIZE "=%d", mp->m_logbsize); 1923 seq_printf(m, "," MNTOPT_LOGBSIZE "=%d", mp->m_logbsize);
1916 1924
1917 if (mp->m_ddev_targp != mp->m_logdev_targp) 1925 if (mp->m_logname)
1918 seq_printf(m, "," MNTOPT_LOGDEV "=%s", 1926 seq_printf(m, "," MNTOPT_LOGDEV "=%s", mp->m_logname);
1919 XFS_BUFTARG_NAME(mp->m_logdev_targp));
1920 1927
1921 if (mp->m_rtdev_targp && mp->m_ddev_targp != mp->m_rtdev_targp) 1928 if (mp->m_rtname)
1922 seq_printf(m, "," MNTOPT_RTDEV "=%s", 1929 seq_printf(m, "," MNTOPT_RTDEV "=%s", mp->m_rtname);
1923 XFS_BUFTARG_NAME(mp->m_rtdev_targp));
1924 1930
1925 if (mp->m_dalign > 0) 1931 if (mp->m_dalign > 0)
1926 seq_printf(m, "," MNTOPT_SUNIT "=%d", 1932 seq_printf(m, "," MNTOPT_SUNIT "=%d",