MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vfs_mount_error

Function vfs_mount_error

freebsd/kern/vfs_mount.c:1912–1927  ·  view source on GitHub ↗

* Report errors during filesystem mounting. */

Source from the content-addressed store, hash-verified

1910 * Report errors during filesystem mounting.
1911 */
1912void
1913vfs_mount_error(struct mount *mp, const char *fmt, ...)
1914{
1915 struct vfsoptlist *moptlist = mp->mnt_optnew;
1916 va_list ap;
1917 int error, len;
1918 char *errmsg;
1919
1920 error = vfs_getopt(moptlist, "errmsg", (void **)&errmsg, &len);
1921 if (error || errmsg == NULL || len <= 0)
1922 return;
1923
1924 va_start(ap, fmt);
1925 vsnprintf(errmsg, (size_t)len, fmt, ap);
1926 va_end(ap);
1927}
1928
1929void
1930vfs_opterror(struct vfsoptlist *opts, const char *fmt, ...)

Callers 1

vfs_hang_addrlistFunction · 0.85

Calls 2

vfs_getoptFunction · 0.85
vsnprintfFunction · 0.85

Tested by

no test coverage detected