fuse_vfsops.c (bb92cd7bcd16f3f36cdbda18d8193619892715fb) | fuse_vfsops.c (2f6362484c0e1250ef6a76cccdbe4a95587e850c) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (c) 2007-2009 Google Inc. and Amit Singh 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are --- 294 unchanged lines hidden (view full) --- 303 int linux_errnos; 304 int daemon_timeout; 305 int fd; 306 307 struct cdev *fdev; 308 struct fuse_data *data = NULL; 309 struct thread *td; 310 struct file *fp, *fptmp; | 1/*- 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (c) 2007-2009 Google Inc. and Amit Singh 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are --- 294 unchanged lines hidden (view full) --- 303 int linux_errnos; 304 int daemon_timeout; 305 int fd; 306 307 struct cdev *fdev; 308 struct fuse_data *data = NULL; 309 struct thread *td; 310 struct file *fp, *fptmp; |
311 char *fspec, *subtype; | 311 char *fspec, *subtype, *fsname = NULL; 312 int fsnamelen; |
312 struct vfsoptlist *opts; 313 314 subtype = NULL; 315 max_read = ~0; 316 linux_errnos = 0; 317 err = 0; 318 mntopts = 0; 319 __mntopts = 0; --- 115 unchanged lines hidden (view full) --- 435 MNT_IUNLOCK(mp); 436 /* We need this here as this slot is used by getnewvnode() */ 437 mp->mnt_stat.f_iosize = maxbcachebuf; 438 if (subtype) { 439 strlcat(mp->mnt_stat.f_fstypename, ".", MFSNAMELEN); 440 strlcat(mp->mnt_stat.f_fstypename, subtype, MFSNAMELEN); 441 } 442 memset(mp->mnt_stat.f_mntfromname, 0, MNAMELEN); | 313 struct vfsoptlist *opts; 314 315 subtype = NULL; 316 max_read = ~0; 317 linux_errnos = 0; 318 err = 0; 319 mntopts = 0; 320 __mntopts = 0; --- 115 unchanged lines hidden (view full) --- 436 MNT_IUNLOCK(mp); 437 /* We need this here as this slot is used by getnewvnode() */ 438 mp->mnt_stat.f_iosize = maxbcachebuf; 439 if (subtype) { 440 strlcat(mp->mnt_stat.f_fstypename, ".", MFSNAMELEN); 441 strlcat(mp->mnt_stat.f_fstypename, subtype, MFSNAMELEN); 442 } 443 memset(mp->mnt_stat.f_mntfromname, 0, MNAMELEN); |
443 strlcpy(mp->mnt_stat.f_mntfromname, fspec, MNAMELEN); | 444 vfs_getopt(opts, "fsname=", (void**)&fsname, &fsnamelen); 445 strlcpy(mp->mnt_stat.f_mntfromname, 446 fsname == NULL ? fspec : fsname, MNAMELEN); |
444 mp->mnt_iosize_max = maxphys; 445 446 /* Now handshaking with daemon */ 447 fuse_internal_send_init(data, td); 448 449out: 450 if (err) { 451 FUSE_LOCK(); --- 236 unchanged lines hidden --- | 447 mp->mnt_iosize_max = maxphys; 448 449 /* Now handshaking with daemon */ 450 fuse_internal_send_init(data, td); 451 452out: 453 if (err) { 454 FUSE_LOCK(); --- 236 unchanged lines hidden --- |